Remove-AzVmGalleryApplication
Ta bort ett VMGalleryApplication-objekt från PSVirtualMachine-objektet.
Anteckning
Det här är den tidigare versionen av vår dokumentation. Se den senaste versionen för uppdaterad information.
Syntax
Remove-AzVmGalleryApplication
-VM <PSVirtualMachine>
-GalleryApplicationsReferenceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Tar bort ett VMGalleryApplication-objekt från PSVirtualMachine-objektet.
Exempel
Exempel 1
$vm = Get-AzVm -ResourceGroupName $rgname -Name $vmName
Remove-AzVmGalleryApplication -VM $vm -GalleryApplicationsReferenceId $refId
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-GalleryApplicationsReferenceId
Paketreferens-ID för galleriprogrammet som ska tas bort.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-VM
PSVirtualMachine-objektet som du vill ta bort ett referens-ID för galleriprogram från.
| Type: | PSVirtualMachine |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Indata
None