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.

Microsoft.Resources/deploymentScripts warning

See original GitHub issue

ARM resource templates with: "type": "Microsoft.Resources/deploymentScripts"

Are flagged with a warning: Value must be one of the following values: "Microsoft.HealthcareApis/services", "Microsoft.AppConfiguration/configurationStores", ...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KenBenjamincommented, Apr 1, 2021

Thanks. That does the trick. I agree with keeping the strict validation.

From: Stephen Weatherford (MSFT) @.> Sent: Thursday, April 1, 2021 3:10 PM To: microsoft/vscode-azurearmtools @.> Cc: Kenneth Benjamin @.>; Mention @.> Subject: Re: [microsoft/vscode-azurearmtools] Microsoft.Resources/deploymentScripts warning (#1271)

Unfortunately, the error message is difficult to read. It comes from the way JSON validation works. Here’s the error again: [image]https://user-images.githubusercontent.com/6913354/113341774-6d5ce200-92e2-11eb-9226-c9df29d16aaf.png Read it like this:

Was expecting either:

  1. kind = “AzurePowerShell” and forceUpdateTag is a string. But in this case, it’s missing the required property azPowerShellVersion. or 2) (when kind = “AzureCLI”) forceUpdateTag is a string.

So all that’s wrong is that you need to change forceUpdateTag to be a string.

It deploys because the Azure backend (unfortunately) will magically convert strings to numbers and vice versa when needed. This doesn’t play well with JSON schema validation and we experimented with allowing that for the validation, but it caused too many problems and we decided to have the validation remain strict with data types.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-azurearmtools/issues/1271#issuecomment-812113504, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS4YVTOMAHVLKXXBJVXPGB3TGTAJLANCNFSM42FJNFOA.

1reaction
KenBenjamincommented, Mar 31, 2021

It does deploy without them, but I’ll update the scripts to clean it up. Thanks 😊

From: Stephen Weatherford (MSFT) @.> Sent: Wednesday, March 31, 2021 5:30 PM To: microsoft/vscode-azurearmtools @.> Cc: Kenneth Benjamin @.>; Mention @.> Subject: Re: [microsoft/vscode-azurearmtools] Microsoft.Resources/deploymentScripts warning (#1271)

Docs say its not required, but I suspect that either azPowerShellVersion or azCLIVersion is required, although if it deploys without them, technically it’s a schema bug.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode-azurearmtools/issues/1271#issuecomment-811478229, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS4YVTKVBLD4MMFHMEKEWCTTGOH45ANCNFSM42FJNFOA.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.Resources deploymentScripts
Azure Microsoft.Resources/deploymentScripts syntax and properties to use in Azure Resource Manager templates for deploying the resource.
Read more >
0 - Stack Overflow
I am going to configure created azure VM (for example, install role, initialize new hdd disk etc). I see that there is a...
Read more >
deploymentScripts validation fail when kind value is not ...
Validation of Microsoft.Resources/deploymentScripts@2020-10-01 fail to understand when the value for kind is a parameter or variable.
Read more >
Learn Live - Extend ARM templates by using deployment scripts
Follow on Microsoft Learn: - Microsoft Learn Module: https://aka.ms/learnlive-20220614A Add custom steps to your Bicep or JSON Azure ...
Read more >
Exploring ARM Templates: Azure Resource Manager Tutorial
ARM stands for Azure Resource Manager, which is Microsoft's deployment and ... deployment scripts to handle multiple deployment scenarios.
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