Manage Azure using Windows PowerShell with publishsettings file


 

Use the certificate method

The Azure module includes cmdlets that help you download and import the certificate.

  • The Get-AzurePublishSettingsFile cmdlet opens a web page on the Azure Management Portal, from which you can download the subscription information. The information is contained in a .publishsettings file.

  • The Import-AzurePublishSettingsFile imports the .publishsettings file for use by the module. This file includes a management certificate that has security credentials.

e.g.

Import-AzurePublishSettingsFile “c:\mydownloaded.publishsettings”

Get-AzureAccount

Get-AzureSubscription

Stop-AzureVM -ServiceName “myServiceName” -Name “myName” -StayProvisioned

Advertisements

One thought on “Manage Azure using Windows PowerShell with publishsettings file

  1. Pingback: Manage Azure using Windows PowerShell | Vincent Leung .NET Tech Clips

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s