Update-AzureVMImage
Uppdaterar etiketten för en operativsystemavbildning på avbildningslagringsplatsen.
Kommentar
De cmdletar som refereras i den här dokumentationen är till för att hantera äldre Azure-resurser som använder Service Management-API:er. Se Az PowerShell-modulen för cmdletar för att hantera Azure Resource Manager-resurser.
Syntax
Update-AzureVMImage
[-ImageName] <String>
[-Label] <String>
[[-Eula] <String>]
[[-Description] <String>]
[[-ImageFamily] <String>]
[[-PublishedDate] <DateTime>]
[[-PrivacyUri] <Uri>]
[[-RecommendedVMSize] <String>]
[[-DiskConfig] <VirtualMachineImageDiskConfigSet>]
[[-Language] <String>]
[[-IconName] <String>]
[[-SmallIconName] <String>]
[-DontShowInGui]
[-Profile <AzureSMProfile>]
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
Cmdleten Update-AzureVMImage uppdaterar etiketten på en operativsystemavbildning på avbildningslagringsplatsen. Det returnerar ett bildobjekt med information om den uppdaterade avbildningen.
Exempel
Exempel 1: Uppdatera en bild genom att ändra bildetiketten
PS C:\> Update-AzureVMImage -ImageName "Windows-Server-2008-SP2" -Label "DoNotUse"
Det här kommandot uppdaterar avbildningen med namnet Windows-Server-2008-SP2 genom att ändra avbildningsetiketten till DoNotUse.
Exempel 2: Hämta alla operativsystem efter etikett och uppdatera sedan etiketten
PS C:\> Get-AzureVMImage | Where-Object {$_.Label -eq "DoNotUse" } | Update-AzureVMImage -Label "Updated"
Det här kommandot hämtar alla operativsystemavbildningar med etiketten DoNotUse och ändrar etiketten till Uppdaterad.
Parametrar
-Description
Anger beskrivningen av operativsystemavbildningen.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DiskConfig
Anger operativsystemets disk- och datadiskkonfiguration för den virtuella datoravbildningen som skapats med hjälp av cmdletarna New-AzureVMImageDiskConfigSet, Set-AzureVMImageOSDiskConfig och Set-AzureVMImageDataDiskConfig .
Type: | VirtualMachineImageDiskConfigSet |
Position: | 8 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DontShowInGui
Anger att den här cmdleten inte visar avbildningen i användargränssnittet.
Type: | SwitchParameter |
Position: | 12 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Eula
Anger licensavtalet för slutanvändare. Vi rekommenderar att värdet är en URL.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IconName
Anger standardikonnamnet för operativsystemet eller den virtuella datoravbildningen.
Type: | String |
Aliases: | IconUri |
Position: | 10 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ImageFamily
Anger ett värde som kan användas för att gruppera operativsystem eller avbildningar av virtuella datorer.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ImageName
Anger namnet på avbildningen som ska uppdateras på avbildningslagringsplatsen.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InformationAction
Anger hur den här cmdleten svarar på en informationshändelse.
De godtagbara värdena för den här parametern är:
- Fortsätt
- Ignorera
- Fråga
- TystKontinuera
- Stoppa
- Suspend
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
Anger en informationsvariabel.
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Label
Anger bildens nya etikett.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Language
Anger språket för operativsystemet på den virtuella datorn eller operativsystemavbildningen.
Type: | String |
Position: | 9 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PrivacyUri
Anger den URI som pekar på ett dokument som innehåller sekretesspolicyn som är relaterad till operativsystemavbildningen.
Type: | Uri |
Position: | 6 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
Anger den Azure-profil som den här cmdleten läser från. Om du inte anger någon profil läser den här cmdleten från den lokala standardprofilen.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PublishedDate
Anger det datum då operativsystemavbildningen lades till i avbildningslagringsplatsen.
Type: | DateTime |
Position: | 5 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RecommendedVMSize
Anger storleken på den virtuella datorn.
De godtagbara värdena för den här parametern är:
- Medium
- Stort
- ExtraLarge
- A5
- A6
- A7
Type: | String |
Position: | 7 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SmallIconName
Anger det lilla ikonnamnet för operativsystemet eller den virtuella datoravbildningen.
Type: | String |
Aliases: | SmallIconUri |
Position: | 11 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Utdata
OSImageContext