text: /*
   * Copyright (c) Microsoft Corporation.
   * Licensed under the MIT License.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is regenerated.
   */
  
  // Copyright (c) Microsoft Corporation.
  // Licensed under the MIT License.
  /**
   * This sample demonstrates how to Create a new SyncGroup.
   *
   * @summary Create a new SyncGroup.
   * x-ms-original-file: specification/storagesync/resource-manager/Microsoft.StorageSync/stable/2020-09-01/examples/SyncGroups_Create.json
   */
  const { MicrosoftStorageSync } = require("@azure/arm-storagesync");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function syncGroupsCreate() {
    const subscriptionId = "52b8da2f-61e0-4a1f-8dde-336911f367fb";
    const resourceGroupName = "SampleResourceGroup_1";
    const storageSyncServiceName = "SampleStorageSyncService_1";
    const syncGroupName = "SampleSyncGroup_1";
    const parameters = { properties: {} };
    const credential = new DefaultAzureCredential();
    const client = new MicrosoftStorageSync(credential, subscriptionId);
    const result = await client.syncGroups.create(
      resourceGroupName,
      storageSyncServiceName,
      syncGroupName,
      parameters
    );
    console.log(result);
  }
  
  syncGroupsCreate().catch(console.error);
  