Remove-AzVmssGalleryApplication

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

Syntax

Remove-AzVmssGalleryApplication
      -VirtualMachineScaleSetVM <PSVirtualMachineScaleSetVMProfile>
      -GalleryApplicationsReferenceId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<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

Ta bort galleriprogram med referens-ID

Parametrar

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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
Required:False
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
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VirtualMachineScaleSetVM

OBJEKTET PSVirtualMachineScaleSetVMProfile för att ta bort ett referens-ID för galleriprogram från.

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

-WhatIf

Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Indata

None

Utdata

PSVirtualMachineScaleSetVMProfile