Azure Policy Assignment name discrepancy in powershell output and azure portal

augustine leo 0 Reputation points
2024-03-04T20:59:26.36+00:00

Hello ,

I am working on a pester test with a policy with some powershell scripts , i have deployed 2 storage accounts in azure and both are compliant with the policy which i have assigned.

The powershell output different AssignmentName for one of the storage account. one appears to be correct and another one has a diffrent name in powershell view , but whereas the azure portal has a single assignment name for both of the storage accounts deployed.

Could you please share your views on this ..

Thanks in advance your help

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
799 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,100 questions
{count} votes