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 Retrieves information about a gallery image definition.
   *
   * @summary Retrieves information about a gallery image definition.
   * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2021-10-01/examples/gallery/GetAGalleryImage.json
   */
  async function getAGalleryImage() {
    const subscriptionId = "{subscription-id}";
    const resourceGroupName = "myResourceGroup";
    const galleryName = "myGalleryName";
    const galleryImageName = "myGalleryImageName";
    const credential = new DefaultAzureCredential();
    const client = new ComputeManagementClient(credential, subscriptionId);
    const result = await client.galleryImages.get(resourceGroupName, galleryName, galleryImageName);
    console.log(result);
  }
  
  getAGalleryImage().catch(console.error);
  