Connect to Azure with PowerShell - Connect-AzAccount

Опубликовано: 21 Февраль 2023
на канале: Mike in the Cloud
12,258
134

To connect to Azure using PowerShell, you can follow these steps:

Install the Azure PowerShell module. You can do this by running the following command in an elevated PowerShell session:


Install-Module -Name Az -AllowClobber
Once the module is installed, you can connect to your Azure account by running the following command:


Connect-AzAccount
This will open a pop-up window asking you to sign in to your Azure account. Once you have signed in, you will be connected to your Azure account.

If you have multiple Azure subscriptions, you can select the one you want to work with by running the following command:


Set-AzContext -SubscriptionId 'subscription-id'
Replace 'subscription-id' with the ID of the subscription you want to use.

That's it! You are now connected to Azure using PowerShell. You can start using the cmdlets provided by the Az module to manage your Azure resources.


Смотрите видео Connect to Azure with PowerShell - Connect-AzAccount онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mike in the Cloud 21 Февраль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 12,258 раз и оно понравилось 134 людям.