Open elvenstone opened 2 years ago
+1. I encountered the same bug today and mitigated it in the same way also adding a comment that leads here.
I encountered the same bug today but when i add the logging properties like you @TsakyDev and @elvenstone did my deployment fails with the error below:
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/xxxxxx/resourceGroups/xxxxx/providers/Microsoft.Resources/deployments/main","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidXmlDocument","message":"XML specified is not syntactically valid. But when i comment the logging property, it deploys successfully.
This is still an issue....2+ years later. I encounter the same error as dollarpo7 when trying to add the logging
block.
Bicep version 0.7.4
Describe the bug The following Bicep code for deploying a queue service with properties for logging results in the following warning: The property "logging" is not allowed on objects of type "QueueServicePropertiesProperties". No other properties are allowed.
To Reproduce
Additional context The parent storage account resource is defined as follows:
As a workaround, I inserted #disable-next-line BCP037# above the logging object to ignore the warning:
I added the logging object because running what-if without it resulted in the following change: