Closed RedmanAC closed 3 years ago
@RedmanAC I am closing this issue. The action is working correctly, in that it is able to execute the script you are providing it. the issue seems to be with the template you are using. If you deploy directly from the azure portal, you will encounter the same issue. You should refer to keyvault templates in the azure-quickstart-templates repo or try raising an issue there.
Hello,
when deploying a KeyVault via
New-AzResourceGroupDeployment
I get the error"Bad JSON content found in the request"
$kvDeployResult = New-AzResourceGroupDeployment -Name "addKeyVault" -ResourceGroupName $resourceGroupeName -TemplateFile ".\deploy_kv.json" -Verbose -Debug
I went through the whole process with the -Debug parameter to find the very point from where the error originates. You can see, that the creation itself works just fine, but later in the process something bad happens, and I dont know why.
I am using PowerShell 5.1 with the Az 5.1 package which includes the Az.Resources 3.0.1. I did a clean uninstall of ALL Azure modules I had installed prior.
The template file: