Breaking News

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

 339 total views,  4 views today

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.