Import-AzurePublishSettingsFile

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Import-AzurePublishSettingsFile

Imports a publish-settings file with a certificate to connect to your Windows Azure account.

Parameter Set: Default
Import-AzurePublishSettingsFile [[-PublishSettingsFile] <String> ] [[-SubscriptionDataFile] <String> ] [ <CommonParameters>]

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

The Import-AzurePublishSettingsFile cmdlet imports a .publishsettings file that has been downloaded using the Get-AzurePublishSettingsFile cmdlet. This file contains settings and an encoded certificate that provides management credentials for the Windows Azure account.

Security Note: The file downloaded contains an encoded management certificate that serves as the credentials to administer Windows Azure subscriptions and services. Store this file in a secure location or delete it after you use it.

-PublishSettingsFile<String>

Specifies the full path and filename for the .publishsettings file for the Windows Azure account.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SubscriptionDataFile<String>

Specifies the path to a file where the subscription data is stored. This parameter is optional. If it is not provided, the subscription data is imported into a default file in the user's profile.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

-------------- Example 1 --------------

This example imports the "C:\Temp\MyAccountName-date-credentials.publishsettings" file for a Windows Azure account, including the encoded certificate used for management of the account.

PS C:\> Import-AzurePublishSettingsFile –PublishSettingsFile "C:\Temp\MyAccountName-date-credentials.publishsettings" 

-------------- Example 2 --------------

This example imports the "C:\Temp\MyAccountName-date-credentials.publishsettings" file for a Windows Azure account, including the encoded certificate used for management of the account.

PS C:\> Import-AzurePublishSettingsFile –PublishSettingsFile "C:\Temp\MyAccountName-date-credentials.publishsettings" –SubscriptionDataFile c:\Subs\Subscriptions.xml"

Get-AzureSubscription

Remove-AzureSubscription

Select-AzureSubscription

Set-AzureSubscription

Get Started with Windows Azure Cmdlets