Skip to content
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

[Microsoft.App/containerApps]: ipSecurityRestrictions name showing up as mandatory #2367

Open
1 task done
fulopm opened this issue Nov 24, 2024 · 0 comments
Open
1 task done

Comments

@fulopm
Copy link

fulopm commented Nov 24, 2024

Resource Type

Microsoft.App/containerApps

Api Version

2024-03-01

Issue Type

Other

Other Notes

VSCode Bicep extension incorrectly shows the following warning when trying to define allowed IP ranges inside of properties/configuration/ipSecurityRestrictions
"The specified "object" declaration is missing the following required properties: "name". If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues.bicep[BCP035](https://aka.ms/bicep/core-diagnostics#BCP035)"

I think it's incorrect because giving a name to each rule is not required on the UI, so it shouldn't be in Bicep as well.

Bicep Repro

ipSecurityRestrictions: [
{
action: 'Allow'
ipAddressRange: '173.245.48.0/20'
}
]

Confirm

  • I have read the troubleshooting guide and looked for duplicates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant