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
 

Set-AzureSiteRecoveryVM

Set-AzureSiteRecoveryVM

microsoft.azure.commands.recoveryservices.dll

Synopsis

Allows the update on a protected Virtual Machine for onprem-Azure scenarios

Syntax

Set-AzureSiteRecoveryVM [-VirtualMachine] [-Name] [-PrimaryNic] [-RecoveryNetworkId] [-Size] [<CommonParameters>]

Detailed Description

Allows the update on a protected Virtual Machine for onprem-Azure scenarios. Please provide required parameters to update.

Parameters

-Name <string>

Name of the target Virtual Machine

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PrimaryNic <string>

Primary NIC

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-RecoveryNetworkId <string>

Recovery Network ID

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Size <string>

Target size, should be limited to set of values of Azure VM sizes

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-VirtualMachine <ASRVirtualMachine>

Virtual Machine object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

C:\PS>

Description

-----------

          Set-AzureSiteRecoveryVM -VirtualMachine $VMs[0] -Name newVM5

          Name             :
          ID               : 8170d274-1e48-404a-b080-172ada140bc3
          ClientRequestId  : 09354052-8430-4fa8-9a35-63196dd4b2b4-2015-02-03 04:19:06Z-P
          State            : NotStarted
          StateDescription : NotStarted
          StartTime        :
          EndTime          :
          AllowedActions   :
          Tasks            : {}
          Errors           : {}



          PS C:\Users\administrator> Get-AzureSiteRecoveryJob -Id 8170d274-1e48-404a-b080-172ada140bc3


          Name             : UpdateVmProperties
          ID               : 8170d274-1e48-404a-b080-172ada140bc3
          ClientRequestId  : 09354052-8430-4fa8-9a35-63196dd4b2b4-2015-02-03 04:19:06Z-P
          State            : Succeeded
          StateDescription : Completed
          StartTime        : 2/3/2015 4:19:08 AM
          EndTime          : 2/3/2015 4:19:08 AM
          AllowedActions   :
          Tasks            : {Update the virtual machine properties}
          Errors           : {}