Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-AzureCertificate

Add-AzureCertificate

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Uploads a service certificate for the specified cloud service.

Syntax

Add-AzureCertificate [-ServiceName] [-CertToDeploy] [-Password] [<CommonParameters>]

Detailed Description

Parameters

-ServiceName <String>

Specifies the name of the Microsoft Azure service to which you are adding a certificate.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-CertToDeploy <Object>

Specifies the certificate to deploy. You can specify the path file name of a certificate file (*.cer, *. pfx, etc) or an X.509 Certificate object.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Password <String>

Specifies the certificate password.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

ManagementOperationContext

Notes

Examples

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

This command uploads myCertificate.pfx certificate to the specified cloud service.

PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.pfx –password 123

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

This command uploads myCertificate.cer certificate to the specified cloud service.

PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy myCertificate.cer

-------------------------- Example 3 --------------------------

This command uploads the specified certificate to the specified cloud service, using the Get-Item Windows PowerShell cmdlet to get the certificate object.

PS C:\> C:\PS>Add-AzureCertificate -serviceName "MyService" -certToDeploy (Get-Item cert:\CurrentUser\MY\1D6E34B526723E06C235BE8E5547784BF12C9F39)

Get-AzureCertificate
Remove-AzureCertificate