-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from stemaMSFT/master
Fixing YAML (possibly)
- Loading branch information
Showing
3 changed files
with
60 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,46 @@ | ||
resource "azurerm_resource_group" "qs101" { | ||
name = "rg-qs101" | ||
location = "westus2" | ||
# __generated__ by Terraform from "/subscriptions/6e4d4d41-20a6-4801-8eec-c769d870e333/resourceGroups/tfstate" | ||
resource "azapi_resource" "example" { | ||
body = "{\"properties\":{}}" | ||
ignore_casing = false | ||
ignore_missing_property = true | ||
location = "eastus" | ||
locks = null | ||
name = "tfstate" | ||
parent_id = "/subscriptions/6e4d4d41-20a6-4801-8eec-c769d870e333" | ||
removing_special_chars = false | ||
response_export_values = null | ||
schema_validation_enabled = true | ||
tags = {} | ||
type = "Microsoft.Resources/resourceGroups@2022-09-01" | ||
timeouts { | ||
create = null | ||
delete = null | ||
read = null | ||
update = null | ||
} | ||
} | ||
# 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 | ||
# # 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 | ||
} | ||
}) | ||
} | ||
# 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 | ||
# 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" | ||
} | ||
}) | ||
} | ||
# body = jsonencode({ | ||
# properties = { | ||
# maxUsersInLab = 10 | ||
# userAccessMode = "Restricted" | ||
# } | ||
# }) | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters