ApplicationArgs

data class ApplicationArgs(val applicationGroupId: Output<String>? = null, val commandLineArgumentPolicy: Output<String>? = null, val commandLineArguments: Output<String>? = null, val description: Output<String>? = null, val friendlyName: Output<String>? = null, val iconIndex: Output<Int>? = null, val iconPath: Output<String>? = null, val name: Output<String>? = null, val path: Output<String>? = null, val showInPortal: Output<Boolean>? = null) : ConvertibleToJava<ApplicationArgs>

Manages a Virtual Desktop Application.

Example Usage

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.desktopvirtualization.HostPool;
import com.pulumi.azure.desktopvirtualization.HostPoolArgs;
import com.pulumi.azure.desktopvirtualization.ApplicationGroup;
import com.pulumi.azure.desktopvirtualization.ApplicationGroupArgs;
import com.pulumi.azure.desktopvirtualization.Application;
import com.pulumi.azure.desktopvirtualization.ApplicationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var pooledbreadthfirst = new HostPool("pooledbreadthfirst", HostPoolArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.type("Pooled")
.loadBalancerType("BreadthFirst")
.build());
var personalautomatic = new HostPool("personalautomatic", HostPoolArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.type("Personal")
.personalDesktopAssignmentType("Automatic")
.loadBalancerType("BreadthFirst")
.build());
var remoteapp = new ApplicationGroup("remoteapp", ApplicationGroupArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.type("RemoteApp")
.hostPoolId(pooledbreadthfirst.id())
.friendlyName("TestAppGroup")
.description("Acceptance Test: An application group")
.build());
var chrome = new Application("chrome", ApplicationArgs.builder()
.applicationGroupId(remoteapp.id())
.friendlyName("Google Chrome")
.description("Chromium based web browser")
.path("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe")
.commandLineArgumentPolicy("DoNotAllow")
.commandLineArguments("--incognito")
.showInPortal(false)
.iconPath("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe")
.iconIndex(0)
.build());
}
}

Import

Virtual Desktop Application can be imported using the resource id, e.g.

$ pulumi import azure:desktopvirtualization/application:Application example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/applicationGroups/myapplicationgroup/applications/myapplication

Constructors

Link copied to clipboard
fun ApplicationArgs(applicationGroupId: Output<String>? = null, commandLineArgumentPolicy: Output<String>? = null, commandLineArguments: Output<String>? = null, description: Output<String>? = null, friendlyName: Output<String>? = null, iconIndex: Output<Int>? = null, iconPath: Output<String>? = null, name: Output<String>? = null, path: Output<String>? = null, showInPortal: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ApplicationArgs

Properties

Link copied to clipboard
val applicationGroupId: Output<String>? = null

Resource ID for a Virtual Desktop Application Group to associate with the Virtual Desktop Application. Changing this forces a new resource to be created.

Link copied to clipboard
val commandLineArgumentPolicy: Output<String>? = null

Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. Possible values include: DoNotAllow, Allow, Require.

Link copied to clipboard
val commandLineArguments: Output<String>? = null

Command Line Arguments for Virtual Desktop Application.

Link copied to clipboard
val description: Output<String>? = null

Option to set a description for the Virtual Desktop Application.

Link copied to clipboard
val friendlyName: Output<String>? = null

Option to set a friendly name for the Virtual Desktop Application.

Link copied to clipboard
val iconIndex: Output<Int>? = null

The index of the icon you wish to use.

Link copied to clipboard
val iconPath: Output<String>? = null

Specifies the path for an icon which will be used for this Virtual Desktop Application.

Link copied to clipboard
val name: Output<String>? = null

The name of the Virtual Desktop Application. Changing the name forces a new resource to be created.

Link copied to clipboard
val path: Output<String>? = null

The file path location of the app on the Virtual Desktop OS.

Link copied to clipboard
val showInPortal: Output<Boolean>? = null

Specifies whether to show the RemoteApp program in the RD Web Access server.