public static string GetCheckVmmConnectivityScript(string vmmServerName) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", vmmServerName) }; return(GetScript(CheckVmmConnectivityScript, parameters)); }
public static string GetCheckDpmAzureSubscriptionScript(string dpmServerName) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName) }; return(GetScript(CheckDpmAzureSubscriptionScript, parameters)); }
public static string GetCheckDpmVersionAndConnectivityScript(string dpmServerName) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName) }; return(GetScript(CheckDpmVersionAndConnectivityScript, parameters)); }
public static string GetLatestDataSourceDataScript(string dpmServerName, string protectionGroup) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName), new PowerShellScriptParameter("@protectionGroup", protectionGroup) }; return(GetScript(LatestDataSourceDataScript, parameters)); }
public static string GetListDataSourceRecoveryPointsScript(string dpmServerName, string protectionGroup, string virtualMachineId) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName), new PowerShellScriptParameter("@protectionGroup", protectionGroup), new PowerShellScriptParameter("@vmId", virtualMachineId) }; return(GetScript(ListDataSourceRecoveryPointsScript, parameters)); }
public static string GetBackupVirtualMachineScript(string dpmServerName, string protectionGroup, string virtualMachineId) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName), new PowerShellScriptParameter("@protectionGroup", protectionGroup), new PowerShellScriptParameter("@vmId", virtualMachineId) }; return(GetScript(BackupVirtualMachineScript, parameters)); }
public static string GetRestoreVirtualMachineScript(string dpmServerName, string protectionGroup, string virtualMachineId, string recoverySourceId) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName), new PowerShellScriptParameter("@protectionGroup", protectionGroup), new PowerShellScriptParameter("@vmId", virtualMachineId), new PowerShellScriptParameter("@recoverySourceId", recoverySourceId) }; return(GetScript(RestoreVirtualMachineScript, parameters)); }
public static string GetAddVirtualMachineToProtectionGroupScript(string dpmServerName, string protectionGroup, string virtualMachineId) { PowerShellScriptParameter[] parameters = new PowerShellScriptParameter[] { new PowerShellScriptParameter("@server", dpmServerName), new PowerShellScriptParameter("@protectionGroup", protectionGroup), new PowerShellScriptParameter("@vmId", virtualMachineId) }; return(GetScript(AddVirtualMachineToProtectionGroupScript, parameters)); //return String.Format(AddVirtualMachineToProtectionGroupScript, dpmServerName, protectionGroup, virtualMachineId); }