Azure / PSRule.Rules.Azure

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.
https://azure.github.io/PSRule.Rules.Azure/
MIT License
389 stars 84 forks source link

Add documentation around using PSRule for Azure with Bicep files that refers to private Bicep registries #1828

Closed BenjaminEngeset closed 1 year ago

BenjaminEngeset commented 1 year ago

What is the path or URL of the page you're reporting?

Don't know yet. Perhaps we should create a dedicated path for this.

How could the page be improved?

Add docoumentation around using PSRule for Azure with Bicep files that refers to private Bicep registries.

To deploy a module from a registry, you must have permission to pull the image.

Without setting up this correctly PSRule fails expanding the Bicep files that refers to private Bicep registries.

Additional context

Examples should also be added that supports GitHub and Azure DevOps.

BenjaminEngeset commented 1 year ago

@BernieWhite

What do you think is the best approach here? Recommend customers using other actions and tasks with examples than microsoft/ps-rule@v2.4.2 and ps-rule-assert@2 or that the action and task gets support to authenticate to the context (don't even know if this is possible in a short timeline)?

Bicep modules in Bicep registries has gotten quite popular and we should at least have some way to inform customers on how a working setup could look like.

Might be that the PSRule repository is a better fit for this, dunno.

BernieWhite commented 1 year ago

Does this address the requirement or do you think we need to add additional information here: https://azure.github.io/PSRule.Rules.Azure/using-bicep/#restoring-modules-from-a-private-registry

BenjaminEngeset commented 1 year ago

Does this address the requirement or do you think we need to add additional information here: https://azure.github.io/PSRule.Rules.Azure/using-bicep/#restoring-modules-from-a-private-registry

This issue can be closed. I was not aware this already was covered. Very nice!