Azure Storage Sync Group
This page shows how to write Terraform and Azure Resource Manager for Storage Sync Group and write them securely.
azurerm_storage_sync_group (Terraform)
The Sync Group in Storage can be configured in Terraform with the resource name azurerm_storage_sync_group
. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_storage_sync_group" "sync_group" {
name = local.resource_storage_sync_group_name
storage_sync_id = azurerm_storage_sync.sync.id
}
resource "azurerm_storage_sync_cloud_endpoint" "sync_cloud_endpoint" {
Parameters
-
id
optional computed - string -
name
required - string -
storage_sync_id
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Storage Sync Group.
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.
azurerm_storage_account
Ensure to use HTTPS connections
It is better to use HTTPS instead of HTTP, which could be vulnerable to person-in-the-middle attacks.
azurerm_storage_account_network_rules
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.
Microsoft.StorageSync/storageSyncServices/syncGroups (Azure Resource Manager)
The storageSyncServices/syncGroups in Microsoft.StorageSync can be configured in Azure Resource Manager with the resource name Microsoft.StorageSync/storageSyncServices/syncGroups
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersion
required - stringname
required - stringName of Sync Group resource.
properties
required - objectSync Group Create Properties object.
type
required - string
Frequently asked questions
What is Azure Storage Sync Group?
Azure Storage Sync Group 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 Group?
For Terraform, the wesley-trust/Terraform source code example is useful. See the Terraform Example section for further details.