Examples for documentation for AzAPI provider including resource and update_resource

This commit is contained in:
Mark Gray
2022-04-11 15:09:07 -07:00
parent 64aa77f9f8
commit 3fcccfc376
6 changed files with 151 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Provision a Lab Service Account and a Lab that are in public preview
resource "azapi_resource" "qs101-account" {
type = "Microsoft.LabServices/labaccounts@2018-10-15"
name = "qs101LabAccount"
parent_id = azurerm_resource_group.qs101.id
body = jsonencode({
properties = {
enabledRegionSelection = false
}
})
}
resource "azapi_resource" "qs101-lab" {
type = "Microsoft.LabServices/labaccounts/labs@2018-10-15"
name = "qs101Lab"
parent_id = azapi_resource.qs101-account.id
body = jsonencode({
properties = {
maxUsersInLab = 10
userAccessMode = "Restricted"
}
})
}