azurermDevTestLab
Manages a Dev Test Lab.
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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermDevTestLabExample = new azurerm.devTestLab.DevTestLab(
this,
"example_1",
{
location: azurermResourceGroupExample.location,
name: "example-devtestlab",
resource_group_name: azurermResourceGroupExample.name,
tags: {
Sydney: "Australia",
},
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermDevTestLabExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of the Dev Test Lab. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the resource group under which the Dev Test Lab resource has to be created. Changing this forces a new resource to be created. -
location
- (Required) Specifies the supported Azure location where the Dev Test Lab should exist. Changing this forces a new resource to be created. -
storageType
- (Optional) The type of storage used by the Dev Test Lab. Possible values arestandard
andpremium
. Defaults topremium
.
-> Note: storageType
has been deprecated as the API no longer supports it and will be removed in Version 4.0 of the provider.
tags
- (Optional) A mapping of tags to assign to the resource.
Attributes Reference
The following attributes are exported:
-
id
- The ID of the Dev Test Lab. -
artifactsStorageAccountId
- The ID of the Storage Account used for Artifact Storage. -
defaultStorageAccountId
- The ID of the Default Storage Account for this Dev Test Lab. -
defaultPremiumStorageAccountId
- The ID of the Default Premium Storage Account for this Dev Test Lab. -
keyVaultId
- The ID of the Key used for this Dev Test Lab. -
premiumDataDiskStorageAccountId
- The ID of the Storage Account used for Storage of Premium Data Disk. -
uniqueIdentifier
- The unique immutable identifier of the Dev Test Lab.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the DevTest Lab.update
- (Defaults to 30 minutes) Used when updating the DevTest Lab.read
- (Defaults to 5 minutes) Used when retrieving the DevTest Lab.delete
- (Defaults to 30 minutes) Used when deleting the DevTest Lab.
Import
Dev Test Labs can be imported using the resourceId
, e.g.