/// <summary> /// ProcessRecord of the command. /// </summary> public override void ExecuteCmdlet() { try { StorageMappingListResponse storageMappingListResponse = RecoveryServicesClient .GetAzureSiteRecoveryStorageMappings(this.PrimaryServer.ID, this.RecoveryServer.ID); this.WriteStorageMappings(storageMappingListResponse.StorageMappings); } 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)); StorageMappingListResponse storageMappingListResponse = RecoveryServicesClient .GetAzureSiteRecoveryStorageMappings(this.PrimaryServer.ID, this.RecoveryServer.ID); this.WriteStorageMappings(storageMappingListResponse.StorageMappings); } catch (Exception exception) { this.HandleException(exception); } }