-
Notifications
You must be signed in to change notification settings - Fork 756
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
Building Arm Template with Bicep, types:Microsoft.Insights/diagnosticSettings not being recognized. #9247
Comments
I don't think the warning you grabbed a screenshot of is related to the error. Can you share both the complete bicep file(s) and generated ARM template? |
The bicep is a parent module to child modules. This is one of the modules that is crashing on Every module has this fails:
|
This is not a isolated issue. |
Update:I still have a warning regarding the type not being recognized ( What's Changed:
What I did:
On inspecting the template, I saw that Azure is using the exact same schema version and diagnostics settings variable that VS Code is flagging as a warning. I decided to try deploying the ARM template with the warning attached again and it worked. Chances are I had some other errors I've resolved since my comment on Friday, so you might want to look into this as well. Additional thing I didI don't know if this helped but I deleted the metadata that gets appended to the top of the ARM template file when it's created in VS Code.
|
@jrspinella -- the code you shared is not complete enough to reproduce the issue. Both files have lots of module references that cannot be resolved because they were not shared. Are you able to share a complete, deployable sample that reproduces the issue? I'm 99% sure the root cause for the failed deployment is not the warning you are seeing. As @MercyMarkus experienced, it is likely a red herring. The warning is because the ARM Tools extension is missing info in the schema file it uses, but that, in and of itself, would not cause a deployment failure. |
Hi, I am using Azure NoOps Accelerator. You can use the repo that I am using http://aka.ms/azurenoops. Follow the instructions for the quickstart on the readme. |
This has been fixed. https://github.com/Azure/NoOpsAccelerator/issues/226 |
Bicep version
v0.13.1
AZCLI version
v2.43.0
Describe the bug
When using the Build command for Subscription level deployments. Types: Microsoft.Insights/diagnosticSettings not being recognized.
Using Schema "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#"
This may be an ARM Template Tool problem not sure.
Errors from Deployments:
To Reproduce
Steps to reproduce the behavior:
Right click on Build ARM Template
View new deploy.json
Additional context
The text was updated successfully, but these errors were encountered: