Delen via


Set-AzureAutomationCertificate

Hiermee wijzigt u de configuratie van een Automation-certificaat.

Notitie

De cmdlets waarnaar in deze documentatie wordt verwezen, zijn bedoeld voor het beheren van verouderde Azure-resources die gebruikmaken van Service Management-API's. Zie de Az PowerShell-module voor cmdlets voor het beheren van Azure Resource Manager-resources.

Syntax

Set-AzureAutomationCertificate
   -Name <String>
   [-Description <String>]
   [-Password <SecureString>]
   [-Path <String>]
   [-Exportable <Boolean>]
   -AutomationAccountName <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Belangrijk

Deze PowerShell-opdracht voor Azure Automation wordt langer ondersteund vanaf 23-01-2020. Het Azure Service Management-model is afgeschaft voor Azure Automation en is uitgeschakeld op die datum. Gebruik de opdrachten die ondersteuning bieden voor het Azure Resource Management-model in Az.Automation.

De cmdlet Set-AzureAutomationCertificate wijzigt de configuratie van een certificaat in Microsoft Azure Automation.

Voorbeelden

Voorbeeld 1: Een certificaat bijwerken

PS C:\> $password = ConvertTo-SecureString "PassWord!" -AsPlainText -Force
PS C:\> Set-AzureAutomationCertificate -AutomationAccountName "Contos17" -Name "MyCertificate" -Path "./cert.pfx" -Password $password

Met deze opdrachten wordt een bestaand certificaat met de naam MyCertificate in Automation bijgewerkt. Met de eerste opdracht maakt u het wachtwoord voor het certificaatbestand dat wordt gebruikt in de tweede opdracht waarmee het certificaat wordt bijgewerkt.

Parameters

-AutomationAccountName

Hiermee geeft u de naam van het Automation-account met het certificaat.

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

-Description

Hiermee geeft u een beschrijving voor het certificaat.

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

-Exportable

Geeft aan dat het certificaat kan worden geƫxporteerd.

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

-Name

Hiermee geeft u de naam van het certificaat.

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

-Password

Hiermee geeft u het wachtwoord voor het certificaatbestand.

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

-Path

Hiermee geeft u het pad naar een scriptbestand dat moet worden geĆ¼pload. Het bestand kan .cer of .pfx zijn.

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

-Profile

Hiermee geeft u het Azure-profiel op waaruit deze cmdlet wordt gelezen. Als u geen profiel opgeeft, leest deze cmdlet uit het lokale standaardprofiel.

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

Uitvoerwaarden

CertificateInfo