Remove-AzVmssGalleryApplication

Ta bort ett VMGalleryApplication-objekt från OBJEKTET PSVirtualMachineScaleSetVMProfile.

Anteckning

Det här är den tidigare versionen av vår dokumentation. Se den senaste versionen för uppdaterad information.

Syntax

Remove-AzVmssGalleryApplication
      -VirtualMachineScaleSetVM <PSVirtualMachineScaleSetVMProfile>
      -GalleryApplicationsReferenceId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

Tar bort ett VMGalleryApplication-objekt från OBJEKTET PSVirtualMachineScaleSetVMProfile.

Exempel

Exempel 1

$vmss = Get-AzVmss -ResourceGroupName $rgname -Name $vmssName
Remove-AzVmssGalleryApplication -VirtualMachineScaleSetVM $vmss.VirtualMachineProfile -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
-VirtualMachineScaleSetVM

PSVirtualMachineScaleSetVMProfile-objektet som du vill ta bort ett referens-ID för galleriprogram från.

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

Indata

None

Utdata

PSVirtualMachineScaleSetVMProfile