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
394 stars 85 forks source link

Azure.ACR.MinSku rule persistently fails #1034

Closed Gordonby closed 3 years ago

Gordonby commented 3 years ago

Description of the issue

The Azure.ACR.MinSku rule is failing, when the Sku has been set correctly. The field 'Sku.tier' does not exist.

Expected behaviour

The field Sku.name should be leveraged

Error output

    | REASON:
    | - The field 'Sku.tier' does not exist.

    | HELP:
    | - https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.ACR.MinSku/

Error: crsimplecluster88fe5cb213119 failed Azure.ACR.MinSku. ACR should use the Premium or Standard SKU for production deployments.

Module in use and version:

Captured output from $PSVersionTable:

Additional context https://docs.microsoft.com/en-us/azure/templates/microsoft.containerregistry/registries?tabs=bicep#sku

BernieWhite commented 3 years ago

@Gordonby Nice. Thanks for logging this. You are correct.