< Back

Update-AzureRmRecoveryServicesAsrMobilityService

Tue Jan 29, 2019 10:02 pm

NAME Update-AzureRmRecoveryServicesAsrMobilityService



SYNOPSIS

Push mobility service agent updates to protected machines.





SYNTAX

Update-AzureRmRecoveryServicesAsrMobilityService [-Account <ASRRunAsAccount>] [-Confirm] [-DefaultProfile <IAzureContextContainer>]

-ReplicationProtectedItem <ASRReplicationProtectedItem> [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Update-AzureRmRecoveryServicesAsrMobilityService cmdlet attempts to push mobility service agent updates to protected machines(if an update is

available.)





PARAMETERS

-Account <ASRRunAsAccount>

The run as account ID to be used to push the update. Must be one from the list of run as accounts in the ASR fabric corresponding to machine

being updated.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationProtectedItem <ASRReplicationProtectedItem>

Azure Site Recovery replication protected item to be updated.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> Update-AzureRmRecoveryServicesAsrMobilityService -ReplicationProtectedItem $rpi -Account $fabric.fabricSpecificDetails.RunAsAccounts[0]



Job to track Update Replication Protected Item's Moblility Service Agent.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ityservice