Set-AzAutomationVariable
Memodifikasi variabel Automation.
Sintaks
Set-AzAutomationVariable
[-Name] <String>
-Encrypted <Boolean>
-Value <Object>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Set-AzAutomationVariable
[-Name] <String>
-Description <String>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Set-AzAutomationVariable memodifikasi nilai atau deskripsi variabel di Azure Automation. Untuk mengenkripsi variabel, tentukan parameter Terenkripsi . Anda tidak dapat mengubah status variabel terenkripsi setelah pembuatan. Menentukan Terenkripsi untuk variabel yang sudah ada, tidak dienkripsi, gagal.
Contoh
Contoh 1: Mengatur nilai variabel
Set-AzAutomationVariable -AutomationAccountName "Contoso17" -Name "StringVariable22" -ResourceGroupName "ResourceGroup01" -Value "New Value" -Encrypted $False
Perintah ini menetapkan nilai baru untuk variabel bernama StringVariable22 di akun Azure Automation bernama Contoso17.
Parameter
-AutomationAccountName
Menentukan nama akun Automation tempat variabel disimpan.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Menentukan deskripsi untuk variabel.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Encrypted
Menentukan apakah cmdlet mengenkripsi nilai variabel untuk penyimpanan.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Menentukan nama variabel yang dimodifikasi cmdlet ini.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Menentukan grup sumber daya tempat cmdlet ini memodifikasi variabel.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Value
Menentukan nilai untuk variabel.
Type: | Object |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Input
Output
Link Terkait
Azure PowerShell
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk