< Back
Import-AzurePublishSettingsFile
Post
NAME Import-AzurePublishSettingsFile
SYNOPSIS
Imports a publish-settings file with a certificate to connect to your Microsoft Azure account.
SYNTAX
Import-AzurePublishSettingsFile [-PublishSettingsFile] <String> [-SubscriptionDataFile <String>] [<CommonParameters>]
DESCRIPTION
The Import-AzurePublishSettingsFile cmdlet imports a .publishsettings file downloaded using the Get-AzurePublishSettingsFile cmdlet. This file contains
settings and an encoded certificate that is used to provide management credentials for the Microsoft Azure account.
Security Note: The file downloaded contains an encoded management certificate that serves as the credentials to administer Microsoft Azure subscriptions
and services. Store this file in a secure location or delete after use.
PARAMETERS
-PublishSettingsFile <String>
Specifies the full path and filename for the .publishsettings file for the Microsoft Azure account.
Required? true
Position? 1
Default value
Accept pipeline input? false
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..
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
node-dev, php-dev
Keywords: azure, azuresm, servicemanagement, management, service, utilities
-------------- Example 1 --------------
PS C:\\> Import-AzurePublishSettingsFile ????????PublishSettingsFile "C:\\Temp\\MyAccountName-date-credentials.publishsettings"
This example imports the "C:\\Temp\\MyAccountName-date-credentials.publishsettings" file for a Microsoft Azure account, including the encoded certificate
used for management of the account.
-------------- Example 2 --------------
PS C:\\> Import-AzurePublishSettingsFile ????????PublishSettingsFile "C:\\Temp\\MyAccountName-date-credentials.publishsettings" ????????SubscriptionDataFile
c:\\Subs\\Subscriptions.xml"
This example imports the "C:\\Temp\\MyAccountName-date-credentials.publishsettings" file for a Microsoft Azure account, including the encoded certificate
used for management of the account.
RELATED LINKS
Get-AzureSubscription
Remove-AzureSubscription
Select-AzureSubscription
Set-AzureSubscription
SYNOPSIS
Imports a publish-settings file with a certificate to connect to your Microsoft Azure account.
SYNTAX
Import-AzurePublishSettingsFile [-PublishSettingsFile] <String> [-SubscriptionDataFile <String>] [<CommonParameters>]
DESCRIPTION
The Import-AzurePublishSettingsFile cmdlet imports a .publishsettings file downloaded using the Get-AzurePublishSettingsFile cmdlet. This file contains
settings and an encoded certificate that is used to provide management credentials for the Microsoft Azure account.
Security Note: The file downloaded contains an encoded management certificate that serves as the credentials to administer Microsoft Azure subscriptions
and services. Store this file in a secure location or delete after use.
PARAMETERS
-PublishSettingsFile <String>
Specifies the full path and filename for the .publishsettings file for the Microsoft Azure account.
Required? true
Position? 1
Default value
Accept pipeline input? false
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..
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
node-dev, php-dev
Keywords: azure, azuresm, servicemanagement, management, service, utilities
-------------- Example 1 --------------
PS C:\\> Import-AzurePublishSettingsFile ????????PublishSettingsFile "C:\\Temp\\MyAccountName-date-credentials.publishsettings"
This example imports the "C:\\Temp\\MyAccountName-date-credentials.publishsettings" file for a Microsoft Azure account, including the encoded certificate
used for management of the account.
-------------- Example 2 --------------
PS C:\\> Import-AzurePublishSettingsFile ????????PublishSettingsFile "C:\\Temp\\MyAccountName-date-credentials.publishsettings" ????????SubscriptionDataFile
c:\\Subs\\Subscriptions.xml"
This example imports the "C:\\Temp\\MyAccountName-date-credentials.publishsettings" file for a Microsoft Azure account, including the encoded certificate
used for management of the account.
RELATED LINKS
Get-AzureSubscription
Remove-AzureSubscription
Select-AzureSubscription
Set-AzureSubscription