The commvault_azure_storage Terraform Resource

Updated

On this page

Use the commvault_azure_storage resource type to create or delete an Azure cloud storage in the CommCell environment.

Syntax

resource "commvault_azure_storage" "<local_name>"{ 

storage_name = "<Azure storage name>"

mediaagent = "<MediaAgent name>"

service_host = "<Azure service host>"

account_name = "<Azure account name>

access_key_id = "<AWS access key>"

credentials_name = "<Azure credential>"

container= "<container name>"

ddb_location = "<DDB location>"

company_id = <company ID>

}

Where local name is the name that is used by the Commvault Terraform module to refer to the resource and has no significance in the target platform.

Arguments

Name

Description

Required

More Information

storage_name

The name of the Azure storage.

Yes

mediaagent

The MediaAgent that is used for the Azure storage.

Yes

service_host

The service host name for the Azure storage.

Yes

account_name

The account name of the Azure storage .

No

If you include the credentials_name argument, the access_key_id and the account_name arguments are optional, and vice-versa.

access_key_id

The access key ID of the Azure storage account.

No

credentials_name

The name of the credential that you want to use for the Azure storage account.

No

container

The name of the container used for the Azure storage.

Yes

ddb_location

The deduplication path for the Azure storage.

No

company_id

The ID of the company that you want to associate the Azure storage with.

No

Example

The following resource block manages the azure_cvlt_us Azure Storage:

resource "commvault_azure_storage" "CAWS"{

storage_name = "azure_cvlt_us"

mediaagent = "MediaAgent"

service_host = "s3.us-east-1.amazonaws.com"

account_name = "azureaccount"

access_key_id = "AccessKey_ID"

credentials_name = "azurecredential"

container = ""myazurecontainer"

ddb_location = "c:\\DemoDiskStorage-Dedup-DDB"

company_id = 22

}