1. Packages
  2. Azure Native
  3. API Docs
  4. compute
  5. GalleryInVMAccessControlProfile
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.compute.GalleryInVMAccessControlProfile

Explore with Pulumi AI

Specifies information about the gallery inVMAccessControlProfile that you want to create or update.

Uses Azure REST API version 2024-03-03.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var galleryInVMAccessControlProfile = new AzureNative.Compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfile", new()
    {
        GalleryName = "myGalleryName",
        InVMAccessControlProfileName = "myInVMAccessControlProfileName",
        Location = "West US",
        Properties = new AzureNative.Compute.Inputs.GalleryInVMAccessControlProfilePropertiesArgs
        {
            ApplicableHostEndpoint = AzureNative.Compute.EndpointTypes.WireServer,
            OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
        },
        ResourceGroupName = "myResourceGroup",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.NewGalleryInVMAccessControlProfile(ctx, "galleryInVMAccessControlProfile", &compute.GalleryInVMAccessControlProfileArgs{
			GalleryName:                  pulumi.String("myGalleryName"),
			InVMAccessControlProfileName: pulumi.String("myInVMAccessControlProfileName"),
			Location:                     pulumi.String("West US"),
			Properties: &compute.GalleryInVMAccessControlProfilePropertiesArgs{
				ApplicableHostEndpoint: compute.EndpointTypesWireServer,
				OsType:                 compute.OperatingSystemTypesLinux,
			},
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryInVMAccessControlProfile;
import com.pulumi.azurenative.compute.GalleryInVMAccessControlProfileArgs;
import com.pulumi.azurenative.compute.inputs.GalleryInVMAccessControlProfilePropertiesArgs;
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 galleryInVMAccessControlProfile = new GalleryInVMAccessControlProfile("galleryInVMAccessControlProfile", GalleryInVMAccessControlProfileArgs.builder()
            .galleryName("myGalleryName")
            .inVMAccessControlProfileName("myInVMAccessControlProfileName")
            .location("West US")
            .properties(GalleryInVMAccessControlProfilePropertiesArgs.builder()
                .applicableHostEndpoint("WireServer")
                .osType("Linux")
                .build())
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const galleryInVMAccessControlProfile = new azure_native.compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfile", {
    galleryName: "myGalleryName",
    inVMAccessControlProfileName: "myInVMAccessControlProfileName",
    location: "West US",
    properties: {
        applicableHostEndpoint: azure_native.compute.EndpointTypes.WireServer,
        osType: azure_native.compute.OperatingSystemTypes.Linux,
    },
    resourceGroupName: "myResourceGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

gallery_in_vm_access_control_profile = azure_native.compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfile",
    gallery_name="myGalleryName",
    in_vm_access_control_profile_name="myInVMAccessControlProfileName",
    location="West US",
    properties={
        "applicable_host_endpoint": azure_native.compute.EndpointTypes.WIRE_SERVER,
        "os_type": azure_native.compute.OperatingSystemTypes.LINUX,
    },
    resource_group_name="myResourceGroup")
Copy
resources:
  galleryInVMAccessControlProfile:
    type: azure-native:compute:GalleryInVMAccessControlProfile
    properties:
      galleryName: myGalleryName
      inVMAccessControlProfileName: myInVMAccessControlProfileName
      location: West US
      properties:
        applicableHostEndpoint: WireServer
        osType: Linux
      resourceGroupName: myResourceGroup
Copy

Create GalleryInVMAccessControlProfile Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new GalleryInVMAccessControlProfile(name: string, args: GalleryInVMAccessControlProfileArgs, opts?: CustomResourceOptions);
@overload
def GalleryInVMAccessControlProfile(resource_name: str,
                                    args: GalleryInVMAccessControlProfileArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def GalleryInVMAccessControlProfile(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    gallery_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    in_vm_access_control_profile_name: Optional[str] = None,
                                    location: Optional[str] = None,
                                    properties: Optional[GalleryInVMAccessControlProfilePropertiesArgs] = None,
                                    tags: Optional[Mapping[str, str]] = None)
func NewGalleryInVMAccessControlProfile(ctx *Context, name string, args GalleryInVMAccessControlProfileArgs, opts ...ResourceOption) (*GalleryInVMAccessControlProfile, error)
public GalleryInVMAccessControlProfile(string name, GalleryInVMAccessControlProfileArgs args, CustomResourceOptions? opts = null)
public GalleryInVMAccessControlProfile(String name, GalleryInVMAccessControlProfileArgs args)
public GalleryInVMAccessControlProfile(String name, GalleryInVMAccessControlProfileArgs args, CustomResourceOptions options)
type: azure-native:compute:GalleryInVMAccessControlProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GalleryInVMAccessControlProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GalleryInVMAccessControlProfileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GalleryInVMAccessControlProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GalleryInVMAccessControlProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GalleryInVMAccessControlProfileArgs
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 galleryInVMAccessControlProfileResource = new AzureNative.Compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfileResource", new()
{
    GalleryName = "string",
    ResourceGroupName = "string",
    InVMAccessControlProfileName = "string",
    Location = "string",
    Properties = new AzureNative.Compute.Inputs.GalleryInVMAccessControlProfilePropertiesArgs
    {
        ApplicableHostEndpoint = AzureNative.Compute.EndpointTypes.WireServer,
        OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
        Description = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := compute.NewGalleryInVMAccessControlProfile(ctx, "galleryInVMAccessControlProfileResource", &compute.GalleryInVMAccessControlProfileArgs{
	GalleryName:                  pulumi.String("string"),
	ResourceGroupName:            pulumi.String("string"),
	InVMAccessControlProfileName: pulumi.String("string"),
	Location:                     pulumi.String("string"),
	Properties: &compute.GalleryInVMAccessControlProfilePropertiesArgs{
		ApplicableHostEndpoint: compute.EndpointTypesWireServer,
		OsType:                 compute.OperatingSystemTypesWindows,
		Description:            pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var galleryInVMAccessControlProfileResource = new GalleryInVMAccessControlProfile("galleryInVMAccessControlProfileResource", GalleryInVMAccessControlProfileArgs.builder()
    .galleryName("string")
    .resourceGroupName("string")
    .inVMAccessControlProfileName("string")
    .location("string")
    .properties(GalleryInVMAccessControlProfilePropertiesArgs.builder()
        .applicableHostEndpoint("WireServer")
        .osType("Windows")
        .description("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
Copy
gallery_in_vm_access_control_profile_resource = azure_native.compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfileResource",
    gallery_name="string",
    resource_group_name="string",
    in_vm_access_control_profile_name="string",
    location="string",
    properties={
        "applicable_host_endpoint": azure_native.compute.EndpointTypes.WIRE_SERVER,
        "os_type": azure_native.compute.OperatingSystemTypes.WINDOWS,
        "description": "string",
    },
    tags={
        "string": "string",
    })
Copy
const galleryInVMAccessControlProfileResource = new azure_native.compute.GalleryInVMAccessControlProfile("galleryInVMAccessControlProfileResource", {
    galleryName: "string",
    resourceGroupName: "string",
    inVMAccessControlProfileName: "string",
    location: "string",
    properties: {
        applicableHostEndpoint: azure_native.compute.EndpointTypes.WireServer,
        osType: azure_native.compute.OperatingSystemTypes.Windows,
        description: "string",
    },
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:compute:GalleryInVMAccessControlProfile
properties:
    galleryName: string
    inVMAccessControlProfileName: string
    location: string
    properties:
        applicableHostEndpoint: WireServer
        description: string
        osType: Windows
    resourceGroupName: string
    tags:
        string: string
Copy

GalleryInVMAccessControlProfile 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 GalleryInVMAccessControlProfile resource accepts the following input properties:

GalleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
InVMAccessControlProfileName Changes to this property will trigger replacement. string
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
Location string
Resource location
Properties Pulumi.AzureNative.Compute.Inputs.GalleryInVMAccessControlProfileProperties
Describes the properties of a gallery inVMAccessControlProfile.
Tags Dictionary<string, string>
Resource tags
GalleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
InVMAccessControlProfileName Changes to this property will trigger replacement. string
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
Location string
Resource location
Properties GalleryInVMAccessControlProfilePropertiesArgs
Describes the properties of a gallery inVMAccessControlProfile.
Tags map[string]string
Resource tags
galleryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
inVMAccessControlProfileName Changes to this property will trigger replacement. String
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
location String
Resource location
properties GalleryInVMAccessControlProfileProperties
Describes the properties of a gallery inVMAccessControlProfile.
tags Map<String,String>
Resource tags
galleryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
inVMAccessControlProfileName Changes to this property will trigger replacement. string
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
location string
Resource location
properties GalleryInVMAccessControlProfileProperties
Describes the properties of a gallery inVMAccessControlProfile.
tags {[key: string]: string}
Resource tags
gallery_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
in_vm_access_control_profile_name Changes to this property will trigger replacement. str
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
location str
Resource location
properties GalleryInVMAccessControlProfilePropertiesArgs
Describes the properties of a gallery inVMAccessControlProfile.
tags Mapping[str, str]
Resource tags
galleryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
inVMAccessControlProfileName Changes to this property will trigger replacement. String
The name of the gallery inVMAccessControlProfile to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
location String
Resource location
properties Property Map
Describes the properties of a gallery inVMAccessControlProfile.
tags Map<String>
Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the GalleryInVMAccessControlProfile resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
Type string
Resource type
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
Type string
Resource type
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name
type String
Resource type
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name
type string
Resource type
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name
type str
Resource type
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name
type String
Resource type

Supporting Types

EndpointTypes
, EndpointTypesArgs

WireServer
WireServer
IMDS
IMDS
EndpointTypesWireServer
WireServer
EndpointTypesIMDS
IMDS
WireServer
WireServer
IMDS
IMDS
WireServer
WireServer
IMDS
IMDS
WIRE_SERVER
WireServer
IMDS
IMDS
"WireServer"
WireServer
"IMDS"
IMDS

GalleryInVMAccessControlProfileProperties
, GalleryInVMAccessControlProfilePropertiesArgs

ApplicableHostEndpoint This property is required. Pulumi.AzureNative.Compute.EndpointTypes
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
OsType This property is required. Pulumi.AzureNative.Compute.OperatingSystemTypes
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
Description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
ApplicableHostEndpoint This property is required. EndpointTypes
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
OsType This property is required. OperatingSystemTypes
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
Description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. EndpointTypes
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. OperatingSystemTypes
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
description String
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. EndpointTypes
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. OperatingSystemTypes
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicable_host_endpoint This property is required. EndpointTypes
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
os_type This property is required. OperatingSystemTypes
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
description str
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. "WireServer" | "IMDS"
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. "Windows" | "Linux"
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
description String
The description of this gallery inVMAccessControlProfile resources. This property is updatable.

GalleryInVMAccessControlProfilePropertiesResponse
, GalleryInVMAccessControlProfilePropertiesResponseArgs

ApplicableHostEndpoint This property is required. string
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
OsType This property is required. string
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
ProvisioningState This property is required. string
The provisioning state, which only appears in the response.
Description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
ApplicableHostEndpoint This property is required. string
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
OsType This property is required. string
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
ProvisioningState This property is required. string
The provisioning state, which only appears in the response.
Description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. String
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. String
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
provisioningState This property is required. String
The provisioning state, which only appears in the response.
description String
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. string
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. string
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
provisioningState This property is required. string
The provisioning state, which only appears in the response.
description string
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicable_host_endpoint This property is required. str
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
os_type This property is required. str
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
provisioning_state This property is required. str
The provisioning state, which only appears in the response.
description str
The description of this gallery inVMAccessControlProfile resources. This property is updatable.
applicableHostEndpoint This property is required. String
This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'
osType This property is required. String
This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'
provisioningState This property is required. String
The provisioning state, which only appears in the response.
description String
The description of this gallery inVMAccessControlProfile resources. This property is updatable.

OperatingSystemTypes
, OperatingSystemTypesArgs

Windows
Windows
Linux
Linux
OperatingSystemTypesWindows
Windows
OperatingSystemTypesLinux
Linux
Windows
Windows
Linux
Linux
Windows
Windows
Linux
Linux
WINDOWS
Windows
LINUX
Linux
"Windows"
Windows
"Linux"
Linux

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:GalleryInVMAccessControlProfile myInVMAccessControlProfileName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/inVMAccessControlProfiles/{inVMAccessControlProfileName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0