Skip to content

How can I include a template by URL? #8388

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

You must be logged in to vote

This is not possible, the recommendation is to use curl/invoke-webrequestto download the template locally first, then reference this.

If it's json then you can reference it as below.

i.e. as a deployment.
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/x.RBAC-ALL-RA-Resource.bicep#L32

Other than that you can publish your templates to the container registry and reference them from there directly in Bicep.

https://docs.microsoft.com/en-us/azure/azure-resource-manager/bicep/modules#file-in-registry

Replies: 1 comment 1 reply

Comment options

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

Answer selected by justinmchase
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