Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy azure automation variables using arm template, got following errors:Status Message: {"Message":"Invalid JSON - Kindly check the value of the variable."} (Code:BadRequest) #137

Open
hsszlll opened this issue Jul 20, 2023 · 0 comments
Assignees
Labels
need-to-triage Requires investigation

Comments

@hsszlll
Copy link

hsszlll commented Jul 20, 2023

My arm template content:
{
"name": "[variables('automationAccountName')]",
"type": "Microsoft.Automation/automationAccounts",
"apiVersion": "2022-08-08",
"location": "[variables('location')]",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"[variables('userAssignedIdentityResourceId')]": {}
}
},
"properties": {
"sku": {
"name": "Basic"
}
},
"dependsOn": [
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('userAssignedIdentityName'))]"
]
},
{
"type": "Microsoft.Automation/automationAccounts/variables",
"apiVersion": "2022-08-08",
"name": "[concat(variables('automationAccountName'), '/', 'test')]",
"properties": {
"description": "test",
"isEncrypted": false,
"value": "test"
},
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts/', variables('automationAccountName'))]"
]
}

Errors:
image

@hsszlll hsszlll added the need-to-triage Requires investigation label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-to-triage Requires investigation
Projects
None yet
Development

No branches or pull requests

3 participants