/// <summary> /// ProcessRecord of the command. /// </summary> public override void ExecuteCmdlet() { try { // Currently we support only FabricProviders.HyperVSite. JobResponse response = RecoveryServicesClient.CreateAzureSiteRecoverySite( this.Name, FabricProviders.HyperVSite, this.Vault); this.WriteObject(response.Job, true); } catch (Exception exception) { this.HandleException(exception); } }
/// <summary> /// ProcessRecord of the command. /// </summary> public override void ExecuteCmdlet() { try { this.WriteWarningWithTimestamp( string.Format( Properties.Resources.CmdletWillBeDeprecatedSoon, this.MyInvocation.MyCommand.Name)); // Currently we support only FabricProviders.HyperVSite. JobResponse response = RecoveryServicesClient.CreateAzureSiteRecoverySite( this.Name, FabricProviders.HyperVSite, this.Vault); this.WriteObject(response.Job, true); } catch (Exception exception) { this.HandleException(exception); } }