azure-native.dataprotection.BackupVault

Backup Vault Resource API Version: 2021-01-01.

Example Usage

Create BackupVault

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var backupVault = new AzureNative.DataProtection.BackupVault("backupVault", new()
    {
        Identity = new AzureNative.DataProtection.Inputs.DppIdentityDetailsArgs
        {
            Type = "None",
        },
        Location = "WestUS",
        Properties = new AzureNative.DataProtection.Inputs.BackupVaultArgs
        {
            StorageSettings = new[]
            {
                new AzureNative.DataProtection.Inputs.StorageSettingArgs
                {
                    DatastoreType = "VaultStore",
                    Type = "LocallyRedundant",
                },
            },
        },
        ResourceGroupName = "SampleResourceGroup",
        Tags = 
        {
            { "key1", "val1" },
        },
        VaultName = "swaggerExample",
    });

});
package main

import (
	dataprotection "github.com/pulumi/pulumi-azure-native/sdk/go/azure/dataprotection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataprotection.NewBackupVault(ctx, "backupVault", &dataprotection.BackupVaultArgs{
			Identity: &dataprotection.DppIdentityDetailsArgs{
				Type: pulumi.String("None"),
			},
			Location: pulumi.String("WestUS"),
			Properties: dataprotection.BackupVaultResponse{
				StorageSettings: dataprotection.StorageSettingArray{
					&dataprotection.StorageSettingArgs{
						DatastoreType: pulumi.String("VaultStore"),
						Type:          pulumi.String("LocallyRedundant"),
					},
				},
			},
			ResourceGroupName: pulumi.String("SampleResourceGroup"),
			Tags: pulumi.StringMap{
				"key1": pulumi.String("val1"),
			},
			VaultName: pulumi.String("swaggerExample"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupVault;
import com.pulumi.azurenative.dataprotection.BackupVaultArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var backupVault = new BackupVault("backupVault", BackupVaultArgs.builder()        
            .identity(Map.of("type", "None"))
            .location("WestUS")
            .properties(Map.of("storageSettings", Map.ofEntries(
                Map.entry("datastoreType", "VaultStore"),
                Map.entry("type", "LocallyRedundant")
            )))
            .resourceGroupName("SampleResourceGroup")
            .tags(Map.of("key1", "val1"))
            .vaultName("swaggerExample")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

backup_vault = azure_native.dataprotection.BackupVault("backupVault",
    identity=azure_native.dataprotection.DppIdentityDetailsArgs(
        type="None",
    ),
    location="WestUS",
    properties=azure_native.dataprotection.BackupVaultResponseArgs(
        storage_settings=[azure_native.dataprotection.StorageSettingArgs(
            datastore_type="VaultStore",
            type="LocallyRedundant",
        )],
    ),
    resource_group_name="SampleResourceGroup",
    tags={
        "key1": "val1",
    },
    vault_name="swaggerExample")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const backupVault = new azure_native.dataprotection.BackupVault("backupVault", {
    identity: {
        type: "None",
    },
    location: "WestUS",
    properties: {
        storageSettings: [{
            datastoreType: "VaultStore",
            type: "LocallyRedundant",
        }],
    },
    resourceGroupName: "SampleResourceGroup",
    tags: {
        key1: "val1",
    },
    vaultName: "swaggerExample",
});
resources:
  backupVault:
    type: azure-native:dataprotection:BackupVault
    properties:
      identity:
        type: None
      location: WestUS
      properties:
        storageSettings:
          - datastoreType: VaultStore
            type: LocallyRedundant
      resourceGroupName: SampleResourceGroup
      tags:
        key1: val1
      vaultName: swaggerExample

Create BackupVault With MSI

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var backupVault = new AzureNative.DataProtection.BackupVault("backupVault", new()
    {
        Identity = new AzureNative.DataProtection.Inputs.DppIdentityDetailsArgs
        {
            Type = "systemAssigned",
        },
        Location = "WestUS",
        Properties = new AzureNative.DataProtection.Inputs.BackupVaultArgs
        {
            StorageSettings = new[]
            {
                new AzureNative.DataProtection.Inputs.StorageSettingArgs
                {
                    DatastoreType = "VaultStore",
                    Type = "LocallyRedundant",
                },
            },
        },
        ResourceGroupName = "SampleResourceGroup",
        Tags = 
        {
            { "key1", "val1" },
        },
        VaultName = "swaggerExample",
    });

});
package main

import (
	dataprotection "github.com/pulumi/pulumi-azure-native/sdk/go/azure/dataprotection"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dataprotection.NewBackupVault(ctx, "backupVault", &dataprotection.BackupVaultArgs{
			Identity: &dataprotection.DppIdentityDetailsArgs{
				Type: pulumi.String("systemAssigned"),
			},
			Location: pulumi.String("WestUS"),
			Properties: dataprotection.BackupVaultResponse{
				StorageSettings: dataprotection.StorageSettingArray{
					&dataprotection.StorageSettingArgs{
						DatastoreType: pulumi.String("VaultStore"),
						Type:          pulumi.String("LocallyRedundant"),
					},
				},
			},
			ResourceGroupName: pulumi.String("SampleResourceGroup"),
			Tags: pulumi.StringMap{
				"key1": pulumi.String("val1"),
			},
			VaultName: pulumi.String("swaggerExample"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dataprotection.BackupVault;
import com.pulumi.azurenative.dataprotection.BackupVaultArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var backupVault = new BackupVault("backupVault", BackupVaultArgs.builder()        
            .identity(Map.of("type", "systemAssigned"))
            .location("WestUS")
            .properties(Map.of("storageSettings", Map.ofEntries(
                Map.entry("datastoreType", "VaultStore"),
                Map.entry("type", "LocallyRedundant")
            )))
            .resourceGroupName("SampleResourceGroup")
            .tags(Map.of("key1", "val1"))
            .vaultName("swaggerExample")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

backup_vault = azure_native.dataprotection.BackupVault("backupVault",
    identity=azure_native.dataprotection.DppIdentityDetailsArgs(
        type="systemAssigned",
    ),
    location="WestUS",
    properties=azure_native.dataprotection.BackupVaultResponseArgs(
        storage_settings=[azure_native.dataprotection.StorageSettingArgs(
            datastore_type="VaultStore",
            type="LocallyRedundant",
        )],
    ),
    resource_group_name="SampleResourceGroup",
    tags={
        "key1": "val1",
    },
    vault_name="swaggerExample")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const backupVault = new azure_native.dataprotection.BackupVault("backupVault", {
    identity: {
        type: "systemAssigned",
    },
    location: "WestUS",
    properties: {
        storageSettings: [{
            datastoreType: "VaultStore",
            type: "LocallyRedundant",
        }],
    },
    resourceGroupName: "SampleResourceGroup",
    tags: {
        key1: "val1",
    },
    vaultName: "swaggerExample",
});
resources:
  backupVault:
    type: azure-native:dataprotection:BackupVault
    properties:
      identity:
        type: systemAssigned
      location: WestUS
      properties:
        storageSettings:
          - datastoreType: VaultStore
            type: LocallyRedundant
      resourceGroupName: SampleResourceGroup
      tags:
        key1: val1
      vaultName: swaggerExample

Create BackupVault Resource

new BackupVault(name: string, args: BackupVaultArgs, opts?: CustomResourceOptions);
@overload
def BackupVault(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                e_tag: Optional[str] = None,
                identity: Optional[DppIdentityDetailsArgs] = None,
                location: Optional[str] = None,
                properties: Optional[BackupVaultArgs] = None,
                resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                vault_name: Optional[str] = None)
@overload
def BackupVault(resource_name: str,
                args: BackupVaultInitArgs,
                opts: Optional[ResourceOptions] = None)
func NewBackupVault(ctx *Context, name string, args BackupVaultArgs, opts ...ResourceOption) (*BackupVault, error)
public BackupVault(string name, BackupVaultArgs args, CustomResourceOptions? opts = null)
public BackupVault(String name, BackupVaultArgs args)
public BackupVault(String name, BackupVaultArgs args, CustomResourceOptions options)
type: azure-native:dataprotection:BackupVault
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args BackupVaultArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args BackupVaultInitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BackupVaultArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BackupVaultArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args BackupVaultArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

BackupVault Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The BackupVault resource accepts the following input properties:

Properties Pulumi.AzureNative.DataProtection.Inputs.BackupVaultArgs

BackupVaultResource properties

ResourceGroupName string

The name of the resource group where the backup vault is present.

ETag string

Optional ETag.

Identity Pulumi.AzureNative.DataProtection.Inputs.DppIdentityDetailsArgs

Input Managed Identity Details

Location string

Resource location.

Tags Dictionary<string, string>

Resource tags.

VaultName string

The name of the backup vault.

Properties BackupVaultTypeArgs

BackupVaultResource properties

ResourceGroupName string

The name of the resource group where the backup vault is present.

ETag string

Optional ETag.

Identity DppIdentityDetailsArgs

Input Managed Identity Details

Location string

Resource location.

Tags map[string]string

Resource tags.

VaultName string

The name of the backup vault.

properties BackupVaultArgs

BackupVaultResource properties

resourceGroupName String

The name of the resource group where the backup vault is present.

eTag String

Optional ETag.

identity DppIdentityDetailsArgs

Input Managed Identity Details

location String

Resource location.

tags Map<String,String>

Resource tags.

vaultName String

The name of the backup vault.

properties BackupVaultArgs

BackupVaultResource properties

resourceGroupName string

The name of the resource group where the backup vault is present.

eTag string

Optional ETag.

identity DppIdentityDetailsArgs

Input Managed Identity Details

location string

Resource location.

tags {[key: string]: string}

Resource tags.

vaultName string

The name of the backup vault.

properties BackupVaultArgs

BackupVaultResource properties

resource_group_name str

The name of the resource group where the backup vault is present.

e_tag str

Optional ETag.

identity DppIdentityDetailsArgs

Input Managed Identity Details

location str

Resource location.

tags Mapping[str, str]

Resource tags.

vault_name str

The name of the backup vault.

properties Property Map

BackupVaultResource properties

resourceGroupName String

The name of the resource group where the backup vault is present.

eTag String

Optional ETag.

identity Property Map

Input Managed Identity Details

location String

Resource location.

tags Map<String>

Resource tags.

vaultName String

The name of the backup vault.

Outputs

All input properties are implicitly available as output properties. Additionally, the BackupVault resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name associated with the resource.

SystemData Pulumi.AzureNative.DataProtection.Outputs.SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

Type string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name associated with the resource.

SystemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

Type string

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

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name associated with the resource.

systemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type String

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

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name associated with the resource.

systemData SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type string

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

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name associated with the resource.

system_data SystemDataResponse

Metadata pertaining to creation and last modification of the resource.

type str

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

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name associated with the resource.

systemData Property Map

Metadata pertaining to creation and last modification of the resource.

type String

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

Supporting Types

BackupVault

BackupVaultResponse

ProvisioningState string

Provisioning state of the BackupVault resource

StorageSettings List<Pulumi.AzureNative.DataProtection.Inputs.StorageSettingResponse>

Storage Settings

ProvisioningState string

Provisioning state of the BackupVault resource

StorageSettings []StorageSettingResponse

Storage Settings

provisioningState String

Provisioning state of the BackupVault resource

storageSettings List<StorageSettingResponse>

Storage Settings

provisioningState string

Provisioning state of the BackupVault resource

storageSettings StorageSettingResponse[]

Storage Settings

provisioning_state str

Provisioning state of the BackupVault resource

storage_settings Sequence[StorageSettingResponse]

Storage Settings

provisioningState String

Provisioning state of the BackupVault resource

storageSettings List<Property Map>

Storage Settings

DppIdentityDetails

Type string

The identityType which can be either SystemAssigned or None

Type string

The identityType which can be either SystemAssigned or None

type String

The identityType which can be either SystemAssigned or None

type string

The identityType which can be either SystemAssigned or None

type str

The identityType which can be either SystemAssigned or None

type String

The identityType which can be either SystemAssigned or None

DppIdentityDetailsResponse

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

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

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

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

principal_id str

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

tenant_id str

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

type str

The identityType which can be either SystemAssigned or None

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

StorageSetting

DatastoreType string | StorageSettingStoreTypes

Gets or sets the type of the datastore.

Type string | StorageSettingTypes

Gets or sets the type.

datastoreType String | StorageSettingStoreTypes

Gets or sets the type of the datastore.

type String | StorageSettingTypes

Gets or sets the type.

datastoreType string | StorageSettingStoreTypes

Gets or sets the type of the datastore.

type string | StorageSettingTypes

Gets or sets the type.

datastore_type str | StorageSettingStoreTypes

Gets or sets the type of the datastore.

type str | StorageSettingTypes

Gets or sets the type.

datastoreType String | "ArchiveStore" | "SnapshotStore" | "VaultStore"

Gets or sets the type of the datastore.

type String | "GeoRedundant" | "LocallyRedundant"

Gets or sets the type.

StorageSettingResponse

DatastoreType string

Gets or sets the type of the datastore.

Type string

Gets or sets the type.

DatastoreType string

Gets or sets the type of the datastore.

Type string

Gets or sets the type.

datastoreType String

Gets or sets the type of the datastore.

type String

Gets or sets the type.

datastoreType string

Gets or sets the type of the datastore.

type string

Gets or sets the type.

datastore_type str

Gets or sets the type of the datastore.

type str

Gets or sets the type.

datastoreType String

Gets or sets the type of the datastore.

type String

Gets or sets the type.

StorageSettingStoreTypes

ArchiveStore
ArchiveStore
SnapshotStore
SnapshotStore
VaultStore
VaultStore
StorageSettingStoreTypesArchiveStore
ArchiveStore
StorageSettingStoreTypesSnapshotStore
SnapshotStore
StorageSettingStoreTypesVaultStore
VaultStore
ArchiveStore
ArchiveStore
SnapshotStore
SnapshotStore
VaultStore
VaultStore
ArchiveStore
ArchiveStore
SnapshotStore
SnapshotStore
VaultStore
VaultStore
ARCHIVE_STORE
ArchiveStore
SNAPSHOT_STORE
SnapshotStore
VAULT_STORE
VaultStore
"ArchiveStore"
ArchiveStore
"SnapshotStore"
SnapshotStore
"VaultStore"
VaultStore

StorageSettingTypes

GeoRedundant
GeoRedundant
LocallyRedundant
LocallyRedundant
StorageSettingTypesGeoRedundant
GeoRedundant
StorageSettingTypesLocallyRedundant
LocallyRedundant
GeoRedundant
GeoRedundant
LocallyRedundant
LocallyRedundant
GeoRedundant
GeoRedundant
LocallyRedundant
LocallyRedundant
GEO_REDUNDANT
GeoRedundant
LOCALLY_REDUNDANT
LocallyRedundant
"GeoRedundant"
GeoRedundant
"LocallyRedundant"
LocallyRedundant

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string

The type of identity that created the resource.

LastModifiedAt string

The type of identity that last modified the resource.

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string

The type of identity that created the resource.

lastModifiedAt string

The type of identity that last modified the resource.

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string

The type of identity that last modified the resource.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str

The type of identity that created the resource.

last_modified_at str

The type of identity that last modified the resource.

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str

The type of identity that last modified the resource.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String

The type of identity that created the resource.

lastModifiedAt String

The type of identity that last modified the resource.

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String

The type of identity that last modified the resource.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:dataprotection:BackupVault swaggerExample /subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0