You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployment will throw "'Template parameter 'privateDnsZoneGroups' was provided an invalid value. Expected a value of type 'Array', but received a value of type 'Object'."
Code snippet
No response
Relevant log output
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"InvalidTemplate\\\",\\r\\n \\\"message\\\": \\\"Deployment template validation failed: 'Template parameter 'privateDnsZoneGroups' was provided an invalid value. Expected a value of type 'Array', but received a value of type 'Object'. Please see https://aka.ms/resource-manager-parameter-files for usage details.'.\\\",\\r\\n \\\"additionalInfo\\\": [\\r\\n {\\r\\n \\\"type\\\": \\\"TemplateViolation\\\",\\r\\n \\\"info\\\": {\\r\\n \\\"lineNumber\\\": 1,\\r\\n \\\"linePosition\\\": 1668,\\r\\n \\\"path\\\": \\\"properties.template.parameters.privateDnsZoneGroups\\\"\\r\\n }\\r\\n }\\r\\n ]\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}}
The text was updated successfully, but these errors were encountered:
Describe the bug
When deploying Azure Redis Cache with a private endpoint and the
privateDnsZoneGroups
param is not set, the deployment fails with:The problem is that line 256 defaults to an empty object instead of an empty array:
https://github.com/Azure/ResourceModules/blob/main/modules/Microsoft.Cache/redis/deploy.bicep#L256
The line should be changed to:
To reproduce
Run this bicep:
Deployment will throw "'Template parameter 'privateDnsZoneGroups' was provided an invalid value. Expected a value of type 'Array', but received a value of type 'Object'."
Code snippet
No response
Relevant log output
The text was updated successfully, but these errors were encountered: