GetSharedImageGallery

Use this data source to access information about an existing Shared Image Gallery.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Compute.GetSharedImageGallery.InvokeAsync(new Azure.Compute.GetSharedImageGalleryArgs
        {
            Name = "my-image-gallery",
            ResourceGroupName = "example-resources",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/compute"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := compute.LookupSharedImageGallery(ctx, &compute.LookupSharedImageGalleryArgs{
            Name:              "my-image-gallery",
            ResourceGroupName: "example-resources",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.compute.get_shared_image_gallery(name="my-image-gallery",
    resource_group_name="example-resources")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.compute.getSharedImageGallery({
    name: "my-image-gallery",
    resourceGroupName: "example-resources",
}, { async: true }));

Using GetSharedImageGallery

function getSharedImageGallery(args: GetSharedImageGalleryArgs, opts?: InvokeOptions): Promise<GetSharedImageGalleryResult>
function  get_shared_image_gallery(name=None, resource_group_name=None, opts=None)
func LookupSharedImageGallery(ctx *Context, args *LookupSharedImageGalleryArgs, opts ...InvokeOption) (*LookupSharedImageGalleryResult, error)

Note: This function is named LookupSharedImageGallery in the Go SDK.

public static class GetSharedImageGallery {
    public static Task<GetSharedImageGalleryResult> InvokeAsync(GetSharedImageGalleryArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the Shared Image Gallery.

ResourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

Name string

The name of the Shared Image Gallery.

ResourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

name string

The name of the Shared Image Gallery.

resourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

name str

The name of the Shared Image Gallery.

resource_group_name str

The name of the Resource Group in which the Shared Image Gallery exists.

GetSharedImageGallery Result

The following output properties are available:

Description string

A description for the Shared Image Gallery.

Id string

The provider-assigned unique ID for this managed resource.

Location string
Name string
ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags which are assigned to the Shared Image Gallery.

UniqueName string

The unique name assigned to the Shared Image Gallery.

Description string

A description for the Shared Image Gallery.

Id string

The provider-assigned unique ID for this managed resource.

Location string
Name string
ResourceGroupName string
Tags map[string]string

A mapping of tags which are assigned to the Shared Image Gallery.

UniqueName string

The unique name assigned to the Shared Image Gallery.

description string

A description for the Shared Image Gallery.

id string

The provider-assigned unique ID for this managed resource.

location string
name string
resourceGroupName string
tags {[key: string]: string}

A mapping of tags which are assigned to the Shared Image Gallery.

uniqueName string

The unique name assigned to the Shared Image Gallery.

description str

A description for the Shared Image Gallery.

id str

The provider-assigned unique ID for this managed resource.

location str
name str
resource_group_name str
tags Dict[str, str]

A mapping of tags which are assigned to the Shared Image Gallery.

unique_name str

The unique name assigned to the Shared Image Gallery.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.