Skip to content

azurermVirtualDesktopWorkspace

Manages a Virtual Desktop Workspace.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.provider.AzurermProvider(this, "azurerm", {
  features: [{}],
});
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "rg-example-virtualdesktop",
  }
);
new azurerm.virtualDesktopWorkspace.VirtualDesktopWorkspace(this, "workspace", {
  description: "A description of my workspace",
  friendly_name: "FriendlyName",
  location: azurermResourceGroupExample.location,
  name: "workspace",
  resource_group_name: azurermResourceGroupExample.name,
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Virtual Desktop Workspace. Changing this forces a new resource to be created.

  • resourceGroupName - (Required) The name of the resource group in which to create the Virtual Desktop Workspace. Changing this forces a new resource to be created.

  • location - (Required) The location/region where the Virtual Desktop Workspace is located. Changing the location/region forces a new resource to be created.

  • friendlyName - (Optional) A friendly name for the Virtual Desktop Workspace.

  • description - (Optional) A description for the Virtual Desktop Workspace.

  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Virtual Desktop Workspace.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 60 minutes) Used when creating the Virtual Desktop Workspace.
  • update - (Defaults to 60 minutes) Used when updating the Virtual Desktop Workspace.
  • read - (Defaults to 5 minutes) Used when retrieving the Virtual Desktop Workspace.
  • delete - (Defaults to 60 minutes) Used when deleting the Virtual Desktop Workspace.

Import

Virtual Desktop Workspaces can be imported using the resourceId, e.g.

terraform import azurerm_virtual_desktop_workspace.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/workspaces/myworkspace