GetVault

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

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var vault = Output.Create(Azure.RecoveryServices.GetVault.InvokeAsync(new Azure.RecoveryServices.GetVaultArgs
        {
            Name = "tfex-recovery_vault",
            ResourceGroupName = "tfex-resource_group",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/recoveryservices"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := recoveryservices.LookupVault(ctx, &recoveryservices.LookupVaultArgs{
            Name:              "tfex-recovery_vault",
            ResourceGroupName: "tfex-resource_group",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

vault = azure.recoveryservices.get_vault(name="tfex-recovery_vault",
    resource_group_name="tfex-resource_group")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const vault = pulumi.output(azure.recoveryservices.getVault({
    name: "tfex-recovery_vault",
    resourceGroupName: "tfex-resource_group",
}, { async: true }));

Using GetVault

function getVault(args: GetVaultArgs, opts?: InvokeOptions): Promise<GetVaultResult>
function  get_vault(name=None, resource_group_name=None, opts=None)
func LookupVault(ctx *Context, args *LookupVaultArgs, opts ...InvokeOption) (*LookupVaultResult, error)

Note: This function is named LookupVault in the Go SDK.

public static class GetVault {
    public static Task<GetVaultResult> InvokeAsync(GetVaultArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

Specifies the name of the Recovery Services Vault.

ResourceGroupName string

The name of the resource group in which the Recovery Services Vault resides.

Name string

Specifies the name of the Recovery Services Vault.

ResourceGroupName string

The name of the resource group in which the Recovery Services Vault resides.

name string

Specifies the name of the Recovery Services Vault.

resourceGroupName string

The name of the resource group in which the Recovery Services Vault resides.

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.

GetVault Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the resource resides.

Name string
ResourceGroupName string
Sku string

The vault’s current SKU.

Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

Id string

The provider-assigned unique ID for this managed resource.

Location string

The Azure location where the resource resides.

Name string
ResourceGroupName string
Sku string

The vault’s current SKU.

Tags map[string]string

A mapping of tags assigned to the resource.

id string

The provider-assigned unique ID for this managed resource.

location string

The Azure location where the resource resides.

name string
resourceGroupName string
sku string

The vault’s current SKU.

tags {[key: string]: string}

A mapping of tags assigned to the resource.

id str

The provider-assigned unique ID for this managed resource.

location str

The Azure location where the resource resides.

name str
resource_group_name str
sku str

The vault’s current SKU.

tags Dict[str, str]

A mapping of tags assigned to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.