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 { ComputeManagementClient } = require("@azure/arm-compute");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Gets a virtual machine image.
   *
   * @summary Gets a virtual machine image.
   * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineImages_Get_MaximumSet_Gen.json
   */
  async function virtualMachineImagesGetMaximumSetGen() {
    const subscriptionId = "{subscription-id}";
    const location = "aaaaaa";
    const publisherName = "aaa";
    const offer = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    const skus = "aaaaaaaaaaaaaaaaaaaaaaaaaaa";
    const version = "aaaaaaaaaaaaaaaaaaa";
    const credential = new DefaultAzureCredential();
    const client = new ComputeManagementClient(credential, subscriptionId);
    const result = await client.virtualMachineImages.get(
      location,
      publisherName,
      offer,
      skus,
      version
    );
    console.log(result);
  }
  
  virtualMachineImagesGetMaximumSetGen().catch(console.error);
  
  /**
   * This sample demonstrates how to Gets a virtual machine image.
   *
   * @summary Gets a virtual machine image.
   * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/VirtualMachineImages_Get_MinimumSet_Gen.json
   */
  async function virtualMachineImagesGetMinimumSetGen() {
    const subscriptionId = "{subscription-id}";
    const location = "aaaaaaaaaaaa";
    const publisherName = "aaaaaaaaaaa";
    const offer = "aa";
    const skus = "aaaaaaaaa";
    const version = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
    const credential = new DefaultAzureCredential();
    const client = new ComputeManagementClient(credential, subscriptionId);
    const result = await client.virtualMachineImages.get(
      location,
      publisherName,
      offer,
      skus,
      version
    );
    console.log(result);
  }
  
  virtualMachineImagesGetMinimumSetGen().catch(console.error);
  