Skip to content

Linter Warning - Firewall Rule Collection Group #4360

Answered by brwilkinson
thepaulmacca asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @thepaulmacca

you can use the environment() function to retrieve specific environment related URLs and other information.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-deployment#example-1

You can see the sample of the output on the above link.

example: "storage": "core.windows.net"

storageUri: 'https://${SADiagName}.blob.${environment().suffixes.storage}'

If you cannot find a match for the URL that you need, then you can setup an exclusion for the linter.

Create the bicepconfig.json file in a relative directory in the project, then setup the exclusions. First remove the URI from 'disallowedhosts', then add the URI to 'excludedhosts'.

https://docs.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thepaulmacca
Comment options

Answer selected by thepaulmacca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants