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
 

Export-AzureVM

Export-AzureVM

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Exports a Microsoft Azure virtual machine state to a file.

Syntax

Export-AzureVM [-ServiceName] [-Name] [-Path] [<CommonParameters>]

Detailed Description

The Export-AzureVM cmdlet exports the state of a virtual machine to an xml file. Note: Using Export-AzureVM, followed by Remove-AzureVM and then Import-AzureVM to recreate a virtual machine can cause the resultant virtual machine to have a different IP address than the original.

Parameters

-ServiceName <String>

Specifies the name of the Microsoft Azure service that hosts the virtual machine.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Name <String>

Specifies the name of the virtual machine whose state you are exporting.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Path <String>

Specifies the path and file name to which the virtual machine state will be saved.

Aliases

None

Required?

true

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command exports the state of the $MyRole virtual machine to the “VMstate.xml” file.

PS C:\> C:\PS>Export-AzureVM -ServiceName $MyService -Name $MyRole -Path "C:\vms\VMstate.xml"

Import-AzureVM
New-AzureVM