Share via


Microsoft.StorageSync storageSyncServices 2017-06-05-preview

Bicep resource definition

The storageSyncServices resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.StorageSync/storageSyncServices resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.StorageSync/storageSyncServices@2017-06-05-preview' = {
  scope: resourceSymbolicName or scope
  location: 'string'
  name: 'string'
  properties: {}
  tags: any(...)
}

Property Values

Microsoft.StorageSync/storageSyncServices

Name Description Value
location The location of the resource. string
name The resource name string (required)
properties Storage Sync Service properties. StorageSyncServiceProperties
scope Use when creating a resource at a scope that is different than the deployment scope. Set this property to the symbolic name of a resource to apply the extension resource.
tags Resource tags Dictionary of tag names and values. See Tags in templates

StorageSyncServiceProperties

Name Description Value

ARM template resource definition

The storageSyncServices resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.StorageSync/storageSyncServices resource, add the following JSON to your template.

{
  "type": "Microsoft.StorageSync/storageSyncServices",
  "apiVersion": "2017-06-05-preview",
  "name": "string",
  "location": "string",
  "properties": {
  },
  "tags": {}
}

Property Values

Microsoft.StorageSync/storageSyncServices

Name Description Value
apiVersion The api version '2017-06-05-preview'
location The location of the resource. string
name The resource name string (required)
properties Storage Sync Service properties. StorageSyncServiceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.StorageSync/storageSyncServices'

StorageSyncServiceProperties

Name Description Value

Usage Examples

Terraform (AzAPI provider) resource definition

The storageSyncServices resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.StorageSync/storageSyncServices resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.StorageSync/storageSyncServices@2017-06-05-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = ?
  body = {
    properties = {
    }
  }
}

Property Values

Microsoft.StorageSync/storageSyncServices

Name Description Value
location The location of the resource. string
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties Storage Sync Service properties. StorageSyncServiceProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.StorageSync/storageSyncServices@2017-06-05-preview"

StorageSyncServiceProperties

Name Description Value

Usage Examples

Terraform Samples

A basic example of deploying Storage Sync.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "storageSyncService" {
  type      = "Microsoft.StorageSync/storageSyncServices@2020-03-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      incomingTrafficPolicy = "AllowAllTraffic"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}