Skip to content

Latest commit

 

History

History
175 lines (129 loc) · 4.19 KB

Remove-AzureCertificate.md

File metadata and controls

175 lines (129 loc) · 4.19 KB
external help file ms.assetid online version schema
Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml
4E3D405D-69FB-42C2-8A5B-BDBD27B63088
2.0.0

Remove-AzureCertificate

SYNOPSIS

Removes a certificate from an Azure service.

[!INCLUDE rdfe-banner]

[!INCLUDE rdfe-deprecation-banner]

SYNTAX

Remove-AzureCertificate [-ServiceName] <String> [-ThumbprintAlgorithm] <String> [-Thumbprint] <String>
 [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
 [<CommonParameters>]

DESCRIPTION

The Remove-AzureCertificate cmdlet removes a certificate from an Azure service.

EXAMPLES

Example 1: Remove a certificate from a service

PS C:\> Remove-AzureCertificate -ServiceName "ContosoService" -Thumbprint '5383CE0343CB6563281CA97C1D4D712209CFFA97'

This command removes the certificate object that has the specified thumbprint from the cloud service.

Example 2: Remove all certificates from a service

PS C:\> Get-AzureCertificate -ServiceName "ContosoService" | Remove-AzureCertificate

This command gets all the certificates from the service named ContosoService by using the Get-AzureCertificate cmdlet. The command passes each certificate to the current cmdlet by using the pipeline operator. That cmdlet removes each certificate from the cloud service.

Example 3: Remove all certificates from a service that use a specific thumbprint algorithm

PS C:\> Get-AzureCertificate -ServiceName "ContosoService" -ThumbprintAlgorithm "sha1" | Remove-AzureCertificate

This command gets all the certificates from the service named ContosoService that use the sha1 thumbprint algorithm. The command passes each certificate to the current cmdlet, which removes each certificate.

PARAMETERS

-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type: ActionPreference
Parameter Sets: (All)
Aliases: infa

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InformationVariable

Specifies an information variable.

Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type: AzureSMProfile
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ServiceName

Specifies the name of the Azure service from which this cmdlet removes a certificate.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Thumbprint

Specifies the thumbprint of the certificate that this cmdlet removes.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ThumbprintAlgorithm

Specifies the algorithm that is used to create the certificate thumbprint.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

ManagementOperationContext

NOTES

RELATED LINKS

Add-AzureCertificate

Get-AzureCertificate

New-AzureCertificateSetting