Azure Resource Group Operations: Difference between revisions
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Azure_Operations#Subjects|Azure Operations]] | * [[Azure_Operations#Subjects|Azure Operations]] | ||
* [[Azure_Concepts#Resource_Group|Azure Concepts | Resource Group]] | |||
=Information about Resource Groups= | |||
==List Resource Groups== | |||
<syntaxhighlight lang='bash'> | |||
az group list | |||
</syntaxhighlight> | |||
==Display Information about a Resource Group== | |||
<syntaxhighlight lang='bash'> | |||
az group show --resource-group <group-name> | |||
</syntaxhighlight> | |||
=Create a Resource Group= | =Create a Resource Group= | ||
Line 8: | Line 19: | ||
export LOCATION=... | export LOCATION=... | ||
export RESOURCEGROUP =... | export RESOURCEGROUP =... | ||
az group create --name $RESOURCEGROUP --location $LOCATION -- | az group create --name $RESOURCEGROUP --location $LOCATION | ||
</syntaxhighlight> | |||
=Delete a Resource Group= | |||
⚠️ Deleting a resource group will delete all resources associated with the group. This is potentially a very destructive operation. | |||
<syntaxhighlight lang='bash'> | |||
az group delete --name <group-name> | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 21:31, 19 November 2020
Internal
Information about Resource Groups
List Resource Groups
az group list
Display Information about a Resource Group
az group show --resource-group <group-name>
Create a Resource Group
With Console
With CLI
export LOCATION=...
export RESOURCEGROUP =...
az group create --name $RESOURCEGROUP --location $LOCATION
Delete a Resource Group
⚠️ Deleting a resource group will delete all resources associated with the group. This is potentially a very destructive operation.
az group delete --name <group-name>