Forum Discussion
Xuhui_Liu
Mar 14, 2024Copper Contributor
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...
- 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 refreshingOne 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!
arnaud_grow-una
Mar 15, 2024Brass Contributor
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!
- Xuhui_Liu2255Mar 15, 2024Copper ContributorThank you. You are correct. Azure portal display is so capricious!