This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.

recoveryservices

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.

class pulumi_azure.recoveryservices.AwaitableGetVaultResult(id=None, location=None, name=None, resource_group_name=None, sku=None, tags=None)
class pulumi_azure.recoveryservices.GetVaultResult(id=None, location=None, name=None, resource_group_name=None, sku=None, tags=None)

A collection of values returned by getVault.

id = None

The provider-assigned unique ID for this managed resource.

location = None

The Azure location where the resource resides.

sku = None

The vault’s current SKU.

tags = None

A mapping of tags assigned to the resource.

class pulumi_azure.recoveryservices.Vault(resource_name, opts=None, location=None, name=None, resource_group_name=None, sku=None, soft_delete_enabled=None, tags=None, __props__=None, __name__=None, __opts__=None)

Manages an Recovery Services Vault.

import pulumi
import pulumi_azure as azure

rg = azure.core.ResourceGroup("rg", location="West US")
vault = azure.recoveryservices.Vault("vault",
    location=rg.location,
    resource_group_name=rg.name,
    sku="Standard",
    soft_delete_enabled=True)
Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.

  • sku (pulumi.Input[str]) – Sets the vault’s SKU. Possible values include: Standard, RS0.

  • soft_delete_enabled (pulumi.Input[bool]) – Is soft delete enable for this Vault? Defaults to true.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

location: pulumi.Output[str] = None

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

name: pulumi.Output[str] = None

Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created.

resource_group_name: pulumi.Output[str] = None

The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.

sku: pulumi.Output[str] = None

Sets the vault’s SKU. Possible values include: Standard, RS0.

soft_delete_enabled: pulumi.Output[bool] = None

Is soft delete enable for this Vault? Defaults to true.

tags: pulumi.Output[dict] = None

A mapping of tags to assign to the resource.

static get(resource_name, id, opts=None, location=None, name=None, resource_group_name=None, sku=None, soft_delete_enabled=None, tags=None)

Get an existing Vault resource’s state with the given name, id, and optional extra properties used to qualify the lookup.

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • location (pulumi.Input[str]) – Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • name (pulumi.Input[str]) – Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created.

  • resource_group_name (pulumi.Input[str]) – The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.

  • sku (pulumi.Input[str]) – Sets the vault’s SKU. Possible values include: Standard, RS0.

  • soft_delete_enabled (pulumi.Input[bool]) – Is soft delete enable for this Vault? Defaults to true.

  • tags (pulumi.Input[dict]) – A mapping of tags to assign to the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_azure.recoveryservices.get_vault(name=None, resource_group_name=None, opts=None)

Use this data source to access information about an existing Recovery Services Vault.

import pulumi
import pulumi_azure as azure

vault = azure.recoveryservices.get_vault(name="tfex-recovery_vault",
    resource_group_name="tfex-resource_group")
Parameters
  • name (str) – Specifies the name of the Recovery Services Vault.

  • resource_group_name (str) – The name of the resource group in which the Recovery Services Vault resides.