In this Azure PowerShell article, we will discuss the syntax and usage of the Remove-AzResourceLock Azure PowerShell cmdlet with examples.
Remove-AzResourceLock is the PowerShell command that you can use to remove a lock from an Azure resource.
Below is the syntax of the Remove-AzResourceLock Azure PowerShell cmdlet.
Below Azure PowerShell cmdlet will remove the lock named as “TsInfoWebSiteLock”.
Remove-AzResourceLock -LockName "TsInfoWebSiteLock" -ResourceGroupName MyNewResGrp -ResourceName 'TsInfoweb' -ResourceType "microsoft.web/sites"
After executing the above PowerShell command, I got the below popup to confirm the deletion process. Then I clicked on the Yes button to confirm.
Then I got the output as “True” and the Resource lock has been deleted successfully. You can see the output as below.
To verify that, Again I tried executing the PowerShell command, I got the output as resource not found. You can check that on the below screen shot.
You may also like following the below articles
Well, In this Azure article, we discussed the syntax and usage of Remove-AzResourceLock Azure PowerShell cmdlet with examples. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.