question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to deploy Logic App resource due to "'$schema' not found in JSON" issue

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhoxing-mscommented, May 6, 2020

In fact, this issue may be related to the deployment service of the workflows resource:

  1. The template provided by customer can pass the verification with rest API Deployments - Validate
  2. When the template is deployed with rest API Deployments - Create Or Update, the following error is reported:

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.’

  1. Replace the resources of 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.

0reactions
mostlycachedcommented, May 28, 2020

I can no longer repro. Looks like the Azure Sentinel UI has reverted to an older schema that no longer has this issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found