Forum Discussion

Xuhui_Liu's avatar
Xuhui_Liu
Copper Contributor
Mar 14, 2024
Solved

Confused on the dispaly after "add lock" on storage

I am practising https://learn.microsoft.com/zh-cn/training/modules/describe-features-tools-azure-for-governance-compliance/5-exercise-configure-resource-lock. The display don't match the images. Ste...
  • arnaud_grow-una's avatar
    Mar 15, 2024

    Hello Xuhui_Liu 

     

    I tried on my side and all worked as expected.
    Be aware that Azure is often capricious in terms of refreshing 

     

    One option to validate that it's just a refresh issue is to check by using PowerShell or CLI command.

    • PowerShell command:
    Get-AzResourceLock -ResourceGroupName <resource-group-name> -ResourceName <storage-account-name> -ResourceType Microsoft.Storage/storageAccounts 
    • PowerShell result:

     

    • AZ CLI command:
    az resource lock show -n <lock-name> -g <resource-group-name> --resource <storage-account-name> --resource-type Microsoft.Storage/storageAccounts
    • AZ CLI result:

     

    Hope it helps!

Resources