< Back
Remove-AzureCertificate
Post
NAME Remove-AzureCertificate
SYNOPSIS
Removes a certificate from an Azure service.
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.
PARAMETERS
-ServiceName <String>
Specifies the name of the Azure service from which this cmdlet removes a certificate.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ThumbprintAlgorithm <String>
Specifies the algorithm that is used to create the certificate thumbprint.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Thumbprint <String>
Specifies the thumbprint of the certificate that this cmdlet removes.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Profile <AzureSMProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationAction <ActionPreference>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationVariable <String>
Required? false
Position? named
Default value None
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
ManagementOperationContext
NOTES
-------------------------- 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.
RELATED LINKS
Add-AzureCertificate
Get-AzureCertificate
New-AzureCertificateSetting
SYNOPSIS
Removes a certificate from an Azure service.
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.
PARAMETERS
-ServiceName <String>
Specifies the name of the Azure service from which this cmdlet removes a certificate.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ThumbprintAlgorithm <String>
Specifies the algorithm that is used to create the certificate thumbprint.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Thumbprint <String>
Specifies the thumbprint of the certificate that this cmdlet removes.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Profile <AzureSMProfile>
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationAction <ActionPreference>
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InformationVariable <String>
Required? false
Position? named
Default value None
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
ManagementOperationContext
NOTES
-------------------------- 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.
RELATED LINKS
Add-AzureCertificate
Get-AzureCertificate
New-AzureCertificateSetting