title | description | author | ms.author | ms.service | ms.topic | ms.date |
---|---|---|---|---|---|---|
Request access to Azure Extended Zones |
Learn how to request and gain access to an Azure Extended Zone by using Azure PowerShell or Azure CLI. |
halkazwini |
halkazwini |
azure-extended-zones |
how-to |
11/19/2024 |
To create Azure resources in Azure Extended Zone locations, you need to explicitly register your subscription with the respective Azure Extended Zone, using an account that is a subscription owner, as this capability isn't enabled by default. Once the subscription is registered with the Azure Extended Zone, you can create and manage resources within that specific Azure Extended Zone.
In this article, you learn how to request and gain access to an Azure Extended Zone using PowerShell or Azure CLI.
-
A billable Azure account.
-
Azure Cloud Shell or Azure PowerShell.
The steps in this article run the Azure PowerShell cmdlets interactively in Azure Cloud Shell. To run the cmdlets in the Cloud Shell, select Open Cloud Shell at the upper-right corner of a code block. Select Copy to copy the code and then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
You can also install Azure PowerShell locally to run the cmdlets. This article requires the Az.EdgeZones module version 0.1.0 or later. Run Get-Module -ListAvailable Az.EdgeZones cmdlet to find the installed version. Run Install-Module Az.EdgeZones cmdlet to install Az.EdgeZones module. If you run PowerShell locally, sign in to Azure using the Connect-AzAccount cmdlet.
-
A billable Azure account.
-
Azure Cloud Shell or Azure CLI.
The steps in this article run the Azure CLI commands interactively in Azure Cloud Shell. To run the commands in the Cloud Shell, select Open Cloud Shell at the upper-right corner of a code block. Select Copy to copy the code, and paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal.
You can also install Azure CLI locally to run the commands. This article requires the edgezones extension, which is available in Azure CLI version 2.57.0 or higher. Run az --version command to find the installed version. Run az extension add --name edgezones command to add edgezones extension. If you run Azure CLI locally, sign in to Azure using the az login command.
In this section, you register resource provider Microsoft.EdgeZones to your subscription.
-
Use Select-AzContext cmdlet to select the subscription that you want to register Azure Extended Zones for.
Set-AzContext -SubscriptionId 'aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e'
-
Use Register-AzResourceProvider cmdlet to register Microsoft.EdgeZones resource provider.
Register-AzResourceProvider -ProviderNamespace 'Microsoft.EdgeZones'
-
Use Get-AzResourceProvider cmdlet to check the registration state.
Get-AzResourceProvider –ProviderNamespace 'Microsoft.EdgeZones'
You should wait until the registration state becomes
Registered
. If it's stillPendingRegister
, attempting to show, list, register, and unregister the Azure Extended Zones will fail.
-
Use az account set command to select the subscription that you want to register Azure Extended Zones for.
az account set --subscription 'aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e'
-
Use az provider register command to register Microsoft.EdgeZones resource provider.
az provider register --namespace 'Microsoft.EdgeZones'
-
Use az provider show command to check the registration state.
az provider show --namespace 'Microsoft.EdgeZones'
You should wait until the registration state becomes
Registered
. If it's stillPendingRegister
, attempting to show, list, register, and unregister the Azure Extended Zones will fail.
To register for an Azure Extended Zone, you must select the subscription that you wish to register Azure Extended Zones for and specify the Extended Zone name.
Note
The Azure account that you're using to register for Azure Extended Zones must be a billable account. To share your feedback or ask questions about Azure Extended Zones, contact Azure Extended Zones support.
-
Use Get-AzEdgeZonesExtendedZone cmdlet to list all Azure Extended Zones available to your subscription.
Get-AzEdgeZonesExtendedZone
-
Use Register-AzEdgeZonesExtendedZone cmdlet to register for an Azure Extended Zone. The following example registers for Los Angeles as an Extended Zone.
Register-AzEdgeZonesExtendedZone -Name 'losangeles'
-
Use Get-AzEdgeZonesExtendedZone cmdlet to check the registration state of an Azure Extended Zone. The following example checks the registration state of the Extended Zone Los Angeles.
Get-AzEdgeZonesExtendedZone -Name 'losangeles'
Once your request is approved, the registration state becomes
Registered
.[!NOTE] You can't use an Azure Extended Zone until its registration state becomes
Registered
.
-
Use az edge-zones extended-zone list command to list all Azure Extended Zones available to your subscription.
az edge-zones extended-zone list
-
Use az edge-zones extended-zone register command to register for an Azure Extended Zone. The following example registers for Los Angeles as an Extended Zone.
az edge-zones extended-zone register --extended-zone-name 'losangeles'
-
Use az edge-zones extended-zone show command to check the registration state of an Azure Extended Zone. The following example checks the registration state of the Extended Zone Los Angeles.
az edge-zones extended-zone show --extended-zone-name 'losangeles'
Once your request is approved, the registration state becomes
Registered
.[!NOTE] You can't use an Azure Extended Zone until its registration state becomes
Registered
.
In this section, you learn how to unregister your subscription for an Azure Extended Zone.
-
Use Unregister-AzEdgeZonesExtendedZone cmdlet to unregister your subscription for an Azure Extended Zone. The following example unregisters for Los Angeles as an Extended Zone.
Unregister-AzEdgeZonesExtendedZone -Name 'losangeles'
-
Use Get-AzEdgeZonesExtendedZone cmdlet to check the registration state of an Azure Extended Zone. The following example checks the registration state of the Extended Zone Los Angeles.
Get-AzEdgeZonesExtendedZone -Name 'losangeles'
[!NOTE] Unregistering an Azure Extended Zone will show registration state as
PendingUnregister
. The Extended Zone stays in your subscription until the registration state becomesNotRegistered
.
-
Use az edge-zones extended-zone unregister command to unregister your subscription for an Azure Extended Zone. The following example unregisters for Los Angeles as an Extended Zone.
az edge-zones extended-zone unregister --extended-zone-name 'losangeles'
-
Use az edge-zones extended-zone show command to check the registration state of an Azure Extended Zone. The following example checks the registration state of the Extended Zone Los Angeles.
az edge-zones extended-zone show --extended-zone-name 'losangeles'
[!NOTE] Unregistering an Azure Extended Zone will show registration state as
PendingUnregister
. The Extended Zone stays in your subscription until the registration state becomesNotRegistered
.