Import-AzurePublishSettingsFile vs Add-AzureAccount

Introduce problem

I like to manage Windows Azure windows through PowerShell. For example, I like to run Get-Website to see a list of all my websites. Before I do this, I need to authenticate with Windows Azure.

Study

One way to do this is Add-AzureAccount , which prompts me to log in with my Azure username and password, after which I can run Get-AzureWeb to view the list. At the moment, I do not have management certificates, and this does not seem to matter. I can run Remove-AzureAccount some@account.com to exit.

enter image description here

- . Get-AzurePublishSettingsFile, Import-AzurePublishSettingsFile, Get-AzureWeb .

.

, , , , ?

+4
1

Import-AzurePublishSettingsFile , .

Add-AzureAccount . , Add-AzureAccount, .

+4

Source: https://habr.com/ru/post/1539801/


All Articles