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 Get the metadata of the provisioning service without SAS keys.
   *
   * @summary Get the metadata of the provisioning service without SAS keys.
   * x-ms-original-file: specification/deviceprovisioningservices/resource-manager/Microsoft.Devices/stable/2021-10-15/examples/DPSGet.json
   */
  const { IotDpsClient } = require("@azure/arm-deviceprovisioningservices");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function dpsGet() {
    const subscriptionId = "91d12660-3dec-467a-be2a-213b5544ddc0";
    const provisioningServiceName = "myFirstProvisioningService";
    const resourceGroupName = "myResourceGroup";
    const credential = new DefaultAzureCredential();
    const client = new IotDpsClient(credential, subscriptionId);
    const result = await client.iotDpsResource.get(provisioningServiceName, resourceGroupName);
    console.log(result);
  }
  
  dpsGet().catch(console.error);
  