 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to delete the Azure Resource Group using PowerShell?
To delete the azure resource group using PowerShell, we need to use the Remove-AZResourceGroup command. But before using this command, make sure that no usable resources exist in the resource group that you want to delete.
To check if the resources are available in the resource group, use the below command. Here we are using the TestRG resource group name.
Example
Get-AzResource -ResourceGroupName TestRG
Once you are confirmed that you need to delete the Resource Group then use the below command to delete the resource group.
Example
Remove-AzResourceGroup TestRG -Force -Verbose
When you use the -Force parameter, you won’t be prompted for deletion confirmation.
Advertisements
 