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.
  const { ServiceBusManagementClient } = require("@azure/arm-servicebus");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Gets all migrationConfigurations
   *
   * @summary Gets all migrationConfigurations
   * x-ms-original-file: specification/servicebus/resource-manager/Microsoft.ServiceBus/stable/2021-11-01/examples/Migrationconfigurations/SBMigrationconfigurationList.json
   */
  async function migrationConfigurationsList() {
    const subscriptionId = "SubscriptionId";
    const resourceGroupName = "ResourceGroup";
    const namespaceName = "sdk-Namespace-9259";
    const credential = new DefaultAzureCredential();
    const client = new ServiceBusManagementClient(credential, subscriptionId);
    const resArray = new Array();
    for await (let item of client.migrationConfigs.list(resourceGroupName, namespaceName)) {
      resArray.push(item);
    }
    console.log(resArray);
  }
  
  migrationConfigurationsList().catch(console.error);
  