When I run New-AzureRmResourceGroupDeployment and pass the JSON parameter file, I get the following error:
New-AzureRmResourceGroupDeployment : 2:29:31 PM - Resource Microsoft.Sql/servers 'qsservername' failed with message '{ "code": "15021", "message": "Invalid value given for parameter Login. Specify a valid parameter value.", "target": null, "details": [ { "code": "15021", "message": "Invalid value given for parameter Login. Specify a valid parameter value.", "target": null, "severity": "16" } ], "innererror": [] }' At M:\Azure\Azure Scripts\Something\somethingdeploy.psm1:63 char:4 + New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGro ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
However, when I run the same command, but pass the parameters instead of the file, it works fine. Any ideas what I might be missing?
source share