We recommend using Azure Native.
azure.stack.HciMarketplaceGalleryImage
Manages an Azure Stack HCI Marketplace Gallery Image.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "examples",
    location: "West Europe",
});
const example = azure.core.getClientConfig({});
// service principal of 'Microsoft.AzureStackHCI Resource Provider'
const hciRp = azuread.getServicePrincipal({
    clientId: "1412d89f-b8a8-4111-b4fd-e82905cbd85d",
});
const exampleAssignment = new azure.authorization.Assignment("example", {
    scope: exampleResourceGroup.id,
    roleDefinitionName: "Azure Connected Machine Resource Manager",
    principalId: hciRp.then(hciRp => hciRp.objectId),
});
const exampleHciMarketplaceGalleryImage = new azure.stack.HciMarketplaceGalleryImage("example", {
    name: "example-mgi",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1",
    hypervGeneration: "V2",
    osType: "Windows",
    version: "20348.2655.240905",
    identifier: {
        publisher: "MicrosoftWindowsServer",
        offer: "WindowsServer",
        sku: "2022-datacenter-azure-edition-core",
    },
    tags: {
        foo: "bar",
        env: "example",
    },
});
import pulumi
import pulumi_azure as azure
import pulumi_azuread as azuread
example_resource_group = azure.core.ResourceGroup("example",
    name="examples",
    location="West Europe")
example = azure.core.get_client_config()
# service principal of 'Microsoft.AzureStackHCI Resource Provider'
hci_rp = azuread.get_service_principal(client_id="1412d89f-b8a8-4111-b4fd-e82905cbd85d")
example_assignment = azure.authorization.Assignment("example",
    scope=example_resource_group.id,
    role_definition_name="Azure Connected Machine Resource Manager",
    principal_id=hci_rp.object_id)
