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 Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
   *
   * @summary Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
   * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2021-05-20/examples/PrivateLinkScopesCreate.json
   */
  const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function privateLinkScopeCreate() {
    const subscriptionId = "86dc51d3-92ed-4d7e-947a-775ea79b4919";
    const resourceGroupName = "my-resource-group";
    const scopeName = "my-privatelinkscope";
    const parameters = { location: "westus" };
    const credential = new DefaultAzureCredential();
    const client = new HybridComputeManagementClient(credential, subscriptionId);
    const result = await client.privateLinkScopes.createOrUpdate(
      resourceGroupName,
      scopeName,
      parameters
    );
    console.log(result);
  }
  
  privateLinkScopeCreate().catch(console.error);
  