GetSharedImage
Use this data source to access information about an existing Shared Image within a Shared Image Gallery.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Compute.GetSharedImage.InvokeAsync(new Azure.Compute.GetSharedImageArgs
{
GalleryName = "my-image-gallery",
Name = "my-image",
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.LookupSharedImage(ctx, &compute.LookupSharedImageArgs{
GalleryName: "my-image-gallery",
Name: "my-image",
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",
name="my-image",
resource_group_name="example-resources")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.compute.getSharedImage({
galleryName: "my-image-gallery",
name: "my-image",
resourceGroupName: "example-resources",
}, { async: true }));Using GetSharedImage
function getSharedImage(args: GetSharedImageArgs, opts?: InvokeOptions): Promise<GetSharedImageResult>function get_shared_image(gallery_name=None, name=None, resource_group_name=None, opts=None)func LookupSharedImage(ctx *Context, args *LookupSharedImageArgs, opts ...InvokeOption) (*LookupSharedImageResult, error)Note: This function is named
LookupSharedImagein the Go SDK.
public static class GetSharedImage {
public static Task<GetSharedImageResult> InvokeAsync(GetSharedImageArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Gallery
Name string The name of the Shared Image Gallery in which the Shared Image exists.
- Name string
The name of the Shared Image.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- Gallery
Name string The name of the Shared Image Gallery in which the Shared Image exists.
- Name string
The name of the Shared Image.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- gallery
Name string The name of the Shared Image Gallery in which the Shared Image exists.
- name string
The name of the Shared Image.
- resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- gallery_
name str The name of the Shared Image Gallery in which the Shared Image exists.
- name str
The name of the Shared Image.
- resource_
group_ strname The name of the Resource Group in which the Shared Image Gallery exists.
GetSharedImage Result
The following output properties are available:
- Description string
The description of this Shared Image.
- Eula string
The End User Licence Agreement for the Shared Image.
- Gallery
Name string - Hyper
VGeneration string The generation of HyperV that the Virtual Machine used to create the Shared Image is based on.
- Id string
The provider-assigned unique ID for this managed resource.
- Identifiers
List<Get
Shared Image Identifier> An
identifierblock as defined below.- Location string
The supported Azure location where the Shared Image Gallery exists.
- Name string
- Os
Type string The type of Operating System present in this Shared Image.
- Privacy
Statement stringUri The URI containing the Privacy Statement for this Shared Image.
- Release
Note stringUri The URI containing the Release Notes for this Shared Image.
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to the Shared Image.
- Description string
The description of this Shared Image.
- Eula string
The End User Licence Agreement for the Shared Image.
- Gallery
Name string - Hyper
VGeneration string The generation of HyperV that the Virtual Machine used to create the Shared Image is based on.
- Id string
The provider-assigned unique ID for this managed resource.
- Identifiers
[]Get
Shared Image Identifier An
identifierblock as defined below.- Location string
The supported Azure location where the Shared Image Gallery exists.
- Name string
- Os
Type string The type of Operating System present in this Shared Image.
- Privacy
Statement stringUri The URI containing the Privacy Statement for this Shared Image.
- Release
Note stringUri The URI containing the Release Notes for this Shared Image.
- Resource
Group stringName - map[string]string
A mapping of tags assigned to the Shared Image.
- description string
The description of this Shared Image.
- eula string
The End User Licence Agreement for the Shared Image.
- gallery
Name string - hyper
VGeneration string The generation of HyperV that the Virtual Machine used to create the Shared Image is based on.
- id string
The provider-assigned unique ID for this managed resource.
- identifiers
Get
Shared Image Identifier[] An
identifierblock as defined below.- location string
The supported Azure location where the Shared Image Gallery exists.
- name string
- os
Type string The type of Operating System present in this Shared Image.
- privacy
Statement stringUri The URI containing the Privacy Statement for this Shared Image.
- release
Note stringUri The URI containing the Release Notes for this Shared Image.
- resource
Group stringName - {[key: string]: string}
A mapping of tags assigned to the Shared Image.
- description str
The description of this Shared Image.
- eula str
The End User Licence Agreement for the Shared Image.
- gallery_
name str - hyper_
v_ strgeneration The generation of HyperV that the Virtual Machine used to create the Shared Image is based on.
- id str
The provider-assigned unique ID for this managed resource.
- identifiers
List[Get
Shared Image Identifier] An
identifierblock as defined below.- location str
The supported Azure location where the Shared Image Gallery exists.
- name str
- os_
type str The type of Operating System present in this Shared Image.
- privacy_
statement_ struri The URI containing the Privacy Statement for this Shared Image.
- release_
note_ struri The URI containing the Release Notes for this Shared Image.
- resource_
group_ strname - Dict[str, str]
A mapping of tags assigned to the Shared Image.
Supporting Types
GetSharedImageIdentifier
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.