Backup Vaults - Create Or Update

Creates or updates a BackupVault resource belonging to a resource group.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}?api-version=2023-01-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

vaultName
path True

string

The name of the backup vault.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Required Type Description
location True

string

Resource location.

properties True

BackupVault

BackupVault
BackupVaultResource properties

eTag

string

Optional ETag.

identity

DppIdentityDetails

DppIdentityDetails
Input Managed Identity Details

tags

object

Resource tags.

Responses

Name Type Description
200 OK

BackupVaultResource

OK

201 Created

BackupVaultResource

Created

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

Create BackupVault
Create BackupVault With MSI

Create BackupVault

Sample Request

PUT https://management.azure.com/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample?api-version=2023-01-01

{
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "identity": {
    "type": "None"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}

Sample Response

Retry-After: 10
Azure-AsyncOperation: https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2023-01-01
{
  "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample",
  "name": "swaggerExample",
  "type": "Microsoft.DataProtection/Backupvaults",
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "provisioningState": "Provisioning",
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}
{
  "identity": {
    "type": "None"
  },
  "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample",
  "name": "swaggerExample",
  "type": "Microsoft.DataProtection/Backupvaults",
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "provisioningState": "Succeeded",
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}

Create BackupVault With MSI

Sample Request

PUT https://management.azure.com/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample?api-version=2023-01-01

{
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "identity": {
    "type": "systemAssigned"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}

Sample Response

Retry-After: 10
Azure-AsyncOperation: https://management.windowsazure.com/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==?api-version=2023-01-01
{
  "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample",
  "name": "swaggerExample",
  "type": "Microsoft.DataProtection/Backupvaults",
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "provisioningState": "Provisioning",
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}
{
  "identity": {
    "principalId": "c009b9a0-0024-417c-83cd-025d3776045d",
    "tenantId": "83abe5cd-bcc3-441a-bd86-e6a75360cecc",
    "type": "SystemAssigned"
  },
  "id": "/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample",
  "name": "swaggerExample",
  "type": "Microsoft.DataProtection/Backupvaults",
  "location": "WestUS",
  "tags": {
    "key1": "val1"
  },
  "properties": {
    "monitoringSettings": {
      "azureMonitorAlertSettings": {
        "alertsForAllJobFailures": "Enabled"
      }
    },
    "provisioningState": "Succeeded",
    "storageSettings": [
      {
        "datastoreType": "VaultStore",
        "type": "LocallyRedundant"
      }
    ]
  }
}

Definitions

Name Description
AlertsState
AzureMonitorAlertSettings

Settings for Azure Monitor based alerts

BackupVault

BackupVault

BackupVaultResource

BackupVault Resource

CloudError

CloudError

createdByType

The type of identity that created the resource.

CrossSubscriptionRestoreSettings

CrossSubscriptionRestore Settings

CrossSubscriptionRestoreState

CrossSubscriptionRestore state

DppIdentityDetails

DppIdentityDetails

Error

The resource management error response.

ErrorAdditionalInfo

The resource management error additional info.

FeatureSettings

Class containing feature settings of vault

ImmutabilitySettings

Immutability Settings at vault level

ImmutabilityState

Immutability state

MonitoringSettings

Monitoring Settings

ProvisioningState

Provisioning state of the BackupVault resource

ResourceMoveDetails

ResourceMoveDetails will be returned in response to GetResource call from ARM

ResourceMoveState

Resource move state for backup vault

SecuritySettings

Class containing security settings of vault

SoftDeleteSettings

Soft delete related settings

SoftDeleteState

State of soft delete

StorageSetting

StorageSetting

StorageSettingStoreTypes

Gets or sets the type of the datastore.

StorageSettingTypes

Gets or sets the type.

systemData

Metadata pertaining to creation and last modification of the resource.

AlertsState

Name Type Description
Disabled

string

Enabled

string

AzureMonitorAlertSettings

Settings for Azure Monitor based alerts

Name Type Description
alertsForAllJobFailures

AlertsState

BackupVault

BackupVault

Name Type Description
featureSettings

FeatureSettings

Feature Settings

isVaultProtectedByResourceGuard

boolean

Is vault protected by resource guard

monitoringSettings

MonitoringSettings

Monitoring Settings

provisioningState

ProvisioningState

Provisioning state of the BackupVault resource

resourceMoveDetails

ResourceMoveDetails

Resource move details for backup vault

resourceMoveState

ResourceMoveState

Resource move state for backup vault

securitySettings

SecuritySettings

Security Settings

storageSettings

StorageSetting[]

Storage Settings

BackupVaultResource

BackupVault Resource

Name Type Description
eTag

string

Optional ETag.

id

string

Resource Id represents the complete path to the resource.

identity

DppIdentityDetails

DppIdentityDetails
Input Managed Identity Details

location

string

Resource location.

name

string

Resource name associated with the resource.

properties

BackupVault

BackupVault
BackupVaultResource properties

systemData

systemData

Metadata pertaining to creation and last modification of the resource.

tags

object

Resource tags.

type

string

Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

CloudError

CloudError

Name Type Description
error

Error

The resource management error response.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

CrossSubscriptionRestoreSettings

CrossSubscriptionRestore Settings

Name Type Description
state

CrossSubscriptionRestoreState

CrossSubscriptionRestore state

CrossSubscriptionRestoreState

CrossSubscriptionRestore state

Name Type Description
Disabled

string

Enabled

string

PermanentlyDisabled

string

DppIdentityDetails

DppIdentityDetails

Name Type Description
principalId

string

The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource.

tenantId

string

A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member.

type

string

The identityType which can be either SystemAssigned or None

Error

The resource management error response.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

Error[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

FeatureSettings

Class containing feature settings of vault

Name Type Description
crossSubscriptionRestoreSettings

CrossSubscriptionRestoreSettings

CrossSubscriptionRestore Settings

ImmutabilitySettings

Immutability Settings at vault level

Name Type Description
state

ImmutabilityState

Immutability state

ImmutabilityState

Immutability state

Name Type Description
Disabled

string

Locked

string

Unlocked

string

MonitoringSettings

Monitoring Settings

Name Type Description
azureMonitorAlertSettings

AzureMonitorAlertSettings

Settings for Azure Monitor based alerts

ProvisioningState

Provisioning state of the BackupVault resource

Name Type Description
Failed

string

Provisioning

string

Succeeded

string

Unknown

string

Updating

string

ResourceMoveDetails

ResourceMoveDetails will be returned in response to GetResource call from ARM

Name Type Description
completionTimeUtc

string

Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format.

operationId

string

CorrelationId of latest ResourceMove operation attempted

sourceResourcePath

string

ARM resource path of source resource

startTimeUtc

string

Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format.

targetResourcePath

string

ARM resource path of target resource used in latest ResourceMove operation

ResourceMoveState

Resource move state for backup vault

Name Type Description
CommitFailed

string

CommitTimedout

string

CriticalFailure

string

Failed

string

InProgress

string

MoveSucceeded

string

PartialSuccess

string

PrepareFailed

string

PrepareTimedout

string

Unknown

string

SecuritySettings

Class containing security settings of vault

Name Type Description
immutabilitySettings

ImmutabilitySettings

Immutability Settings at vault level

softDeleteSettings

SoftDeleteSettings

Soft delete related settings

SoftDeleteSettings

Soft delete related settings

Name Type Description
retentionDurationInDays

number

Soft delete retention duration

state

SoftDeleteState

State of soft delete

SoftDeleteState

State of soft delete

Name Type Description
AlwaysOn

string

Soft Delete is permanently enabled for the BackupVault and the setting cannot be changed

Off

string

Soft Delete is turned off for the BackupVault

On

string

Soft Delete is enabled for the BackupVault but can be turned off

StorageSetting

StorageSetting

Name Type Description
datastoreType

StorageSettingStoreTypes

Gets or sets the type of the datastore.

type

StorageSettingTypes

Gets or sets the type.

StorageSettingStoreTypes

Gets or sets the type of the datastore.

Name Type Description
ArchiveStore

string

OperationalStore

string

VaultStore

string

StorageSettingTypes

Gets or sets the type.

Name Type Description
GeoRedundant

string

LocallyRedundant

string

ZoneRedundant

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.