Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureVMImage

Remove-AzureVMImage

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Removes an OS or VM image from the Image Repository.

Syntax

Remove-AzureVMImage [-ImageName] [-DeleteVHD] [<CommonParameters>]

Detailed Description

Removes an OS or VM image from the Image Repository.

Parameters

-ImageName <String>

Specifies the OS or VM image to remove from the image repository.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-DeleteVHD <SwitchParameter>

When specified, the physical VHD image blob is deleted from the storage account.

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

PS C:\> Remove-AzureVMImage -ImageName MyOSImage

-------------------------- EXAMPLE 2 --------------------------

Description

PS C:\> Remove-AzureVMImage -ImageName MyOSImage -DeleteVHD

-------------------------- EXAMPLE 3 --------------------------

Description

PS C:\> $subsId = &amp;lt;MySubscriptionID&amp;gt;
$cert = Get-AzureCertificate cert:\LocalMachine\MY\&amp;lt;CertificateThumbprint&amp;gt;
Get-AzureVMImage `
    | Where-Object {$_.Label -match "Beta" }`
    | Foreach-Object {Remove-AzureVMImage -ImageName $_.name }

Add-AzureVMImage
Get-AzureVMImage
Update-AzureVMImage