Remove-AzVmGalleryApplication
Remove a VMGalleryApplication object from the PSVirtualMachine object.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Remove-AzVmGalleryApplication
-VM <PSVirtualMachine>
-GalleryApplicationsReferenceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Removes a VMGalleryApplication object from the PSVirtualMachine object.
Examples
Example 1
$vm = Get-AzVm -ResourceGroupName $rgname -Name $vmName
Remove-AzVmGalleryApplication -VM $vm -GalleryApplicationsReferenceId $refId
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-GalleryApplicationsReferenceId
Package Reference Id of the Gallery Application to delete.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
-VM
The PSVirtualMachine object to delete a Gallery Application Reference ID from.
| Type: | PSVirtualMachine |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None