Class ContainerStorageAccount
Manages registration of a storage account with Azure Backup. Storage accounts must be registered with an Azure Recovery Vault in order to backup file shares within the storage account. Registering a storage account with a vault creates what is known as a protection container within Azure Recovery Services. Once the container is created, Azure file shares within the storage account can be backed up using the azure.backup.ProtectedFileShare resource.
NOTE: Azure Backup for Azure File Shares is currently in public preview. During the preview, the service is subject to additional limitations and unsupported backup scenarios. Read More
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var vault = new Azure.RecoveryServices.Vault("vault", new Azure.RecoveryServices.VaultArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
Sku = "Standard",
});
var sa = new Azure.Storage.Account("sa", new Azure.Storage.AccountArgs
{
Location = rg.Location,
ResourceGroupName = rg.Name,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var container = new Azure.Backup.ContainerStorageAccount("container", new Azure.Backup.ContainerStorageAccountArgs
{
ResourceGroupName = rg.Name,
RecoveryVaultName = vault.Name,
StorageAccountId = sa.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Backup
Assembly: Pulumi.Azure.dll
Syntax
public class ContainerStorageAccount : CustomResource
Constructors
View SourceContainerStorageAccount(String, ContainerStorageAccountArgs, CustomResourceOptions)
Create a ContainerStorageAccount resource with the given unique name, arguments, and options.
Declaration
public ContainerStorageAccount(string name, ContainerStorageAccountArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ContainerStorageAccountArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceRecoveryVaultName
The name of the vault where the storage account will be registered.
Declaration
public Output<string> RecoveryVaultName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
Name of the resource group where the vault is located.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StorageAccountId
Azure Resource ID of the storage account to be registered
Declaration
public Output<string> StorageAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ContainerStorageAccountState, CustomResourceOptions)
Get an existing ContainerStorageAccount resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ContainerStorageAccount Get(string name, Input<string> id, ContainerStorageAccountState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ContainerStorageAccountState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ContainerStorageAccount |