example_hci_marketplace_gallery_image = azure.stack.HciMarketplaceGalleryImage("example",
    name="example-mgi",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1",
    hyperv_generation="V2",
    os_type="Windows",
    version="20348.2655.240905",
    identifier={
        "publisher": "MicrosoftWindowsServer",
        "offer": "WindowsServer",
        "sku": "2022-datacenter-azure-edition-core",
    },
    tags={
        "foo": "bar",
        "env": "example",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack"
	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("examples"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = core.GetClientConfig(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		// service principal of 'Microsoft.AzureStackHCI Resource Provider'
		hciRp, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
			ClientId: pulumi.StringRef("1412d89f-b8a8-4111-b4fd-e82905cbd85d"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
			Scope:              exampleResourceGroup.ID(),
			RoleDefinitionName: pulumi.String("Azure Connected Machine Resource Manager"),
			PrincipalId:        pulumi.String(hciRp.ObjectId),
		})
		if err != nil {
			return err
		}
		_, err = stack.NewHciMarketplaceGalleryImage(ctx, "example", &stack.HciMarketplaceGalleryImageArgs{
			Name:              pulumi.String("example-mgi"),
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			CustomLocationId:  pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"),
			HypervGeneration:  pulumi.String("V2"),
			OsType:            pulumi.String("Windows"),
			Version:           pulumi.String("20348.2655.240905"),
			Identifier: &stack.HciMarketplaceGalleryImageIdentifierArgs{
				Publisher: pulumi.String("MicrosoftWindowsServer"),
				Offer:     pulumi.String("WindowsServer"),
				Sku:       pulumi.String("2022-datacenter-azure-edition-core"),
			},
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"env": pulumi.String("example"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "examples",
        Location = "West Europe",
    });
    var example = Azure.Core.GetClientConfig.Invoke();
    // service principal of 'Microsoft.AzureStackHCI Resource Provider'
    var hciRp = AzureAD.GetServicePrincipal.Invoke(new()
    {
        ClientId = "1412d89f-b8a8-4111-b4fd-e82905cbd85d",
    });
    var exampleAssignment = new Azure.Authorization.Assignment("example", new()
    {
        Scope = exampleResourceGroup.Id,
        RoleDefinitionName = "Azure Connected Machine Resource Manager",
        PrincipalId = hciRp.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
    });
    var exampleHciMarketplaceGalleryImage = new Azure.Stack.HciMarketplaceGalleryImage("example", new()
    {
        Name = "example-mgi",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        CustomLocationId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1",
        HypervGeneration = "V2",
        OsType = "Windows",
        Version = "20348.2655.240905",
        Identifier = new Azure.Stack.Inputs.HciMarketplaceGalleryImageIdentifierArgs
        {
            Publisher = "MicrosoftWindowsServer",
            Offer = "WindowsServer",
            Sku = "2022-datacenter-azure-edition-core",
        },
        Tags = 
        {
            { "foo", "bar" },
            { "env", "example" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
import com.pulumi.azure.stack.HciMarketplaceGalleryImage;
import com.pulumi.azure.stack.HciMarketplaceGalleryImageArgs;
import com.pulumi.azure.stack.inputs.HciMarketplaceGalleryImageIdentifierArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
            .name("examples")
            .location("West Europe")
            .build());
        final var example = CoreFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
        // service principal of 'Microsoft.AzureStackHCI Resource Provider'
        final var hciRp = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
            .clientId("1412d89f-b8a8-4111-b4fd-e82905cbd85d")
            .build());
        var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
            .scope(exampleResourceGroup.id())
            .roleDefinitionName("Azure Connected Machine Resource Manager")
            .principalId(hciRp.objectId())
            .build());
        var exampleHciMarketplaceGalleryImage = new HciMarketplaceGalleryImage("exampleHciMarketplaceGalleryImage", HciMarketplaceGalleryImageArgs.builder()
            .name("example-mgi")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .customLocationId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1")
            .hypervGeneration("V2")
            .osType("Windows")
            .version("20348.2655.240905")
            .identifier(HciMarketplaceGalleryImageIdentifierArgs.builder()
                .publisher("MicrosoftWindowsServer")
                .offer("WindowsServer")
                .sku("2022-datacenter-azure-edition-core")
                .build())
            .tags(Map.ofEntries(
                Map.entry("foo", "bar"),
                Map.entry("env", "example")
            ))
            .build());
    }
}
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: examples
      location: West Europe
  exampleAssignment:
    type: azure:authorization:Assignment
    name: example
    properties:
      scope: ${exampleResourceGroup.id}
      roleDefinitionName: Azure Connected Machine Resource Manager
      principalId: ${hciRp.objectId}
  exampleHciMarketplaceGalleryImage:
    type: azure:stack:HciMarketplaceGalleryImage
    name: example
    properties:
      name: example-mgi
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      customLocationId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1
      hypervGeneration: V2
      osType: Windows
      version: 20348.2655.240905
      identifier:
        publisher: MicrosoftWindowsServer
        offer: WindowsServer
        sku: 2022-datacenter-azure-edition-core
      tags:
        foo: bar
        env: example
variables:
  example:
    fn::invoke:
      function: azure:core:getClientConfig
      arguments: {}
  # service principal of 'Microsoft.AzureStackHCI Resource Provider'
  hciRp:
    fn::invoke:
      function: azuread:getServicePrincipal
      arguments:
        clientId: 1412d89f-b8a8-4111-b4fd-e82905cbd85d
API Providers
This resource uses the following Azure API Providers:
- Microsoft.AzureStackHCI- 2024-01-01
Create HciMarketplaceGalleryImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HciMarketplaceGalleryImage(name: string, args: HciMarketplaceGalleryImageArgs, opts?: CustomResourceOptions);@overload
def HciMarketplaceGalleryImage(resource_name: str,
                               args: HciMarketplaceGalleryImageArgs,
                               opts: Optional[ResourceOptions] = None)
@overload
def HciMarketplaceGalleryImage(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               custom_location_id: Optional[str] = None,
                               hyperv_generation: Optional[str] = None,
                               identifier: Optional[HciMarketplaceGalleryImageIdentifierArgs] = None,
                               os_type: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               version: Optional[str] = None,
                               location: Optional[str] = None,
                               name: Optional[str] = None,
                               storage_path_id: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None)func NewHciMarketplaceGalleryImage(ctx *Context, name string, args HciMarketplaceGalleryImageArgs, opts ...ResourceOption) (*HciMarketplaceGalleryImage, error)public HciMarketplaceGalleryImage(string name, HciMarketplaceGalleryImageArgs args, CustomResourceOptions? opts = null)
public HciMarketplaceGalleryImage(String name, HciMarketplaceGalleryImageArgs args)
public HciMarketplaceGalleryImage(String name, HciMarketplaceGalleryImageArgs args, CustomResourceOptions options)
type: azure:stack:HciMarketplaceGalleryImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HciMarketplaceGalleryImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HciMarketplaceGalleryImageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HciMarketplaceGalleryImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HciMarketplaceGalleryImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HciMarketplaceGalleryImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hciMarketplaceGalleryImageResource = new Azure.Stack.HciMarketplaceGalleryImage("hciMarketplaceGalleryImageResource", new()
{
    CustomLocationId = "string",
    HypervGeneration = "string",
    Identifier = new Azure.Stack.Inputs.HciMarketplaceGalleryImageIdentifierArgs
    {
        Offer = "string",
        Publisher = "string",
        Sku = "string",
    },
    OsType = "string",
    ResourceGroupName = "string",
    Version = "string",
    Location = "string",
    Name = "string",
    StoragePathId = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := stack.NewHciMarketplaceGalleryImage(ctx, "hciMarketplaceGalleryImageResource", &stack.HciMarketplaceGalleryImageArgs{
	CustomLocationId: pulumi.String("string"),
	HypervGeneration: pulumi.String("string"),
	Identifier: &stack.HciMarketplaceGalleryImageIdentifierArgs{
		Offer:     pulumi.String("string"),
		Publisher: pulumi.String("string"),
		Sku:       pulumi.String("string"),
	},
	OsType:            pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	Version:           pulumi.String("string"),
	Location:          pulumi.String("string"),
	Name:              pulumi.String("string"),
	StoragePathId:     pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var hciMarketplaceGalleryImageResource = new HciMarketplaceGalleryImage("hciMarketplaceGalleryImageResource", HciMarketplaceGalleryImageArgs.builder()
    .customLocationId("string")
    .hypervGeneration("string")
    .identifier(HciMarketplaceGalleryImageIdentifierArgs.builder()
        .offer("string")
        .publisher("string")
        .sku("string")
        .build())
    .osType("string")
    .resourceGroupName("string")
    .version("string")
    .location("string")
    .name("string")
    .storagePathId("string")
    .tags(Map.of("string", "string"))
    .build());
hci_marketplace_gallery_image_resource = azure.stack.HciMarketplaceGalleryImage("hciMarketplaceGalleryImageResource",
    custom_location_id="string",
    hyperv_generation="string",
    identifier={
        "offer": "string",
        "publisher": "string",
        "sku": "string",
    },
    os_type="string",
    resource_group_name="string",
    version="string",
    location="string",
    name="string",
    storage_path_id="string",
    tags={
        "string": "string",
    })
const hciMarketplaceGalleryImageResource = new azure.stack.HciMarketplaceGalleryImage("hciMarketplaceGalleryImageResource", {
    customLocationId: "string",
    hypervGeneration: "string",
    identifier: {
        offer: "string",
        publisher: "string",
        sku: "string",
    },
    osType: "string",
    resourceGroupName: "string",
    version: "string",
    location: "string",
    name: "string",
    storagePathId: "string",
    tags: {
        string: "string",
    },
});
type: azure:stack:HciMarketplaceGalleryImage
properties:
    customLocationId: string
    hypervGeneration: string
    identifier:
        offer: string
        publisher: string
        sku: string
    location: string
    name: string
    osType: string
    resourceGroupName: string
    storagePathId: string
    tags:
        string: string
    version: string
HciMarketplaceGalleryImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HciMarketplaceGalleryImage resource accepts the following input properties:
- CustomLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- HypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- OsType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- StoragePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- CustomLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- HypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Identifier
HciMarketplace Gallery Image Identifier Args 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- OsType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- StoragePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- map[string]string
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- customLocation StringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration String
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType String
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- version String
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location String
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name String
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath StringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- customLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- custom_location_ strid 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hyperv_generation str
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier Args 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- os_type str
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resource_group_ strname 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- version str
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location str
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name str
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storage_path_ strid 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- customLocation StringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration String
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier Property Map
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType String
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- version String
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location String
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name String
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath StringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Map<String>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
Outputs
All input properties are implicitly available as output properties. Additionally, the HciMarketplaceGalleryImage resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing HciMarketplaceGalleryImage Resource
Get an existing HciMarketplaceGalleryImage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HciMarketplaceGalleryImageState, opts?: CustomResourceOptions): HciMarketplaceGalleryImage@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        custom_location_id: Optional[str] = None,
        hyperv_generation: Optional[str] = None,
        identifier: Optional[HciMarketplaceGalleryImageIdentifierArgs] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        os_type: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        storage_path_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        version: Optional[str] = None) -> HciMarketplaceGalleryImagefunc GetHciMarketplaceGalleryImage(ctx *Context, name string, id IDInput, state *HciMarketplaceGalleryImageState, opts ...ResourceOption) (*HciMarketplaceGalleryImage, error)public static HciMarketplaceGalleryImage Get(string name, Input<string> id, HciMarketplaceGalleryImageState? state, CustomResourceOptions? opts = null)public static HciMarketplaceGalleryImage get(String name, Output<String> id, HciMarketplaceGalleryImageState state, CustomResourceOptions options)resources:  _:    type: azure:stack:HciMarketplaceGalleryImage    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- CustomLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- HypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- OsType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- StoragePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- Version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- CustomLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- HypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Identifier
HciMarketplace Gallery Image Identifier Args 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- OsType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- ResourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- StoragePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- map[string]string
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- Version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- customLocation StringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration String
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location String
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name String
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType String
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath StringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- version String
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- customLocation stringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration string
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location string
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name string
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType string
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup stringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath stringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- version string
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- custom_location_ strid 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hyperv_generation str
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier
HciMarketplace Gallery Image Identifier Args 
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location str
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name str
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- os_type str
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resource_group_ strname 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storage_path_ strid 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- version str
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- customLocation StringId 
- The ID of the Custom Location where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new resource to be created.
- hypervGeneration String
- The hypervisor generation of the Azure Stack HCI Marketplace Gallery Image. Possible values are V1andV2. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- identifier Property Map
- An identifierblock as defined below. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- location String
- The Azure Region where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- name String
- The name which should be used for this Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- osType String
- The Operating System type of the Azure Stack HCI Marketplace Gallery Image. Possible values are WindowsandLinux. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- resourceGroup StringName 
- The name of the Resource Group where the Azure Stack HCI Marketplace Gallery Image should exist. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- storagePath StringId 
- The ID of the Azure Stack HCI Storage Path used for this Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.
- Map<String>
- A mapping of tags which should be assigned to the Azure Stack HCI Marketplace Gallery Image.
- version String
- The version of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
Supporting Types
HciMarketplaceGalleryImageIdentifier, HciMarketplaceGalleryImageIdentifierArgs          
- Offer string
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Publisher string
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Sku string
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Offer string
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Publisher string
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- Sku string
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- offer String
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- publisher String
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- sku String
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- offer string
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- publisher string
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- sku string
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- offer str
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- publisher str
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- sku str
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- offer String
- The offer of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- publisher String
- The publisher of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
- sku String
- The sku of the Azure Stack HCI Marketplace Gallery Image. Changing this forces a new Azure Stack HCI Marketplace Gallery Image to be created.
Import
Azure Stack HCI Marketplace Gallery Images can be imported using the resource id, e.g.
$ pulumi import azure:stack/hciMarketplaceGalleryImage:HciMarketplaceGalleryImage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/image1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.
