Table of contents
Create resource group
-
Source : https://learn.microsoft.com/en-us/cli/azure/group?view=azure-cli-latest#az-group-create
$resourceGroup = "rg-francecentral-networking-hub" $Location = "francecentral" # Create Resource Group az group create --name $resourceGroup --location $Location
-
- name: "Deploy resources groups - Create or remove resource group" azure.azcollection.azure_rm_resourcegroup: name: '{{ _resources_group.name }}' location: '{{ _resources_group.name.location | default(default_location) }}' tags: '{{ _resources_group.name.tags | default(omit) }}' state: '{{ _resources_group.state | default("present") }}' vars: _resources_group: name: "rg-francecentral-networking-hub" location: "francecentral"