< Back
Set-AzureSiteRecoveryVM
Post
NAME Set-AzureSiteRecoveryVM
SYNOPSIS
Allows the update on a protected Virtual Machine for onprem-Azure scenarios
SYNTAX
Set-AzureSiteRecoveryVM -VirtualMachine <ASRVirtualMachine> [-Name <string>] [-PrimaryNic <string>] [-RecoveryNetworkId <string>] [-Size <string>]
[<CommonParameters>]
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
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrimaryNic <string>
Primary NIC
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RecoveryNetworkId <string>
Recovery Network ID
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Size <string>
Target size, should be limited to set of values of Azure VM sizes
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VirtualMachine <ASRVirtualMachine>
Virtual Machine object
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, site, recovery
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>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 : {}
Description
-----------
RELATED LINKS
SYNOPSIS
Allows the update on a protected Virtual Machine for onprem-Azure scenarios
SYNTAX
Set-AzureSiteRecoveryVM -VirtualMachine <ASRVirtualMachine> [-Name <string>] [-PrimaryNic <string>] [-RecoveryNetworkId <string>] [-Size <string>]
[<CommonParameters>]
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
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PrimaryNic <string>
Primary NIC
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-RecoveryNetworkId <string>
Recovery Network ID
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Size <string>
Target size, should be limited to set of values of Azure VM sizes
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-VirtualMachine <ASRVirtualMachine>
Virtual Machine object
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, site, recovery
-------------------------- EXAMPLE 1 --------------------------
C:\\PS>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 : {}
Description
-----------
RELATED LINKS