-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolved merge conflicts, tested tf local
- Loading branch information
Showing
8 changed files
with
49 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Multi-tenant App Service Secure Baseline Terraform Implementation | ||
# Multitenant App Service Secure Baseline Terraform Implementation | ||
|
||
## Steps of Implementation for App Service Construction Set | ||
|
||
|
@@ -37,11 +37,11 @@ location = "swedencentral" | |
location_short = "swe" | ||
|
||
tenant_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
entra_admin_group_object_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
entra_admin_group_name = "Microsoft Entra ID SQL Admins" | ||
vm_entra_admin_username = "[email protected]" | ||
aad_admin_group_object_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
aad_admin_group_name = "Microsoft Entra ID SQL Admins" | ||
vm_aad_admin_username = "[email protected]" | ||
|
||
# Optionally provide non-Entra admin credentials for the VM | ||
# Optionally provide non-AAD admin credentials for the VM | ||
# vm_admin_username = "daniem" | ||
# vm_admin_password = "**************" | ||
|
||
|
@@ -172,7 +172,7 @@ az upgrade | |
az network bastion rdp --name bast-bastion --resource-group rg-hub --target-resource-id /subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.Compute/virtualMachines/{vm-name} --disable-gateway | ||
``` | ||
|
||
If you experience issues connecting to the DevOps VM using your Microsoft Entra ID credentials, see [Unable to connect to DevOps VM using Microsoft Entra ID credentials](#unable-to-connect-to-devops-vm-using-microsoft-entra-id-credentials) | ||
If you experience issues connecting to the DevOps VM using your Microsoft Entra ID credentials, see [Unable to connect to DevOps VM using Microsoft Entra ID credentials](#unable-to-connect-to-devops-vm-using-aad-credentials) | ||
|
||
Once completed, you should be able to connect to the SQL Server using the Microsoft Entra ID account from SQL Server Management Studio. On the sample database (sample-db by default), run the following commands to create the user and grant minimal permissions (the exact command will be provided in the output of the Terraform deployment): | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource_group_name = "backend-appsrvc-dev-westus2-001" | ||
storage_account_name = "stbackendappsrwestus2001" | ||
container_name = "tfstate" | ||
key = "scenario1.localtest.tfstate" |
4 changes: 4 additions & 0 deletions
4
scenarios/secure-baseline-multitenant/terraform/hub/backend.hcl
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource_group_name = "backend-appsrvc-dev-westus2-001" | ||
storage_account_name = "stbackendappsrwestus2001" | ||
container_name = "tfstate" | ||
key = "scenario1.hub.tfstate" |
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
4 changes: 4 additions & 0 deletions
4
scenarios/secure-baseline-multitenant/terraform/spoke/backend.hcl
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource_group_name = "backend-appsrvc-dev-westus2-001" | ||
storage_account_name = "stbackendappsrwestus2001" | ||
container_name = "tfstate" | ||
key = "scenario1.spoke.tfstate" |
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 |
---|---|---|
|
@@ -4,21 +4,23 @@ location = "westus3" | |
owner = "[email protected]" | ||
|
||
# For the hub state, use the same settings as the remote state config on the hub deployment from /hub/main.tf | ||
hub_state_resource_group_name = "backend-appsrvc-dev-westus2-001" | ||
hub_state_storage_account_name = "stbackendappsrwestus2001" | ||
hub_state_container_name = "tfstate" | ||
hub_state_key = "scenario1.hub.tfstate" | ||
hub_remote_state_settings = { | ||
storage_account_name = "stbackendappsrwestus2001" | ||
container_name = "tfstate" | ||
key = "scenario1.hub.tfstate" | ||
resource_group_name = "backend-appsrvc-dev-westus2-001" | ||
} | ||
|
||
entra_admin_group_object_id = "bda41c64-1493-4d8d-b4b5-7135159d4884" | ||
entra_admin_group_name = "AppSvcLZA Microsoft Entra SQL Admins" | ||
entra_admin_group_name = "AppSvcLZA Azure AD SQL Admins" | ||
|
||
## Lookup the Microsoft Entra User | ||
## Lookup the Azure AD User | ||
# vm_entra_admin_username = "[email protected]" | ||
## Reference an existing Microsoft Entra User/Group Object ID to bypass lookup | ||
vm_entra_admin_object_id = "bda41c64-1493-4d8d-b4b5-7135159d4884" # "AppSvcLZA Microsoft Entra SQL Admins" | ||
## Reference an existing Azure AD User/Group Object ID to bypass lookup | ||
vm_entra_admin_object_id = "bda41c64-1493-4d8d-b4b5-7135159d4884" # "AppSvcLZA Azure AD SQL Admins" | ||
|
||
|
||
## Optionally provide non-Entra ID admin credentials for the VM | ||
## Optionally provide non-entra admin credentials for the VM | ||
# vm_admin_username = "daniem" | ||
# vm_admin_password = "**************" | ||
|
||
|
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