< Back
Set-AzureRmAutomationCertificate
Post
NAME Set-AzureRmAutomationCertificate
SYNOPSIS
Modifies the configuration of an Automation certificate.
SYNTAX
Set-AzureRmAutomationCertificate [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-Name] <String> [-DefaultProfile
<IAzureContextContainer>] [-Description <String>] [-Exportable <Boolean>] [-Password <SecureString>] [-Path <String>] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmAutomationCertificate cmdlet modifies the configuration of a certificate in Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of the Automation account for which this cmdlet modifies a certificate.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Description <String>
Specifies a description for the certificate that this cmdlet modifies.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Exportable <Boolean>
Specifies whether the certificate can be exported.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of the certificate that this cmdlet modifies.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Password <SecureString>
Specifies the password for the certificate file.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Specifies the path to a script file to upload. The file can be a .cer file or a .pfx file.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group for which this cmdlet modifies a certificate.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Automation.Model.CertificateInfo
NOTES
Example 1: Modify a certificate
PS C:\\>$Password = ConvertTo-SecureString -String "Password" -AsPlainText -Force
PS C:\\> Set-AzureAutomationCertificate -AutomationAccountName "Contos17" -Name "ContosoCertificate" -Path "./cert.pfx" -Password $Password
-ResourceGroupName "ResourceGroup01"
The first command converts a plain text password to be a secure string by using the ConvertTo-SecureString cmdlet. The command stores that object
in the $Password variable.
The second command modifies a certificate named ContosoCertificate. The command uses the password stored in $Password. The command specifies the
account name and the path of the file that it uploads.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Get-AzureRmAutomationCertificate
New-AzureRmAutomationCertificate
Remove-AzureRmAutomationCertificate
SYNOPSIS
Modifies the configuration of an Automation certificate.
SYNTAX
Set-AzureRmAutomationCertificate [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-Name] <String> [-DefaultProfile
<IAzureContextContainer>] [-Description <String>] [-Exportable <Boolean>] [-Password <SecureString>] [-Path <String>] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmAutomationCertificate cmdlet modifies the configuration of a certificate in Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of the Automation account for which this cmdlet modifies a certificate.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Description <String>
Specifies a description for the certificate that this cmdlet modifies.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Exportable <Boolean>
Specifies whether the certificate can be exported.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Name <String>
Specifies the name of the certificate that this cmdlet modifies.
Required? true
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Password <SecureString>
Specifies the password for the certificate file.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Path <String>
Specifies the path to a script file to upload. The file can be a .cer file or a .pfx file.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of the resource group for which this cmdlet modifies a certificate.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
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 (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Automation.Model.CertificateInfo
NOTES
Example 1: Modify a certificate
PS C:\\>$Password = ConvertTo-SecureString -String "Password" -AsPlainText -Force
PS C:\\> Set-AzureAutomationCertificate -AutomationAccountName "Contos17" -Name "ContosoCertificate" -Path "./cert.pfx" -Password $Password
-ResourceGroupName "ResourceGroup01"
The first command converts a plain text password to be a secure string by using the ConvertTo-SecureString cmdlet. The command stores that object
in the $Password variable.
The second command modifies a certificate named ContosoCertificate. The command uses the password stored in $Password. The command specifies the
account name and the path of the file that it uploads.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ertificate
Get-AzureRmAutomationCertificate
New-AzureRmAutomationCertificate
Remove-AzureRmAutomationCertificate