-
Notifications
You must be signed in to change notification settings - Fork 515
FAQ
This wiki page answers frequently asked questions (FAQs) relating to the Azure Landing Zones Bicep modules.
Some FAQ questions that relate more to the architecture are based over in the CAF docs here: Enterprise-scale architecture FAQ
Log an issue or create a pull request if you have a question that is not answered here, we are happy to help and have community contributions 👍
- Why isn't
ALZ-Bicep
v1.x.x yet? - How do I get notified of the latest releases in
ALZ-Bicep
? - Why are some linter rules disabled via the
#disable-next-line
Bicep function?
Great question! Put simply this is because Bicep itself is not on a v1.X.X release yet which means there is a possibility for larger breaking changes still to occur in Bicep itself (upstream) which will in turn mean that these changes will have to be integrated into ALZ-Bicep
.
This however, does not mean you shouldn't use ALZ-Bicep or Bicep as they are fully supported and ready for production usage.
As we use GitHub releases and tags you can clone and pin to a specific version in your codebase and upgrade when you are ready and willing to do so 👍
In summary, ALZ-Bicep
will go v1.x.x when Bicep itself goes v1.x.x, give or take a few weeks for us to make any changes required in ALZ-Bicep
upon the release of Bicep v1.x.x 👍
There are a couple of ways you can ensure you get notified of the latest releases on the ALZ-Bicep
repo.
- Configure your "Watch" settings on the repo to notify you on "Releases"
- See GitHub Docs on how to do this here
- Sign-up to and use newreleases.io, add this repo
Azure/ALZ-Bicep
and select your email frequency.
In some of the ALZ-Bicep modules some of linter rules are disabled using the #disable-next-line
Bicep feature. Today, this is primarily for disabling the no-loc-expr-outside-params linter rule for the, optional, telemetry module as we want to ensure this telemetry deployment is stored in the same location as specified by the location
input when deploying the Bicep module, instead of in the same location as specified by parLocation
as this may be different from the region targeted by the deployment to ARM.
You may also see it in some location for resources that do not require a region for deployment, like Azure Policies, so instead of making users input an additional parameter for the region, we just use the one that was targeted by the deployment to ARM when the module was deployed.
It is not recommended to disable linter rules when it can be resolved by making changes to the Bicep code. However, in some scenarios, like above, this is necessary.
Why do I see an error similar to Cannot retrieve the dynamic parameters for the cmdlet
when running bicep build
or trying to deploy a module?
This is normally due to the release version you are using of ALZ-Bicep
was built using the latest available Bicep features from the latest Bicep release.
An example of the error or something similar you may see is shown below:
VERBOSE: Using Bicep v0.5.6
New-AzManagementGroupDeployment: Cannot retrieve the dynamic parameters for the cmdlet. C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(448,31) : Error BCP062: The referenced declaration with name "varPolicySetDefinitionEsDenyPublicpaasendpointsParameters" is not valid.
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(453,31) : Error BCP062: The referenced declaration with name "varPolicySetDefinitionEsDenyPublicpaasendpointsParameters" is not valid.
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(458,31) : Error BCP062: The referenced declaration with name "varPolicySetDefinitionEsDenyPublicpaasendpointsParameters" is not valid.
...
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(504,31) : Error BCP062: The referenced declaration with name "varPolicySetDefinitionEsDeployDiagnosticsLoganalyticsParameters" is not valid.
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(509,31) : Error BCP062: The referenced declaration with name "varPolicySetDefinitionEsDeployDiagnosticsLoganalyticsParameters" is not valid.
...
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(1222,65) : Error BCP082: The name "loadJsonContent" does not exist in the current context. Did you mean "loadTextContent"?
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(1224,71) : Error BCP082: The name "loadJsonContent" does not exist in the current context. Did you mean "loadTextContent"?
...
C:\Source\ALZ-Bicep\infra-as-code\bicep\modules\policy\definitions\customPolicyDefinitions.bicep(1252,112) : Error BCP062: The referenced declaration with name "varCustomPolicySetDefinitionsArray" is not valid.
C:\Source\ALZ-Bicep\policyDefinitions.bicep(3,15) : Error BCP104: The referenced module has errors.
You'll note that the error message above is stating it is using Bicep v0.5.6
however, the loadJsonContent
is available in v0.7.4
and later.
So to fix this issue all you need to do is update the version of Bicep to the latest release or follow the installation instructions here: Install Bicep tools
Then just re-run the deployment or bicep build
and you should see success 👍🥳
If you discover any documentation bugs or would like to request new content, please raise them as an issue on the repo.
Contributions to this wiki are done through the main repo under docs/wiki.
- Wiki Home
- Deployment Flow
- Consumer Guide
- How Does ALZ-Bicep Implement Azure Policies?
- How Does ALZ-Bicep Implement resilient deployments across availability zones?
- Contributing
- Telemetry Tracking Using Customer Usage Attribution (PID)
- Azure Container Registry Deployment - Private Bicep Registry
- Sample Pipelines
- Code tours