You can use the New-AzureVirtualStandby
command to export a virtual machine (VM) to a Microsoft Azure cloud account as a virtual standby machine.
Usage
The usage for the command is as follows:
New-AzureVirtualStandby -core [host name] -user [user name for Core] -password [password for Core] -protectedserver [name | IP address] -volumes [volume names | all] -initialexport -cloudaccountname [cloud account name] -storageaccountname [storage account name]-containername [container name] -foldername [folder name] -subscriptionid [Azure subscription ID]
Command Options
The following table describes the options available for the New-AzureVirtualStandby
command:
Option | Description |
---|---|
-? |
Display this help message. |
-core |
Optional. Remote Core host machine IP address (with an optional port number). By default, the connection is made to the Core installed on the local machine. |
-user |
Optional. The user name for the remote Core host machine. If you specify a user name, you must also provide a password. If none is provided, then the credentials for the logged-on user are used. |
-password |
Optional. The password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none is provided, then the credentials for the logged-on user are used. |
-protectedserver |
Protected machine with recovery points that you want to export. |
-volumes |
Optional. List of additional volume names to be exported. If you use the value all or use no value, then all volumes export. Values must be enclosed in double quotes and separated by a space. Do not use trailing slashes in volumes names; for example, use "c:" "d:". |
-initialexport |
Optional. Include this option if you need to start an initial ad-hoc virtual machines export to configure the virtual standby. |
-cloudaccountname |
Optional. You can use this option if you do not specify the -storageaccountname . It is the display name for the cloud account previously registered on the Core. |
-storageaccountname |
Optional. You can use this option if you do not specify the -cloudaccountname . It is the name of the storage account in Azure Classic. |
-containername |
The name of the container in the Azure storage account (classic). The name must container between three and 63 characters (lowercase letters, numbers, and hyphens only), and start with a letter or a number. Every hyphen must be preceded and followed by a letter or number. |
-foldername |
Optional. The name of a folder inside of the Azure storage container. A folder name cannot contain any of the following characters: \ / : * ? " < > | . |
-subscriptionid |
The identifier of a previously added Azure subscription. |
Example:
Create a new Azure virtual standby:
>New-AzureVirtualStandby -protectedserver Win2008R2 -storageaccountname exports3 -containername container1 -foldername Win2008R2 -subscriptionid 4db3a063-0d9c-42d8-a994-d5e5c4b82c0