AZ500X Azure Security Technologies Lab 03: Resource Manager Locks – Azure Security Engineer Exam

AZ500X Azure Security Technologies Lab 03: Resource Manager Locks – Azure Security Engineer Exam

Topics Covered:
create a ReadOnly lock
create a Delete lock

Useful commands:
New-AzResourceGroup -Name AZ500LAB03 -Location ‘EastUS’
New-AzStorageAccount -ResourceGroupName AZ500LAB03 -Name (Get-Random -Maximum 999999999999999) -Location EastUS -SkuName Standard_LRS -Kind StorageV2

$storageaccountname = (Get-AzStorageAccount -ResourceGroupName AZ500LAB03).StorageAccountName

$lockName = (Get-AzResourceLock -ResourceGroupName AZ500LAB03 -ResourceName $storageAccountName -ResourceType Microsoft.Storage/storageAccounts).Name

Remove-AzResourceLock -LockName $lockName -ResourceName $storageAccountName -ResourceGroupName AZ500LAB03 -ResourceType Microsoft.Storage/storageAccounts -Force
Remove-AzResourceGroup -Name “AZ500LAB03” -Force -AsJob

For more information, please visit:
https://github.com/MicrosoftLearning/TEST-AZ500X-AzureSecurityTechnologies/blob/master/Instructions/Labs/LAB_03_AzureLocks.md

 555 total views,  2 views today

about author

Ankan Basu

ankanbasu@ankanbasu.com

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.