Gallery In VMAccess Control Profile Args
data class GalleryInVMAccessControlProfileArgs(val galleryName: Output<String>? = null, val inVMAccessControlProfileName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<GalleryInVMAccessControlProfilePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<GalleryInVMAccessControlProfileArgs>
Specifies information about the gallery inVMAccessControlProfile that you want to create or update. Uses Azure REST API version 2024-03-03. In version 2.x of the Azure Native provider, it used API version 2024-03-03.
Example Usage
Create or update a gallery inVMAccessControlProfile.
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The name of the Shared Image Gallery in which the InVMAccessControlProfile is to be created.
Link copied to clipboard
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.
Link copied to clipboard
Describes the properties of a gallery inVMAccessControlProfile.
Link copied to clipboard
The name of the resource group.