Open cveld opened 1 year ago
Having the same issue on 2022-10-01
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Author: | cveld |
---|---|
Assignees: | - |
Labels: | `inaccuracy`, `RP: Microsoft.App`, `Service Attention`, `ContainerApp` |
Milestone: | - |
Same still on 2022-11-01-preview.
Same issue on 2023-05-01, using any for now
Any updates?
You can disable the type checking for the cpu limit using a linter comment:
#disable-next-line BCP036
cpu: '0.5'
Bicep linter directives are documented here. Amazingly, VS Code Intellisense knew which code to use after the linter directive to silence the type checking. Copilot did not.
Resource Type
Microsoft.App/containerApps
Api Version
2022-03-01
Issue Type
Inaccurate property type(s)
Other Notes
The type is marked as integer whereas the value of 0.5 is accepted by Azure. In Visual Studio Code I therefore get a yellow squiggly line.
Bicep Repro
Confirm