Unable to deploy Logic App resource due to "'$schema' not found in JSON" issue
See original GitHub issueDescribe the bug
I’m unable to create a Logic App resource even after I literally used the “Export Template” option in the Logic App portal. I can see that there is a ‘$schema’ in the template.json file that I’m trying to use for the deployment
(azuredev) [master ?] ~/Workspace/DevSentinel/Playbooks/Playbook5 $ head -n 3 template.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
Command Name
az deployment group create
Errors:
Deployment failed. Correlation ID: df10f68f-54e1-438b-bb57-e69f49ca705d. {
"error": {
"code": "InvalidRequestContent",
"message": "The request content is not valid and could not be deserialized: 'Required property '$schema' not found in JSON. Path 'properties.definition', line 1, position 69.'."
}
}
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az deployment group create -g RedactedRG1 --name Playbook5 --template-file template.json
Expected Behavior
I expected it to be successfully deployed since I had just literally downloaded the deployment template from the portal
Environment Summary
Darwin-19.4.0-x86_64-i386-64bit
Python 3.7.5
azure-cli 2.2.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
json - Logicapp_Connection id issue - Stack Overflow
I have tried to deploy the logic app via ARM template, Which is getting deployed successfully, But issue is with the JOB scheduler,...
Read more >Azure DevOps ARM template dependent resource ...
It works perfectly fine when I deploy from Visual Studio 2019, so don't understand why it's failing via DevOps. logic-app-fail.JPG. Here is the...
Read more >Troubleshoot common Azure deployment errors
Error code Mitigation More inform...
AccountNameInvalid Follow naming guidelines for storage accounts. Resolve erro...
AccountPropertyCannotBeSet Check available storage account properties. storageAcco...
AnotherOperationInProgress Wait for concurrent operation...
Read more >Deploying Logic App Standard Workflows - Blog
Standard mode Logic Apps behave quite differently when deploying resources. It took much research to find a stable way to deploy workflows ...
Read more >What is new in Logic Apps v2 - from Martin Kearn
This is a new JSON file which defines details of all the API connections that the workflow.json files need. This is a change...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In fact, this issue may be related to the deployment service of the workflows resource:
Microsoft.Logic/workflows
in the ARM template with other resources, the template will be normally deployed. This shows that the format of the template is correct.This issue requires the service team to see if there is a problem with the deployment service of resource
Microsoft.Logic/workflows
. Correlation ID: 5af650fb-d96c-49dc-ab9b-b9c25f023648.I can no longer repro. Looks like the Azure Sentinel UI has reverted to an older schema that no longer has this issue