Azure Storage Blob Target

This page shows how to write Terraform for Storage Blob Target and write them securely.

azurerm_hpc_cache_blob_target (Terraform)

The Blob Target in Storage can be configured in Terraform with the resource name azurerm_hpc_cache_blob_target. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "azurerm_hpc_cache_blob_target" "this" {
  cache_name           = var.cache_name
  name                 =
  namespace_path       = var.namespace_path
  resource_group_name  = var.resource_group_name
  storage_container_id = var.storage_container_id
resource "azurerm_hpc_cache_blob_target" "blob_target1" {
  name                 = "azureblobtarget"
  resource_group_name  =
  cache_name           =
  storage_container_id = azurerm_storage_container.blob_container.resource_manager_id
  namespace_path       = "/blob_storage"

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


Explanation in Terraform Registry

Manages a Blob Target within a HPC Cache.

NOTE:: By request of the service team the provider no longer automatically registering the Microsoft.StorageCache Resource Provider for this resource. To register it you can run az provider register --namespace 'Microsoft.StorageCache'.

Tips: Best Practices for The Other Azure Storage Resources

In addition to the azurerm_storage_account, Azure Storage has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.



Ensure to use HTTPS connections

It is better to use HTTPS instead of HTTP, which could be vulnerable to person-in-the-middle attacks.



Ensure to allow Trusted Microsoft Services to bypass

It is better to allow Trusted Microsoft Services to bypass. They are not able to access storage account unless rules are set to allow them explicitly.

Review your Azure Storage settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Azure Resource Manager Example

Azure Resource Manager code does not have the related resource.

Frequently asked questions

What is Azure Storage Blob Target?

Azure Storage Blob Target is a resource for Storage of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Storage Blob Target?

For Terraform, the niveklabs/azurerm and Azure/Avere source code examples are useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.