terraform/website/source/docs/providers/azurerm/r/storage_queue.html.markdown

1.4 KiB

layout page_title sidebar_current description
azurerm Azure Resource Manager: azurerm_storage_queue docs-azurerm-resource-storage-queue Create a Azure Storage Queue.

azurerm_storage_queue

Create an Azure Storage Queue.

Example Usage

resource "azurerm_resource_group" "test" {
  name     = "acctestrg-%d"
  location = "westus"
}

resource "azurerm_storage_account" "test" {
  name                = "acctestacc%s"
  resource_group_name = "${azurerm_resource_group.test.name}"
  location            = "westus"
  account_type        = "Standard_LRS"
}

resource "azurerm_storage_queue" "test" {
  name                 = "mysamplequeue"
  resource_group_name  = "${azurerm_resource_group.test.name}"
  storage_account_name = "${azurerm_storage_account.test.name}"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the storage queue. Must be unique within the storage account the queue is located.

  • resource_group_name - (Required) The name of the resource group in which to create the storage queue. Changing this forces a new resource to be created.

  • storage_account_name - (Required) Specifies the storage account in which to create the storage queue. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • id - The storage queue Resource ID.