Azure Storage Sync Cloud Endpoint

This page shows how to write Terraform and Azure Resource Manager for Storage Sync Cloud Endpoint and write them securely.

azurerm_storage_sync_cloud_endpoint (Terraform)

The Sync Cloud Endpoint in Storage can be configured in Terraform with the resource name azurerm_storage_sync_cloud_endpoint. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub
resource "azurerm_storage_sync_cloud_endpoint" "sync_cloud_endpoint" {
  name                  = local.resource_storage_sync_cloud_endpoint_name
  storage_sync_group_id =
  file_share_name       =
  storage_account_id    =

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 Storage Sync Cloud Endpoint. -> NOTE: Please ensure Azure File Sync has access to the storage account in your subscription, which indicates that Microsoft.StorageSync is assigned role Reader and Data Access ( refer to details here).

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.

Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints (Azure Resource Manager)

The storageSyncServices/syncGroups/cloudEndpoints in Microsoft.StorageSync can be configured in Azure Resource Manager with the resource name Microsoft.StorageSync/storageSyncServices/syncGroups/cloudEndpoints. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.


  • apiVersion required - string
  • name required - string

    Name of Cloud Endpoint object.

  • properties required
      • azureFileShareName optional - string

        Azure file share name

      • friendlyName optional - string

        Friendly Name

      • storageAccountResourceId optional - string

        Storage Account Resource Id

      • storageAccountTenantId optional - string

        Storage Account Tenant Id

  • type required - string

Frequently asked questions

What is Azure Storage Sync Cloud Endpoint?

Azure Storage Sync Cloud Endpoint 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 Sync Cloud Endpoint?

For Terraform, the wesley-trust/Terraform source code example is useful. See the Terraform Example section for further details.