Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/recoveryPoints/{recoveryPointId}/restore?api-version=2024-04-01
URI Parameters
Name |
In |
Required |
Type |
Description |
containerName
|
path |
True
|
string
|
Container name associated with the backed up items.
|
fabricName
|
path |
True
|
string
|
Fabric name associated with the backed up items.
|
protectedItemName
|
path |
True
|
string
|
Backed up item to be restored.
|
recoveryPointId
|
path |
True
|
string
|
Recovery point ID which represents the backed up data to be restored.
|
resourceGroupName
|
path |
True
|
string
|
The name of the resource group where the recovery services vault is present.
|
subscriptionId
|
path |
True
|
string
|
The subscription Id.
|
vaultName
|
path |
True
|
string
|
The name of the recovery services vault.
|
api-version
|
query |
True
|
string
|
Client Api Version.
|
Name |
Required |
Type |
Description |
x-ms-authorization-auxiliary
|
|
string
|
|
Request Body
Name |
Type |
Description |
eTag
|
string
|
Optional ETag.
|
location
|
string
|
Resource location.
|
properties
|
RestoreRequest:
|
RestoreRequestResource properties
|
tags
|
object
|
Resource tags.
|
Responses
Name |
Type |
Description |
202 Accepted
|
|
Accepted
|
Other Status Codes
|
CloudError
|
Error response describing why the operation failed.
|
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name |
Description |
user_impersonation
|
impersonate your user account.
|
Examples
Restore Disks with IaasVMRestoreRequest
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "RestoreDisks",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
"region": "southeastasia",
"createNewCloudService": true,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"identityInfo": {
"isSystemAssignedIdentity": false,
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
},
"targetDiskNetworkAccessSettings": {
"targetDiskNetworkAccessOption": "EnablePrivateAccessForAllDisks",
"targetDiskAccessId": "/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy"
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
import com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessOption;
import com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessSettings;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json
*/
/**
* Sample code: Restore Disks with IaasVMRestoreRequest.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreDisksWithIaasVMRestoreRequest(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.RESTORE_DISKS)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount")
.withRegion("southeastasia").withCreateNewCloudService(true).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withIdentityInfo(new IdentityInfo().withIsSystemAssignedIdentity(false).withManagedIdentityResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"))
.withTargetDiskNetworkAccessSettings(new TargetDiskNetworkAccessSettings()
.withTargetDiskNetworkAccessOption(
TargetDiskNetworkAccessOption.ENABLE_PRIVATE_ACCESS_FOR_ALL_DISKS)
.withTargetDiskAccessId(
"/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy"))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_restore_disks_iaas_vm_restore_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": True,
"encryptionDetails": {"encryptionEnabled": False},
"identityInfo": {
"isSystemAssignedIdentity": False,
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi",
},
"objectType": "IaasVMRestoreRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryType": "RestoreDisks",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
"targetDiskNetworkAccessSettings": {
"targetDiskAccessId": "/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy",
"targetDiskNetworkAccessOption": "EnablePrivateAccessForAllDisks",
},
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json
func ExampleRestoresClient_BeginTrigger_restoreDisksWithIaasVmRestoreRequest() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreRequest{
ObjectType: to.Ptr("IaasVMRestoreRequest"),
CreateNewCloudService: to.Ptr(true),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
IdentityInfo: &armrecoveryservicesbackup.IdentityInfo{
IsSystemAssignedIdentity: to.Ptr(false),
ManagedIdentityResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeRestoreDisks),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
StorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"),
TargetDiskNetworkAccessSettings: &armrecoveryservicesbackup.TargetDiskNetworkAccessSettings{
TargetDiskAccessID: to.Ptr("/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy"),
TargetDiskNetworkAccessOption: to.Ptr(armrecoveryservicesbackup.TargetDiskNetworkAccessOptionEnablePrivateAccessForAllDisks),
},
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json
*/
async function restoreDisksWithIaasVMRestoreRequest() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: true,
encryptionDetails: { encryptionEnabled: false },
identityInfo: {
isSystemAssignedIdentity: false,
managedIdentityResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi",
},
objectType: "IaasVMRestoreRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryType: "RestoreDisks",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
storageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
targetDiskNetworkAccessSettings: {
targetDiskAccessId:
"/subscriptions/e7a191f5-713c-4bdb-b5e4-cf3dd90230ef/resourceGroups/arpja/providers/Microsoft.Compute/diskAccesses/arpja-diskaccess-ccy",
targetDiskNetworkAccessOption: "EnablePrivateAccessForAllDisks",
},
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Retry-After: 60
Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "RestoreDisks",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"region": "southeastasia",
"createNewCloudService": true,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"identityInfo": {
"isSystemAssignedIdentity": false,
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
},
"identityBasedRestoreDetails": {
"targetStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityBasedRestoreDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
*/
/**
* Sample code: Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.RESTORE_DISKS)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withRegion("southeastasia").withCreateNewCloudService(true).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withIdentityInfo(new IdentityInfo().withIsSystemAssignedIdentity(false).withManagedIdentityResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"))
.withIdentityBasedRestoreDetails(new IdentityBasedRestoreDetails().withTargetStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_restore_disks_iaas_vm_restore_request_identity_based_restore_details.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": True,
"encryptionDetails": {"encryptionEnabled": False},
"identityBasedRestoreDetails": {
"targetStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
},
"identityInfo": {
"isSystemAssignedIdentity": False,
"managedIdentityResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi",
},
"objectType": "IaasVMRestoreRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryType": "RestoreDisks",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
func ExampleRestoresClient_BeginTrigger_restoreDisksWithIaasVmRestoreRequestWithIdentityBasedRestoreDetails() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreRequest{
ObjectType: to.Ptr("IaasVMRestoreRequest"),
CreateNewCloudService: to.Ptr(true),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
IdentityBasedRestoreDetails: &armrecoveryservicesbackup.IdentityBasedRestoreDetails{
TargetStorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"),
},
IdentityInfo: &armrecoveryservicesbackup.IdentityInfo{
IsSystemAssignedIdentity: to.Ptr(false),
ManagedIdentityResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeRestoreDisks),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
*/
async function restoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: true,
encryptionDetails: { encryptionEnabled: false },
identityBasedRestoreDetails: {
targetStorageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
},
identityInfo: {
isSystemAssignedIdentity: false,
managedIdentityResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi",
},
objectType: "IaasVMRestoreRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryType: "RestoreDisks",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Retry-After: 60
Restore Disks with IaasVMRestoreWithRehydrationRequest
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreWithRehydrationRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "RestoreDisks",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
"region": "southeastasia",
"createNewCloudService": true,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"recoveryPointRehydrationInfo": {
"rehydrationRetentionDuration": "P7D",
"rehydrationPriority": "Standard"
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointRehydrationInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RehydrationPriority;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json
*/
/**
* Sample code: Restore Disks with IaasVMRestoreWithRehydrationRequest.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreDisksWithIaasVMRestoreWithRehydrationRequest(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreWithRehydrationRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.RESTORE_DISKS)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount")
.withRegion("southeastasia").withCreateNewCloudService(true).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withRecoveryPointRehydrationInfo(new RecoveryPointRehydrationInfo()
.withRehydrationRetentionDuration("P7D").withRehydrationPriority(RehydrationPriority.STANDARD))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_restore_disks_iaas_vm_restore_with_rehydration_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": True,
"encryptionDetails": {"encryptionEnabled": False},
"objectType": "IaasVMRestoreWithRehydrationRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryPointRehydrationInfo": {
"rehydrationPriority": "Standard",
"rehydrationRetentionDuration": "P7D",
},
"recoveryType": "RestoreDisks",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json
func ExampleRestoresClient_BeginTrigger_restoreDisksWithIaasVmRestoreWithRehydrationRequest() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreWithRehydrationRequest{
ObjectType: to.Ptr("IaasVMRestoreWithRehydrationRequest"),
CreateNewCloudService: to.Ptr(true),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeRestoreDisks),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
StorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"),
RecoveryPointRehydrationInfo: &armrecoveryservicesbackup.RecoveryPointRehydrationInfo{
RehydrationPriority: to.Ptr(armrecoveryservicesbackup.RehydrationPriorityStandard),
RehydrationRetentionDuration: to.Ptr("P7D"),
},
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json
*/
async function restoreDisksWithIaasVMRestoreWithRehydrationRequest() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: true,
encryptionDetails: { encryptionEnabled: false },
objectType: "IaasVMRestoreWithRehydrationRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryPointRehydrationInfo: {
rehydrationPriority: "Standard",
rehydrationRetentionDuration: "P7D",
},
recoveryType: "RestoreDisks",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
storageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount",
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasVMContainerV2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2020-09-01
Retry-After: 60
Restore to New Azure IaasVm with IaasVMRestoreRequest
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "AlternateLocation",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"region": "southeastasia",
"createNewCloudService": false,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"identityInfo": {
"isSystemAssignedIdentity": true
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json
*/
/**
* Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreToNewAzureIaasVmWithIaasVMRestoreRequest(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.ALTERNATE_LOCATION)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withTargetVirtualMachineId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435")
.withTargetResourceGroupId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2")
.withStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount")
.withVirtualNetworkId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet")
.withSubnetId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default")
.withRegion("southeastasia").withCreateNewCloudService(false).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withIdentityInfo(new IdentityInfo().withIsSystemAssignedIdentity(true))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_alr_iaas_vm_restore_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": False,
"encryptionDetails": {"encryptionEnabled": False},
"identityInfo": {"isSystemAssignedIdentity": True},
"objectType": "IaasVMRestoreRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryType": "AlternateLocation",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json
func ExampleRestoresClient_BeginTrigger_restoreToNewAzureIaasVmWithIaasVmRestoreRequest() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreRequest{
ObjectType: to.Ptr("IaasVMRestoreRequest"),
CreateNewCloudService: to.Ptr(false),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
IdentityInfo: &armrecoveryservicesbackup.IdentityInfo{
IsSystemAssignedIdentity: to.Ptr(true),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeAlternateLocation),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
StorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"),
SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"),
TargetResourceGroupID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"),
TargetVirtualMachineID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"),
VirtualNetworkID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"),
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json
*/
async function restoreToNewAzureIaasVMWithIaasVMRestoreRequest() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: false,
encryptionDetails: { encryptionEnabled: false },
identityInfo: { isSystemAssignedIdentity: true },
objectType: "IaasVMRestoreRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryType: "AlternateLocation",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
storageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
subnetId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
targetResourceGroupId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
targetVirtualMachineId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
virtualNetworkId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Retry-After: 60
Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "AlternateLocation",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"region": "southeastasia",
"createNewCloudService": false,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"identityInfo": {
"isSystemAssignedIdentity": true
},
"identityBasedRestoreDetails": {
"targetStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityBasedRestoreDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
*/
/**
* Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreToNewAzureIaasVmWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.ALTERNATE_LOCATION)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withTargetVirtualMachineId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435")
.withTargetResourceGroupId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2")
.withVirtualNetworkId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet")
.withSubnetId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default")
.withRegion("southeastasia").withCreateNewCloudService(false).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withIdentityInfo(new IdentityInfo().withIsSystemAssignedIdentity(true))
.withIdentityBasedRestoreDetails(new IdentityBasedRestoreDetails().withTargetStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_alr_iaas_vm_restore_request_identity_based_restore_details.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": False,
"encryptionDetails": {"encryptionEnabled": False},
"identityBasedRestoreDetails": {
"targetStorageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"
},
"identityInfo": {"isSystemAssignedIdentity": True},
"objectType": "IaasVMRestoreRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryType": "AlternateLocation",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
func ExampleRestoresClient_BeginTrigger_restoreToNewAzureIaasVmWithIaasVmRestoreRequestWithIdentityBasedRestoreDetails() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreRequest{
ObjectType: to.Ptr("IaasVMRestoreRequest"),
CreateNewCloudService: to.Ptr(false),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
IdentityBasedRestoreDetails: &armrecoveryservicesbackup.IdentityBasedRestoreDetails{
TargetStorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"),
},
IdentityInfo: &armrecoveryservicesbackup.IdentityInfo{
IsSystemAssignedIdentity: to.Ptr(true),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeAlternateLocation),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"),
TargetResourceGroupID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"),
TargetVirtualMachineID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"),
VirtualNetworkID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"),
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
*/
async function restoreToNewAzureIaasVMWithIaasVMRestoreRequestWithIdentityBasedRestoreDetails() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: false,
encryptionDetails: { encryptionEnabled: false },
identityBasedRestoreDetails: {
targetStorageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
},
identityInfo: { isSystemAssignedIdentity: true },
objectType: "IaasVMRestoreRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryType: "AlternateLocation",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
subnetId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
targetResourceGroupId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
targetVirtualMachineId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
virtualNetworkId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Retry-After: 60
Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/recoveryPoints/348916168024334/restore?api-version=2024-04-01
{
"properties": {
"objectType": "IaasVMRestoreWithRehydrationRequest",
"recoveryPointId": "348916168024334",
"recoveryType": "AlternateLocation",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"region": "southeastasia",
"createNewCloudService": false,
"originalStorageAccountOption": false,
"encryptionDetails": {
"encryptionEnabled": false
},
"recoveryPointRehydrationInfo": {
"rehydrationRetentionDuration": "P7D",
"rehydrationPriority": "High"
}
}
}
import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails;
import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointRehydrationInfo;
import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType;
import com.azure.resourcemanager.recoveryservicesbackup.models.RehydrationPriority;
import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource;
/**
* Samples for Restores Trigger.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/
* AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json
*/
/**
* Sample code: Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest.
*
* @param manager Entry point to RecoveryServicesBackupManager.
*/
public static void restoreToNewAzureIaasVmWithIaasVMRestoreWithRehydrationRequest(
com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {
manager.restores().trigger("testVault", "netsdktestrg", "Azure",
"IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
"VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334",
new RestoreRequestResource().withProperties(new IaasVMRestoreWithRehydrationRequest()
.withRecoveryPointId("348916168024334").withRecoveryType(RecoveryType.ALTERNATE_LOCATION)
.withSourceResourceId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1")
.withTargetVirtualMachineId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435")
.withTargetResourceGroupId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2")
.withStorageAccountId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount")
.withVirtualNetworkId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet")
.withSubnetId(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default")
.withRegion("southeastasia").withCreateNewCloudService(false).withOriginalStorageAccountOption(false)
.withEncryptionDetails(new EncryptionDetails().withEncryptionEnabled(false))
.withRecoveryPointRehydrationInfo(new RecoveryPointRehydrationInfo()
.withRehydrationRetentionDuration("P7D").withRehydrationPriority(RehydrationPriority.HIGH))),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-recoveryservicesbackup
# USAGE
python trigger_restore_alr_iaas_vm_restore_with_rehydration_request.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = RecoveryServicesBackupClient(
credential=DefaultAzureCredential(),
subscription_id="00000000-0000-0000-0000-000000000000",
)
client.restores.begin_trigger(
vault_name="testVault",
resource_group_name="netsdktestrg",
fabric_name="Azure",
container_name="IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
protected_item_name="VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1",
recovery_point_id="348916168024334",
parameters={
"properties": {
"createNewCloudService": False,
"encryptionDetails": {"encryptionEnabled": False},
"objectType": "IaasVMRestoreWithRehydrationRequest",
"originalStorageAccountOption": False,
"recoveryPointId": "348916168024334",
"recoveryPointRehydrationInfo": {"rehydrationPriority": "High", "rehydrationRetentionDuration": "P7D"},
"recoveryType": "AlternateLocation",
"region": "southeastasia",
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
"storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
"targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
"targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
"virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
}
},
).result()
# x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armrecoveryservicesbackup_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/33c4457b1d13f83965f4fe3367dca4a6df898100/specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json
func ExampleRestoresClient_BeginTrigger_restoreToNewAzureIaasVmWithIaasVmRestoreWithRehydrationRequest() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armrecoveryservicesbackup.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewRestoresClient().BeginTrigger(ctx, "testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "348916168024334", armrecoveryservicesbackup.RestoreRequestResource{
Properties: &armrecoveryservicesbackup.IaasVMRestoreWithRehydrationRequest{
ObjectType: to.Ptr("IaasVMRestoreWithRehydrationRequest"),
CreateNewCloudService: to.Ptr(false),
EncryptionDetails: &armrecoveryservicesbackup.EncryptionDetails{
EncryptionEnabled: to.Ptr(false),
},
OriginalStorageAccountOption: to.Ptr(false),
RecoveryPointID: to.Ptr("348916168024334"),
RecoveryType: to.Ptr(armrecoveryservicesbackup.RecoveryTypeAlternateLocation),
Region: to.Ptr("southeastasia"),
SourceResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"),
StorageAccountID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount"),
SubnetID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default"),
TargetResourceGroupID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2"),
TargetVirtualMachineID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435"),
VirtualNetworkID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet"),
RecoveryPointRehydrationInfo: &armrecoveryservicesbackup.RecoveryPointRehydrationInfo{
RehydrationPriority: to.Ptr(armrecoveryservicesbackup.RehydrationPriorityHigh),
RehydrationRetentionDuration: to.Ptr("P7D"),
},
},
}, &armrecoveryservicesbackup.RestoresClientBeginTriggerOptions{XMSAuthorizationAuxiliary: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
*
* @summary Restores the specified backed up data. This is an asynchronous operation. To know the status of this API call, use
GetProtectedItemOperationResult API.
* x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2024-04-01/examples/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json
*/
async function restoreToNewAzureIaasVMWithIaasVMRestoreWithRehydrationRequest() {
const subscriptionId =
process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
const vaultName = "testVault";
const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "netsdktestrg";
const fabricName = "Azure";
const containerName = "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const protectedItemName = "VM;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1";
const recoveryPointId = "348916168024334";
const parameters = {
properties: {
createNewCloudService: false,
encryptionDetails: { encryptionEnabled: false },
objectType: "IaasVMRestoreWithRehydrationRequest",
originalStorageAccountOption: false,
recoveryPointId: "348916168024334",
recoveryPointRehydrationInfo: {
rehydrationPriority: "High",
rehydrationRetentionDuration: "P7D",
},
recoveryType: "AlternateLocation",
region: "southeastasia",
sourceResourceId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
storageAccountId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Storage/storageAccounts/testingAccount",
subnetId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet/subnets/default",
targetResourceGroupId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2",
targetVirtualMachineId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg2/providers/Microsoft.Compute/virtualmachines/RSMDALRVM981435",
virtualNetworkId:
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRg/providers/Microsoft.Network/virtualNetworks/testNet",
},
};
const credential = new DefaultAzureCredential();
const client = new RecoveryServicesBackupClient(credential, subscriptionId);
const result = await client.restores.beginTriggerAndWait(
vaultName,
resourceGroupName,
fabricName,
containerName,
protectedItemName,
recoveryPointId,
parameters,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample response
Location: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/protectedItems/vm;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2017-07-01
Retry-After: 60
Definitions
AzureFileShareRestoreRequest
AzureFileShare Restore Request
Name |
Type |
Description |
copyOptions
|
CopyOptions
|
Options to resolve copy conflicts.
|
objectType
|
string:
AzureFileShareRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
restoreFileSpecs
|
RestoreFileSpecs[]
|
List of Source Files/Folders(which need to recover) and TargetFolderPath details
|
restoreRequestType
|
RestoreRequestType
|
Restore Type (FullShareRestore or ItemLevelRestore)
|
sourceResourceId
|
string
|
Source storage account ARM Id
|
targetDetails
|
TargetAFSRestoreInfo
|
Target File Share Details
|
AzureWorkloadPointInTimeRestoreRequest
AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadPointInTimeRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
pointInTime
|
string
|
PointInTime value
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadRestoreRequest
AzureWorkload-specific restore.
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSAPHanaPointInTimeRestoreRequest
AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadSAPHanaPointInTimeRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
pointInTime
|
string
|
PointInTime value
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest
AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point.
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
pointInTime
|
string
|
PointInTime value
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryPointRehydrationInfo
|
RecoveryPointRehydrationInfo
|
RP Rehydration Info
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSAPHanaRestoreRequest
AzureWorkload SAP Hana-specific restore.
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadSAPHanaRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSAPHanaRestoreWithRehydrateRequest
AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point.
Name |
Type |
Description |
objectType
|
string:
AzureWorkloadSAPHanaRestoreWithRehydrateRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryPointRehydrationInfo
|
RecoveryPointRehydrationInfo
|
RP Rehydration Info
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSQLPointInTimeRestoreRequest
AzureWorkload SQL -specific restore. Specifically for PointInTime/Log restore
Name |
Type |
Description |
alternateDirectoryPaths
|
SQLDataDirectoryMapping[]
|
Data directory details
|
isNonRecoverable
|
boolean
|
SQL specific property where user can chose to set no-recovery when restore operation is tried
|
objectType
|
string:
AzureWorkloadSQLPointInTimeRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
pointInTime
|
string
|
PointInTime value
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
shouldUseAlternateTargetLocation
|
boolean
|
Default option set to true. If this is set to false, alternate data directory must be provided
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest
AzureWorkload SQL-specific restore with integrated rehydration of recovery point.
Name |
Type |
Description |
alternateDirectoryPaths
|
SQLDataDirectoryMapping[]
|
Data directory details
|
isNonRecoverable
|
boolean
|
SQL specific property where user can chose to set no-recovery when restore operation is tried
|
objectType
|
string:
AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
pointInTime
|
string
|
PointInTime value
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryPointRehydrationInfo
|
RecoveryPointRehydrationInfo
|
RP Rehydration Info
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
shouldUseAlternateTargetLocation
|
boolean
|
Default option set to true. If this is set to false, alternate data directory must be provided
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSQLRestoreRequest
AzureWorkload SQL -specific restore. Specifically for full/diff restore
Name |
Type |
Description |
alternateDirectoryPaths
|
SQLDataDirectoryMapping[]
|
Data directory details
|
isNonRecoverable
|
boolean
|
SQL specific property where user can chose to set no-recovery when restore operation is tried
|
objectType
|
string:
AzureWorkloadSQLRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
shouldUseAlternateTargetLocation
|
boolean
|
Default option set to true. If this is set to false, alternate data directory must be provided
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
AzureWorkloadSQLRestoreWithRehydrateRequest
AzureWorkload SQL-specific restore with integrated rehydration of recovery point
Name |
Type |
Description |
alternateDirectoryPaths
|
SQLDataDirectoryMapping[]
|
Data directory details
|
isNonRecoverable
|
boolean
|
SQL specific property where user can chose to set no-recovery when restore operation is tried
|
objectType
|
string:
AzureWorkloadSQLRestoreWithRehydrateRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
propertyBag
|
object
|
Workload specific property bag.
|
recoveryMode
|
RecoveryMode
|
Defines whether the current recovery mode is file restore or database restore
|
recoveryPointRehydrationInfo
|
RecoveryPointRehydrationInfo
|
RP Rehydration Info
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
shouldUseAlternateTargetLocation
|
boolean
|
Default option set to true. If this is set to false, alternate data directory must be provided
|
snapshotRestoreParameters
|
SnapshotRestoreParameters
|
Additional details for snapshot recovery
Currently used for snapshot for SAP Hana.
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM on which workload that was running is being recovered.
|
targetInfo
|
TargetRestoreInfo
|
Details of target database
|
targetResourceGroupName
|
string
|
Defines the Resource group of the Target VM
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the target VM
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
userAssignedManagedIdentityDetails
|
UserAssignedManagedIdentityDetails
|
User Assigned managed identity details
Currently used for snapshot.
|
CloudError
An error response from the Container Instance service.
CloudErrorBody
An error response from the Container Instance service.
Name |
Type |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
The error additional info.
|
code
|
string
|
An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
|
details
|
CloudErrorBody[]
|
A list of additional details about the error.
|
message
|
string
|
A message describing the error, intended to be suitable for display in a user interface.
|
target
|
string
|
The target of the particular error. For example, the name of the property in error.
|
CopyOptions
Options to resolve copy conflicts.
Name |
Type |
Description |
CreateCopy
|
string
|
|
FailOnConflict
|
string
|
|
Invalid
|
string
|
|
Overwrite
|
string
|
|
Skip
|
string
|
|
EncryptionDetails
Details needed if the VM was encrypted at the time of backup.
Name |
Type |
Description |
encryptionEnabled
|
boolean
|
Identifies whether this backup copy represents an encrypted VM at the time of backup.
|
kekUrl
|
string
|
Key Url.
|
kekVaultId
|
string
|
ID of Key Vault where KEK is stored.
|
secretKeyUrl
|
string
|
Secret Url.
|
secretKeyVaultId
|
string
|
ID of Key Vault where Secret is stored.
|
ErrorAdditionalInfo
The resource management error additional info.
Name |
Type |
Description |
info
|
object
|
The additional info.
|
type
|
string
|
The additional info type.
|
ExtendedLocation
The extended location of Recovery point where VM was present.
Name |
Type |
Description |
name
|
string
|
Name of the extended location.
|
type
|
string
|
Type of the extended location. Possible values include: 'EdgeZone'
|
IaasVMRestoreRequest
IaaS VM workload-specific restore.
Name |
Type |
Description |
affinityGroup
|
string
|
Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.
|
createNewCloudService
|
boolean
|
Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same
cloud service as it was at the time of backup.
|
diskEncryptionSetId
|
string
|
DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.
|
encryptionDetails
|
EncryptionDetails
|
Details needed if the VM was encrypted at the time of backup.
|
extendedLocation
|
ExtendedLocation
|
Target extended location where the VM should be restored,
should be null if restore is to be done in public cloud
|
identityBasedRestoreDetails
|
IdentityBasedRestoreDetails
|
IaaS VM workload specific restore details for restores using managed identity.
|
identityInfo
|
IdentityInfo
|
Managed Identity information required to access customer storage account.
|
objectType
|
string:
IaasVMRestoreRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
originalStorageAccountOption
|
boolean
|
Original Storage Account Option
|
recoveryPointId
|
string
|
ID of the backup copy to be recovered.
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
region
|
string
|
Region in which the virtual machine is restored.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
restoreDiskLunList
|
integer[]
|
List of Disk LUNs for partial restore
|
restoreWithManagedDisks
|
boolean
|
Flag to denote of an Unmanaged disk VM should be restored with Managed disks.
|
securedVMDetails
|
SecuredVMDetails
|
Stores Secured VM Details
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM which is being recovered.
|
storageAccountId
|
string
|
Fully qualified ARM ID of the storage account to which the VM has to be restored.
|
subnetId
|
string
|
Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be
{VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent
the subnet.
|
targetDiskNetworkAccessSettings
|
TargetDiskNetworkAccessSettings
|
Specifies target network access settings for disks of VM to be restored,
|
targetDomainNameId
|
string
|
Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic
Virtual Machines.
|
targetResourceGroupId
|
string
|
This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts.
For e.g. /subscriptions/{subId}/resourcegroups/{rg}
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the VM that will be created.
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
virtualNetworkId
|
string
|
This is the virtual network Id of the vnet that will be attached to the virtual machine.
User will be validated for join action permissions in the linked access.
|
zones
|
string[]
|
Target zone where the VM and its disks should be restored.
|
IaasVMRestoreWithRehydrationRequest
IaaS VM workload-specific restore with integrated rehydration of recovery point.
Name |
Type |
Description |
affinityGroup
|
string
|
Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.
|
createNewCloudService
|
boolean
|
Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same
cloud service as it was at the time of backup.
|
diskEncryptionSetId
|
string
|
DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.
|
encryptionDetails
|
EncryptionDetails
|
Details needed if the VM was encrypted at the time of backup.
|
extendedLocation
|
ExtendedLocation
|
Target extended location where the VM should be restored,
should be null if restore is to be done in public cloud
|
identityBasedRestoreDetails
|
IdentityBasedRestoreDetails
|
IaaS VM workload specific restore details for restores using managed identity.
|
identityInfo
|
IdentityInfo
|
Managed Identity information required to access customer storage account.
|
objectType
|
string:
IaasVMRestoreWithRehydrationRequest
|
This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types.
|
originalStorageAccountOption
|
boolean
|
Original Storage Account Option
|
recoveryPointId
|
string
|
ID of the backup copy to be recovered.
|
recoveryPointRehydrationInfo
|
RecoveryPointRehydrationInfo
|
RP Rehydration Info
|
recoveryType
|
RecoveryType
|
Type of this recovery.
|
region
|
string
|
Region in which the virtual machine is restored.
|
resourceGuardOperationRequests
|
string[]
|
ResourceGuardOperationRequests on which LAC check will be performed
|
restoreDiskLunList
|
integer[]
|
List of Disk LUNs for partial restore
|
restoreWithManagedDisks
|
boolean
|
Flag to denote of an Unmanaged disk VM should be restored with Managed disks.
|
securedVMDetails
|
SecuredVMDetails
|
Stores Secured VM Details
|
sourceResourceId
|
string
|
Fully qualified ARM ID of the VM which is being recovered.
|
storageAccountId
|
string
|
Fully qualified ARM ID of the storage account to which the VM has to be restored.
|
subnetId
|
string
|
Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be
{VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent
the subnet.
|
targetDiskNetworkAccessSettings
|
TargetDiskNetworkAccessSettings
|
Specifies target network access settings for disks of VM to be restored,
|
targetDomainNameId
|
string
|
Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic
Virtual Machines.
|
targetResourceGroupId
|
string
|
This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts.
For e.g. /subscriptions/{subId}/resourcegroups/{rg}
|
targetVirtualMachineId
|
string
|
This is the complete ARM Id of the VM that will be created.
For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
|
virtualNetworkId
|
string
|
This is the virtual network Id of the vnet that will be attached to the virtual machine.
User will be validated for join action permissions in the linked access.
|
zones
|
string[]
|
Target zone where the VM and its disks should be restored.
|
IdentityBasedRestoreDetails
IaaS VM workload specific restore details for restores using managed identity
Name |
Type |
Description |
objectType
|
string
|
Gets the class type.
|
targetStorageAccountId
|
string
|
Fully qualified ARM ID of the target storage account.
|
IdentityInfo
Encapsulates Managed Identity related information
Name |
Type |
Description |
isSystemAssignedIdentity
|
boolean
|
To differentiate if the managed identity is system assigned or user assigned
|
managedIdentityResourceId
|
string
|
Managed Identity Resource Id
Optional: Might not be required in the case of system assigned managed identity
|
OverwriteOptions
Can Overwrite if Target DataBase already exists
Name |
Type |
Description |
FailOnConflict
|
string
|
|
Invalid
|
string
|
|
Overwrite
|
string
|
|
RecoveryMode
Defines whether the current recovery mode is file restore or database restore
Name |
Type |
Description |
FileRecovery
|
string
|
|
Invalid
|
string
|
|
RecoveryUsingSnapshot
|
string
|
|
SnapshotAttach
|
string
|
|
SnapshotAttachAndRecover
|
string
|
|
WorkloadRecovery
|
string
|
|
RecoveryPointRehydrationInfo
RP Rehydration Info
Name |
Type |
Description |
rehydrationPriority
|
RehydrationPriority
|
Rehydration Priority
|
rehydrationRetentionDuration
|
string
|
How long the rehydrated RP should be kept
Should be ISO8601 Duration format e.g. "P7D"
|
RecoveryType
Type of this recovery.
Name |
Type |
Description |
AlternateLocation
|
string
|
|
Invalid
|
string
|
|
Offline
|
string
|
|
OriginalLocation
|
string
|
|
RestoreDisks
|
string
|
|
RehydrationPriority
Rehydration Priority
Name |
Type |
Description |
High
|
string
|
|
Standard
|
string
|
|
RestoreFileSpecs
Restore file specs like file path, type and target folder path info.
Name |
Type |
Description |
fileSpecType
|
string
|
Indicates what the Path variable stands for
|
path
|
string
|
Source File/Folder path
|
targetFolderPath
|
string
|
Destination folder path in target FileShare
|
RestoreRequestResource
Base class for restore request. Workload-specific restore requests are derived from this class.
Name |
Type |
Description |
eTag
|
string
|
Optional ETag.
|
id
|
string
|
Resource Id represents the complete path to the resource.
|
location
|
string
|
Resource location.
|
name
|
string
|
Resource name associated with the resource.
|
properties
|
RestoreRequest:
|
RestoreRequestResource properties
|
tags
|
object
|
Resource tags.
|
type
|
string
|
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
|
RestoreRequestType
Restore Type (FullShareRestore or ItemLevelRestore)
Name |
Type |
Description |
FullShareRestore
|
string
|
|
Invalid
|
string
|
|
ItemLevelRestore
|
string
|
|
SecuredVMDetails
Restore request parameters for Secured VMs
Name |
Type |
Description |
securedVMOsDiskEncryptionSetId
|
string
|
Gets or Sets Disk Encryption Set Id for Secured VM OS Disk
|
SnapshotRestoreParameters
Encapsulates information regarding snapshot recovery for SAP Hana
Name |
Type |
Description |
logPointInTimeForDBRecovery
|
string
|
|
skipAttachAndMount
|
boolean
|
|
SQLDataDirectoryMapping
Encapsulates information regarding data directory
Name |
Type |
Description |
mappingType
|
SQLDataDirectoryType
|
Type of data directory mapping
|
sourceLogicalName
|
string
|
Restore source logical name path
|
sourcePath
|
string
|
Restore source path
|
targetPath
|
string
|
Target path
|
SQLDataDirectoryType
Type of data directory mapping
Name |
Type |
Description |
Data
|
string
|
|
Invalid
|
string
|
|
Log
|
string
|
|
TargetAFSRestoreInfo
Target Azure File Share Info.
Name |
Type |
Description |
name
|
string
|
File share name
|
targetResourceId
|
string
|
Target file share resource ARM ID
|
TargetDiskNetworkAccessOption
Network access settings to be used for restored disks
Name |
Type |
Description |
EnablePrivateAccessForAllDisks
|
string
|
|
EnablePublicAccessForAllDisks
|
string
|
|
SameAsOnSourceDisks
|
string
|
|
TargetDiskNetworkAccessSettings
Specifies target network access settings for disks of VM to be restored.
Name |
Type |
Description |
targetDiskAccessId
|
string
|
Gets or sets the ARM resource ID of the target disk access to be used when TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew
|
targetDiskNetworkAccessOption
|
TargetDiskNetworkAccessOption
|
Network access settings to be used for restored disks
|
TargetRestoreInfo
Details about target workload during restore operation.
Name |
Type |
Description |
containerId
|
string
|
Resource Id name of the container in which Target DataBase resides
|
databaseName
|
string
|
Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana
|
overwriteOption
|
OverwriteOptions
|
Can Overwrite if Target DataBase already exists
|
targetDirectoryForFileRestore
|
string
|
Target directory location for restore as files.
|
UserAssignedIdentityProperties
User assigned managed identity properties
Name |
Type |
Description |
clientId
|
string
|
The client ID of the assigned identity.
|
principalId
|
string
|
The principal ID of the assigned identity.
|
UserAssignedManagedIdentityDetails
User assigned managed identity details
Name |
Type |
Description |
identityArmId
|
string
|
The ARM id of the assigned identity.
|
identityName
|
string
|
The name of the assigned identity.
|
userAssignedIdentityProperties
|
UserAssignedIdentityProperties
|
User assigned managed identity properties
|