Remove-AzVmssGalleryApplication

PSVirtualMachineScaleSetVMProfile オブジェクトから VMGalleryApplication オブジェクトを削除します。

構文

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

説明

PSVirtualMachineScaleSetVMProfile オブジェクトから VMGalleryApplication オブジェクトを削除します。

例 1

$vmss = Get-AzVmss -ResourceGroupName $rgname -Name $vmssName
Remove-AzVmssGalleryApplication -VirtualMachineScaleSetVM $vmss.VirtualMachineProfile -GalleryApplicationsReferenceId $refId

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-GalleryApplicationsReferenceId

削除するギャラリー アプリケーションのパッケージ参照 ID。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VirtualMachineScaleSetVM

ギャラリー アプリケーション参照 ID を削除する PSVirtualMachineScaleSetVMProfile オブジェクト。

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

入力

None

出力

PSVirtualMachineScaleSetVMProfile