Microsoft.StorageSync storageSyncSyncServices/syncGroups

Bicep-Ressourcendefinition

Der ressourcentyp "storageSyncServices/syncGroups" kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

Eine Liste der geänderten Eigenschaften in jeder API-Version finden Sie unter Änderungsprotokoll.

Verwendungsbeispiele

Bicep-Beispiele

Ein grundlegendes Beispiel für die Bereitstellung einer Speichersynchronisierungsgruppe.

param location string = 'westeurope'
param resourceName string = 'acctest0001'

resource storageSyncService 'Microsoft.StorageSync/storageSyncServices@2020-03-01' = {
  name: resourceName
  location: location
  properties: {
    incomingTrafficPolicy: 'AllowAllTraffic'
  }
}

resource syncGroup 'Microsoft.StorageSync/storageSyncServices/syncGroups@2020-03-01' = {
  name: resourceName
  parent: storageSyncService
}

Ressourcenformat

Um eine Microsoft.StorageSync/storageSyncServices/syncGroups-Ressource zu erstellen, fügen Sie der Vorlage die folgende Bicep hinzu.

resource symbolicname 'Microsoft.StorageSync/storageSyncServices/syncGroups@2025-12-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: any(...)
}

Eigenschaftswerte

Microsoft.StorageSync/storageSyncServices/syncGroups

Name Beschreibung Wert
Name Der Ressourcenname Zeichenfolge (erforderlich)
Elternteil In Bicep können Sie die übergeordnete Ressource für eine untergeordnete Ressource angeben. Sie müssen diese Eigenschaft nur hinzufügen, wenn die untergeordnete Ressource außerhalb der übergeordneten Ressource deklariert wird.

Weitere Informationen finden Sie unter Untergeordnete Ressource außerhalb der übergeordneten Ressource.
Symbolischer Name für Ressource vom Typ: storageSyncServices
Eigenschaften Die Parameter zum Erstellen der Synchronisierungsgruppe jegliche

ARM-Vorlagenressourcendefinition

Der ressourcentyp "storageSyncServices/syncGroups" kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

Verwendungsbeispiele

Ressourcenformat

Um eine Microsoft.StorageSync/storageSyncServices/syncGroups-Ressource zu erstellen, fügen Sie der Vorlage den folgenden JSON-Code hinzu.

{
  "type": "Microsoft.StorageSync/storageSyncServices/syncGroups",
  "apiVersion": "2025-12-01",
  "name": "string",
  "properties": {}
}

Eigenschaftswerte

Microsoft.StorageSync/storageSyncServices/syncGroups

Name Beschreibung Wert
apiVersion Die API-Version '2025-12-01'
Name Der Ressourcenname Zeichenfolge (erforderlich)
Eigenschaften Die Parameter zum Erstellen der Synchronisierungsgruppe jegliche
Art Der Ressourcentyp "Microsoft.StorageSync/storageSyncServices/syncGroups"

Terraform -Ressourcendefinition (AzAPI-Anbieter)

Der ressourcentyp "storageSyncServices/syncGroups" kann mit Vorgängen bereitgestellt werden, die auf Folgendes abzielen:

  • Ressourcengruppen Eine Liste der geänderten Eigenschaften in jeder API-Version finden Sie unter Change Log.

Verwendungsbeispiele

Terraform-Beispiele

Ein grundlegendes Beispiel für die Bereitstellung einer Speichersynchronisierungsgruppe.

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    = ["*"]
}

resource "azapi_resource" "syncGroup" {
  type                      = "Microsoft.StorageSync/storageSyncServices/syncGroups@2020-03-01"
  parent_id                 = azapi_resource.storageSyncService.id
  name                      = var.resource_name
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Ressourcenformat

Um eine Microsoft.StorageSync/storageSyncServices/syncGroups-Ressource zu erstellen, fügen Sie Ihrer Vorlage die folgende Terraform hinzu.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.StorageSync/storageSyncServices/syncGroups@2025-12-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = ?
  }
}

Eigenschaftswerte

Microsoft.StorageSync/storageSyncServices/syncGroups

Name Beschreibung Wert
Name Der Ressourcenname Zeichenfolge (erforderlich)
parent_id Die ID der Ressource, die das übergeordnete Element für diese Ressource ist. ID für Ressource vom Typ: storageSyncServices
Eigenschaften Die Parameter zum Erstellen der Synchronisierungsgruppe jegliche
Art Der Ressourcentyp "Microsoft. StorageSync/storageSyncServices/syncGroups@2025-12-01"