Host Pool Args
data class HostPoolArgs(val customRdpProperties: Output<String>? = null, val description: Output<String>? = null, val friendlyName: Output<String>? = null, val loadBalancerType: Output<String>? = null, val location: Output<String>? = null, val maximumSessionsAllowed: Output<Int>? = null, val name: Output<String>? = null, val personalDesktopAssignmentType: Output<String>? = null, val preferredAppGroupType: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scheduledAgentUpdates: Output<HostPoolScheduledAgentUpdatesArgs>? = null, val startVmOnConnect: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null, val validateEnvironment: Output<Boolean>? = null) : ConvertibleToJava<HostPoolArgs>
Manages a Virtual Desktop Host Pool.
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.inputs.HostPoolScheduledAgentUpdatesArgs;
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()
.location("West Europe")
.build());
var exampleHostPool = new HostPool("exampleHostPool", HostPoolArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.friendlyName("pooleddepthfirst")
.validateEnvironment(true)
.startVmOnConnect(true)
.customRdpProperties("audiocapturemode:i:1;audiomode:i:0;")
.description("Acceptance Test: A pooled host pool - pooleddepthfirst")
.type("Pooled")
.maximumSessionsAllowed(50)
.loadBalancerType("DepthFirst")
.scheduledAgentUpdates(HostPoolScheduledAgentUpdatesArgs.builder()
.enabled(true)
.schedules(HostPoolScheduledAgentUpdatesScheduleArgs.builder()
.dayOfWeek("Saturday")
.hourOfDay(2)
.build())
.build())
.build());
}
}
Content copied to clipboard
Import
Virtual Desktop Host Pools can be imported using the resource id
, e.g. text
$ pulumi import azure:desktopvirtualization/hostPool:HostPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/hostPools/myhostpool
Content copied to clipboard
Constructors
Link copied to clipboard
fun HostPoolArgs(customRdpProperties: Output<String>? = null, description: Output<String>? = null, friendlyName: Output<String>? = null, loadBalancerType: Output<String>? = null, location: Output<String>? = null, maximumSessionsAllowed: Output<Int>? = null, name: Output<String>? = null, personalDesktopAssignmentType: Output<String>? = null, preferredAppGroupType: Output<String>? = null, resourceGroupName: Output<String>? = null, scheduledAgentUpdates: Output<HostPoolScheduledAgentUpdatesArgs>? = null, startVmOnConnect: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null, validateEnvironment: Output<Boolean>? = null)
Functions
Properties
Link copied to clipboard
A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values are BreadthFirst
, DepthFirst
and Persistent
. DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold. Persistent
should be used if the host pool type is Personal