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.77.0 published on Thursday, Dec 12, 2024 by Pulumi

azure-native.compute.GalleryInVMAccessControlProfile

Explore with Pulumi AI

azure-native logo
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.77.0 published on Thursday, Dec 12, 2024 by Pulumi

    Specifies information about the gallery inVMAccessControlProfile that you want to create or update. 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",
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    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")
    
    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",
    });
    
    resources:
      galleryInVMAccessControlProfile:
        type: azure-native:compute:GalleryInVMAccessControlProfile
        properties:
          galleryName: myGalleryName
          inVMAccessControlProfileName: myInVMAccessControlProfileName
          location: West US
          properties:
            applicableHostEndpoint: WireServer
            osType: Linux
          resourceGroupName: myResourceGroup
    

    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 string
    The unique name of the resource.
    args GalleryInVMAccessControlProfileArgs
    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 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 string
    The unique name of the resource.
    args GalleryInVMAccessControlProfileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GalleryInVMAccessControlProfileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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" },
        },
    });
    
    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"),
    	},
    })
    
    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());
    
    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",
        })
    
    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",
        },
    });
    
    type: azure-native:compute:GalleryInVMAccessControlProfile
    properties:
        galleryName: string
        inVMAccessControlProfileName: string
        location: string
        properties:
            applicableHostEndpoint: WireServer
            description: string
            osType: Windows
        resourceGroupName: string
        tags:
            string: string
    

    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 string
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    ResourceGroupName string
    The name of the resource group.
    InVMAccessControlProfileName 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 string
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    ResourceGroupName string
    The name of the resource group.
    InVMAccessControlProfileName 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 String
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    resourceGroupName String
    The name of the resource group.
    inVMAccessControlProfileName 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 string
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    resourceGroupName string
    The name of the resource group.
    inVMAccessControlProfileName 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 str
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    resource_group_name str
    The name of the resource group.
    in_vm_access_control_profile_name 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 String
    The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
    resourceGroupName String
    The name of the resource group.
    inVMAccessControlProfileName 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 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 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 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 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 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 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 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 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 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 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 "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 "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 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 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 string
    The provisioning state, which only appears in the response.
    Description string
    The description of this gallery inVMAccessControlProfile resources. This property is updatable.
    ApplicableHostEndpoint 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 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 string
    The provisioning state, which only appears in the response.
    Description string
    The description of this gallery inVMAccessControlProfile resources. This property is updatable.
    applicableHostEndpoint 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 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 String
    The provisioning state, which only appears in the response.
    description String
    The description of this gallery inVMAccessControlProfile resources. This property is updatable.
    applicableHostEndpoint 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 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 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 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 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 str
    The provisioning state, which only appears in the response.
    description str
    The description of this gallery inVMAccessControlProfile resources. This property is updatable.
    applicableHostEndpoint 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 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 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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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.77.0 published on Thursday, Dec 12, 2024 by Pulumi