1. Packages
  2. Azure Native
  3. API Docs
  4. datareplication
  5. Vault
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.datareplication.Vault

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Vault model.

Uses Azure REST API version 2021-02-16-preview. In version 2.x of the Azure Native provider, it used API version 2021-02-16-preview.

Other available API versions: 2024-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native datareplication [ApiVersion]. See the version guide for details.

Example Usage

Vault_Create

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

return await Deployment.RunAsync(() => 
{
    var vault = new AzureNative.DataReplication.Vault("vault", new()
    {
        Location = "eck",
        Properties = new AzureNative.DataReplication.Inputs.VaultModelPropertiesArgs
        {
            VaultType = AzureNative.DataReplication.ReplicationVaultType.DisasterRecovery,
        },
        ResourceGroupName = "rgrecoveryservicesdatareplication",
        Tags = 
        {
            { "key5359", "ljfilxolxzuxrauopwtyxghrp" },
        },
        VaultName = "4",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datareplication.NewVault(ctx, "vault", &datareplication.VaultArgs{
			Location: pulumi.String("eck"),
			Properties: &datareplication.VaultModelPropertiesArgs{
				VaultType: pulumi.String(datareplication.ReplicationVaultTypeDisasterRecovery),
			},
			ResourceGroupName: pulumi.String("rgrecoveryservicesdatareplication"),
			Tags: pulumi.StringMap{
				"key5359": pulumi.String("ljfilxolxzuxrauopwtyxghrp"),
			},
			VaultName: pulumi.String("4"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.datareplication.Vault;
import com.pulumi.azurenative.datareplication.VaultArgs;
import com.pulumi.azurenative.datareplication.inputs.VaultModelPropertiesArgs;
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 vault = new Vault("vault", VaultArgs.builder()
            .location("eck")
            .properties(VaultModelPropertiesArgs.builder()
                .vaultType("DisasterRecovery")
                .build())
            .resourceGroupName("rgrecoveryservicesdatareplication")
            .tags(Map.of("key5359", "ljfilxolxzuxrauopwtyxghrp"))
            .vaultName("4")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const vault = new azure_native.datareplication.Vault("vault", {
    location: "eck",
    properties: {
        vaultType: azure_native.datareplication.ReplicationVaultType.DisasterRecovery,
    },
    resourceGroupName: "rgrecoveryservicesdatareplication",
    tags: {
        key5359: "ljfilxolxzuxrauopwtyxghrp",
    },
    vaultName: "4",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

vault = azure_native.datareplication.Vault("vault",
    location="eck",
    properties={
        "vault_type": azure_native.datareplication.ReplicationVaultType.DISASTER_RECOVERY,
    },
    resource_group_name="rgrecoveryservicesdatareplication",
    tags={
        "key5359": "ljfilxolxzuxrauopwtyxghrp",
    },
    vault_name="4")
Copy
resources:
  vault:
    type: azure-native:datareplication:Vault
    properties:
      location: eck
      properties:
        vaultType: DisasterRecovery
      resourceGroupName: rgrecoveryservicesdatareplication
      tags:
        key5359: ljfilxolxzuxrauopwtyxghrp
      vaultName: '4'
Copy

Create Vault Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Vault(name: string, args: VaultArgs, opts?: CustomResourceOptions);
@overload
def Vault(resource_name: str,
          args: VaultArgs,
          opts: Optional[ResourceOptions] = None)

@overload
def Vault(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          resource_group_name: Optional[str] = None,
          location: Optional[str] = None,
          properties: Optional[VaultModelPropertiesArgs] = None,
          tags: Optional[Mapping[str, str]] = None,
          vault_name: Optional[str] = None)
func NewVault(ctx *Context, name string, args VaultArgs, opts ...ResourceOption) (*Vault, error)
public Vault(string name, VaultArgs args, CustomResourceOptions? opts = null)
public Vault(String name, VaultArgs args)
public Vault(String name, VaultArgs args, CustomResourceOptions options)
type: azure-native:datareplication:Vault
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var vaultResource = new AzureNative.DataReplication.Vault("vaultResource", new()
{
    ResourceGroupName = "string",
    Location = "string",
    Properties = new AzureNative.DataReplication.Inputs.VaultModelPropertiesArgs
    {
        VaultType = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
    VaultName = "string",
});
Copy
example, err := datareplication.NewVault(ctx, "vaultResource", &datareplication.VaultArgs{
	ResourceGroupName: pulumi.String("string"),
	Location:          pulumi.String("string"),
	Properties: &datareplication.VaultModelPropertiesArgs{
		VaultType: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	VaultName: pulumi.String("string"),
})
Copy
var vaultResource = new Vault("vaultResource", VaultArgs.builder()
    .resourceGroupName("string")
    .location("string")
    .properties(VaultModelPropertiesArgs.builder()
        .vaultType("string")
        .build())
    .tags(Map.of("string", "string"))
    .vaultName("string")
    .build());
Copy
vault_resource = azure_native.datareplication.Vault("vaultResource",
    resource_group_name="string",
    location="string",
    properties={
        "vault_type": "string",
    },
    tags={
        "string": "string",
    },
    vault_name="string")
Copy
const vaultResource = new azure_native.datareplication.Vault("vaultResource", {
    resourceGroupName: "string",
    location: "string",
    properties: {
        vaultType: "string",
    },
    tags: {
        string: "string",
    },
    vaultName: "string",
});
Copy
type: azure-native:datareplication:Vault
properties:
    location: string
    properties:
        vaultType: string
    resourceGroupName: string
    tags:
        string: string
    vaultName: string
Copy

Vault Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Vault resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
Gets or sets the location of the vault.
Properties Pulumi.AzureNative.DataReplication.Inputs.VaultModelProperties
Vault properties.
Tags Dictionary<string, string>
Gets or sets the resource tags.
VaultName Changes to this property will trigger replacement. string
The vault name.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
Gets or sets the location of the vault.
Properties VaultModelPropertiesArgs
Vault properties.
Tags map[string]string
Gets or sets the resource tags.
VaultName Changes to this property will trigger replacement. string
The vault name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
Gets or sets the location of the vault.
properties VaultModelProperties
Vault properties.
tags Map<String,String>
Gets or sets the resource tags.
vaultName Changes to this property will trigger replacement. String
The vault name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. string
Gets or sets the location of the vault.
properties VaultModelProperties
Vault properties.
tags {[key: string]: string}
Gets or sets the resource tags.
vaultName Changes to this property will trigger replacement. string
The vault name.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. str
Gets or sets the location of the vault.
properties VaultModelPropertiesArgs
Vault properties.
tags Mapping[str, str]
Gets or sets the resource tags.
vault_name Changes to this property will trigger replacement. str
The vault name.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
Gets or sets the location of the vault.
properties Property Map
Vault properties.
tags Map<String>
Gets or sets the resource tags.
vaultName Changes to this property will trigger replacement. String
The vault name.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Gets or sets the name of the resource.
SystemData Pulumi.AzureNative.DataReplication.Outputs.VaultModelResponseSystemData
Type string
Gets or sets the type of the resource.
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Gets or sets the name of the resource.
SystemData VaultModelResponseSystemData
Type string
Gets or sets the type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Gets or sets the name of the resource.
systemData VaultModelResponseSystemData
type String
Gets or sets the type of the resource.
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
Gets or sets the name of the resource.
systemData VaultModelResponseSystemData
type string
Gets or sets the type of the resource.
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
Gets or sets the name of the resource.
system_data VaultModelResponseSystemData
type str
Gets or sets the type of the resource.
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Gets or sets the name of the resource.
systemData Property Map
type String
Gets or sets the type of the resource.

Supporting Types

ReplicationVaultType
, ReplicationVaultTypeArgs

DisasterRecovery
DisasterRecovery
Migrate
Migrate
ReplicationVaultTypeDisasterRecovery
DisasterRecovery
ReplicationVaultTypeMigrate
Migrate
DisasterRecovery
DisasterRecovery
Migrate
Migrate
DisasterRecovery
DisasterRecovery
Migrate
Migrate
DISASTER_RECOVERY
DisasterRecovery
MIGRATE
Migrate
"DisasterRecovery"
DisasterRecovery
"Migrate"
Migrate

VaultModelProperties
, VaultModelPropertiesArgs

VaultType string | ReplicationVaultType
Gets or sets the type of vault.
vaultType String | ReplicationVaultType
Gets or sets the type of vault.
vaultType string | ReplicationVaultType
Gets or sets the type of vault.
vault_type str | ReplicationVaultType
Gets or sets the type of vault.
vaultType String | "DisasterRecovery" | "Migrate"
Gets or sets the type of vault.

VaultModelPropertiesResponse
, VaultModelPropertiesResponseArgs

ProvisioningState This property is required. string
Gets or sets the provisioning state of the vault.
ServiceResourceId This property is required. string
Gets or sets the service resource Id.
VaultType string
Gets or sets the type of vault.
ProvisioningState This property is required. string
Gets or sets the provisioning state of the vault.
ServiceResourceId This property is required. string
Gets or sets the service resource Id.
VaultType string
Gets or sets the type of vault.
provisioningState This property is required. String
Gets or sets the provisioning state of the vault.
serviceResourceId This property is required. String
Gets or sets the service resource Id.
vaultType String
Gets or sets the type of vault.
provisioningState This property is required. string
Gets or sets the provisioning state of the vault.
serviceResourceId This property is required. string
Gets or sets the service resource Id.
vaultType string
Gets or sets the type of vault.
provisioning_state This property is required. str
Gets or sets the provisioning state of the vault.
service_resource_id This property is required. str
Gets or sets the service resource Id.
vault_type str
Gets or sets the type of vault.
provisioningState This property is required. String
Gets or sets the provisioning state of the vault.
serviceResourceId This property is required. String
Gets or sets the service resource Id.
vaultType String
Gets or sets the type of vault.

VaultModelResponseSystemData
, VaultModelResponseSystemDataArgs

CreatedAt string
Gets or sets the timestamp of resource creation (UTC).
CreatedBy string
Gets or sets identity that created the resource.
CreatedByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
LastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
LastModifiedBy string
Gets or sets the identity that last modified the resource.
LastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
CreatedAt string
Gets or sets the timestamp of resource creation (UTC).
CreatedBy string
Gets or sets identity that created the resource.
CreatedByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
LastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
LastModifiedBy string
Gets or sets the identity that last modified the resource.
LastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt String
Gets or sets the timestamp of resource creation (UTC).
createdBy String
Gets or sets identity that created the resource.
createdByType String
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt String
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy String
Gets or sets the identity that last modified the resource.
lastModifiedByType String
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt string
Gets or sets the timestamp of resource creation (UTC).
createdBy string
Gets or sets identity that created the resource.
createdByType string
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt string
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy string
Gets or sets the identity that last modified the resource.
lastModifiedByType string
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
created_at str
Gets or sets the timestamp of resource creation (UTC).
created_by str
Gets or sets identity that created the resource.
created_by_type str
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
last_modified_at str
Gets or sets the timestamp of resource last modification (UTC).
last_modified_by str
Gets or sets the identity that last modified the resource.
last_modified_by_type str
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.
createdAt String
Gets or sets the timestamp of resource creation (UTC).
createdBy String
Gets or sets identity that created the resource.
createdByType String
Gets or sets the type of identity that created the resource: user, application, managedIdentity.
lastModifiedAt String
Gets or sets the timestamp of resource last modification (UTC).
lastModifiedBy String
Gets or sets the identity that last modified the resource.
lastModifiedByType String
Gets or sets the type of identity that last modified the resource: user, application, managedIdentity.

Import

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

$ pulumi import azure-native:datareplication:Vault bqgyqxmnlgwqxbmajddqwtao /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi