To get the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version. Examples Example 1: Get all subscriptions C:\PS>Get-AzureSubscription. This command gets all subscriptions in the account. Example 2: Get a subscription by name C:\PS>Get-AzureSubscription -SubscriptionName "MyProdSubscription"
Run az version to find the version and dependent libraries that are installed. To upgrade to the latest version, run az upgrade. If you choose to use Azure PowerShell locally: Install the latest version of the Az PowerShell module. Connect to your Azure account using the Connect-AzAccount cmdlet. If you choose to use Azure Cloud Shell:
To set the default cloud using a configuration file, see CLI configuration values and environment variables. To switch the active cloud, run the az cloud set command. This command takes one required argument, the name of the cloud. Azure CLI. az cloud set --name AzureChinaCloud.
To connect a cluster to Azure Arc, you'll need to use either Azure CLI or Azure PowerShell. For Azure CLI: Install or upgrade Azure CLI to the latest version. Install the latest version of connectedk8s Azure CLI extension: az extension add --name connectedk8s For Azure PowerShell: Install Azure PowerShell version 6.6.0 or later.
Get-Az Subscription [-SubscriptionName ] [-TenantId ] [-AsJob] [-DefaultProfile ] [] Description. The Get-AzSubscription cmdlet gets the subscription ID, subscription name, and home tenant for subscriptions that the current account can access. Examples
To create and provision an Azure subscription, visit the Azure Portal (
. 175 370 273 96 126 55 10 14 249
az account set subscription powershell