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 { VMwareCloudSimple } = require("@azure/arm-vmwarecloudsimple");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Returns list of dedicate cloud nodes within subscription
   *
   * @summary Returns list of dedicate cloud nodes within subscription
   * x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/ListDedicatedCloudNodes.json
   */
  async function listDedicatedCloudNodes() {
    const subscriptionId = "{subscription-id}";
    const credential = new DefaultAzureCredential();
    const client = new VMwareCloudSimple(credential, subscriptionId);
    const resArray = new Array();
    for await (let item of client.dedicatedCloudNodes.listBySubscription()) {
      resArray.push(item);
    }
    console.log(resArray);
  }
  
  listDedicatedCloudNodes().catch(console.error);
  