-
Notifications
You must be signed in to change notification settings - Fork 762
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
Latest API versions not available #2754
Comments
The types get updated with new releases of the bicep extension (and CLI). We are planning to separate this so we can ship types more frequently separate from bicep releases. I'm surprised these types are missing since they are not recent. @anthony-c-martin - is our type gen missing these? @th0ger - do you mind adding these missing types to #784? Even if a type is missing, it is still possible to provision that resource with bicep. If a type is missing, there is less validation that we can do, but it won't block deployment. That's what we mean by Day 0 support. It's probably worth clarifying this in docs - we will take care of this. |
@alex-frankel thanks for the quick reply. This is not critical, I just updated the versions to make sure Intellisense list all the latest properties. Anyway, it's good to know that Bicep/az won't block unknown types. Especially in CI/CD context where the build server/docker image may not be fully up to date. |
I have a question about private resource types. I am trying to create 1es cloud image and a 1es hosted pool but bicep is complaining. How does support for private resource types work? ╰ bicep --version 12:34:56
Bicep CLI version 0.3.1 (d0f5c9b164) |
If it does not have a public swagger spec, we will not generate a type for it. It should not block deployment though. |
k i havent tried a deployment yet but these are the errors/warnings im getting when i decompiled the arm template - Error BCP017: Expected a resource identifier at this location. and it definitely screws up syntax highlighting in vscode because it cant find the resource type. |
Can you share the code sample? The warning shouldn't cause a highlighting error, but that error might be. Curious to see what is happening. |
nm it was the resource name causing the issues. |
you are not allowed to have hyphens ( You can also change |
Going to close this one since the original missing type info is now captured in #784 |
@alex-frankel does #784 also cover the documentation update? |
Nope - thank you for the reminder :) |
* Small readme tweaks, removed a known limitation Fixes #2754 * Addressing feedback * change wording
I've update all my bicep resources to the latest API versions, according to what's documented in Azure templates reference.
But one resource provider
Microsoft.Authorization/roleAssignments
only goes up to2020-04-01-preview
in bicep, while the roleAssignments documentation also defines2020-08-01-preview
and2020-10-01-preview
.If using latest version I get:
I expect the latest and greatest API versions to be always available, since it's stated: Day 0 resource provider support. Any Azure resource — whether in private or public preview or GA — can be provisioned using Bicep.
It it not clear to me, If I need to upgrade Bicep version to get latest API versions. Do they ship with Bicep? Do they ship with VS Code extension? Or are they looked up dynamically at runtime?
If this is working as intended, please consider clarifying the documentation, as I could not find anything on this subject.
The text was updated successfully, but these errors were encountered: