hi,
anyone has a working example on hop to patch a Logic App to disable SAS token ?
https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal&ref=hybridbrothers.com#add-the-sasauthenticationpolicy-property-to-your-workflow-definition
{
"properties": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"When_a_HTTP_request_is_received": {
"type": "Request",
"kind": "Http",
"inputs": {
"method": "POST",
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"topic": {
"type": "string"
},
"subject": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"timestamp": {
"type": "string"
},
"policyAssignmentId": {
"type": "string"
},
"policyDefinitionId": {
"type": "string"
},
"policyDefinitionReferenceId": {
"type": "string"
},
"complianceState": {
"type": "string"
},
"subscriptionId": {
"type": "string"
},
"complianceReasonCode": {
"type": "string"
}
}
},
"eventType": {
"type": "string"
},
"eventTime": {
"type": "string"
},
"dataVersion": {
"type": "string"
},
"metadataVersion": {
"type": "string"
}
},
"required": [
"id",
"topic",
"subject",
"data",
"eventType",
"eventTime",
"dataVersion",
"metadataVersion"
]
}
}
},
"conditions": [
{
"expression": "@startsWith(triggerOutputs()?['headers']?['Authorization'], 'Bearer')"
}
],
"operationOptions": "EnableSchemaValidation, IncludeAuthorizationHeadersInOutputs"
}
},
"actions": {},
"outputs": {}
},
"parameters": {
"$connections": {
"value": {}
}
},
"accessControl": {
"triggers": {
"openAuthenticationPolicies": {
"policies": {
"etst": {
"type": "AAD",
"claims": [
{
"name": "iss",
"value": "https://sts.windows.net/tennt-id-goes-here/"
}
]
}
}
},
"sasAuthenticationPolicy": {
"state": "Disabled"
}
}
getting
{
"error": {
"code": "PatchWorkflowPropertiesNotSupported",
"message": "The request to patch workflow 'Logic App' is not supported. None of the fields inside the properties object can be patched."
}
}
anyone ?