Options
This section provides detailed instructions for updating your configuration to implement each option.
If you are familiar with Terraform tfvars
file structure, you can skip the next section that explains how to update the configuration file and go directly to the Options you want to implement.
Most of the options require you to update the platform configuration file. The platform configuration file is a HCL (tfvars) file that contains the configuration settings for the platform landing zone.
There are two types of settings in the platform configuration file that you may need to update. For the sake of simplicity we will refer to these as line
and block
settings.
Depending on the option you want to implement, you may need to delete and / or add configuration settings to the platform configuration file.
A line setting is a single line in the configuration file that you need to update. For example, the following line setting is used to specify the name of the resource group:
|
|
A line setting is denoted by the <key> = "<value>"
format.
If you are asked to update a line setting, you will need to find the line based on it’s key. You can use Ctrl + F to search for the key in the file.
For example, if you are asked to delete a line setting, you would:
- Use Ctrl + F to bring up the search dialog
- Enter the key in the search dialog. E.g.
ddos_resource_group_name
- Hit enter to search for the key
- Delete the whole line from the configuration file
- Save the configuration file
A block setting is a group of settings that are enclosed in curly braces {}
. For example, the following block setting is used to specify the policy assignments for a management group:
For those familiar with Terraform, what we refer to as ablock
here is generally anobject
or amap
type in HCL.
|
|
A block setting is denoted by the <key> = { <value> }
format, where the curly braces and value span multiple lines in the configuration file.
If you are asked to update a block setting, you will need to find the block based on it’s key. You can use Ctrl + F to search for the key in the file.
For example, if you are asked to delete a block setting, you would:
- Use Ctrl + F to bring up the search dialog
- Enter the key in the search dialog. E.g.
ddos
- Hit enter to search for the key
- Identify the start and end of the block by looking for the opening and closing curly braces
{}
. This is made easier when using an IDE like Visual Studio Code, which will highlight the matching braces when you click on one of them. - Select the whole block, including the key and delete all the lines from the configuration file
- Save the configuration file
If you are asked to paste configuration inside a block setting, you would:
- Use Ctrl + F to bring up the search dialog
- Enter the key in the search dialog. E.g.
management_group_settings
- If the block is denoted as a nested block (e.g.
management_group_settings
>policy_assignments_to_modify
), you will need to find the last child block. In this case, you would then search forpolicy_assignments_to_modify
- Repeat the last step for each nested block until you find the block where you need to paste the code
- Copy the code you need to paste into the clipboard
- Place the cursor at the end of the first line of the block after the and press Enter to create a new line. If you are using Visual Studio Code, it will automatically indent the new line to match the indentation of the block
- Paste the code from the clipboard using Ctrl + V
- Save the configuration file
The available options are:
- Customise Resource Names
- Customize Management Group Names and IDs
- Turn off DDOS protection plan
- Turn off Bastion host
- Turn off Private DNS zones and Private DNS resolver
- Turn off Virtual Network Gateways
- Additional Regions
- IP Address Ranges
- Change a policy assignment enforcement mode
- Remove a policy assignment
- Turn off Azure Monitoring Agent
- Deploy Azure Monitoring Baseline Alerts (AMBA)
- Turn off Defender Plans
- Implement Zero Trust Networking