You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sap/automation/naming-module.md
+51-51Lines changed: 51 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Configure custom naming for the automation framework
3
-
description: Explanation of how to implement custom naming conventions for the SAP on Azure Deployment Automation Framework.
3
+
description: Explanation of how to implement custom naming conventions for SAP Deployment Automation Framework.
4
4
author: kimforss
5
5
ms.author: kimforss
6
6
ms.reviewer: kimforss
@@ -10,34 +10,33 @@ ms.service: sap-on-azure
10
10
ms.subservice: sap-automation
11
11
---
12
12
13
-
# Overview
13
+
# Configure custom naming for the automation framework
14
14
15
-
The [SAP on Azure Deployment Automation Framework](deployment-framework.md) uses a standard naming convention for Azure [resource naming](naming.md).
15
+
[SAP Deployment Automation Framework](deployment-framework.md) uses a standard naming convention for Azure [resource naming](naming.md).
16
16
17
-
The Terraform module `sap_namegenerator` defines the names of all resources that the automation framework deploys. The module is located at `/deploy/terraform/terraform-units/modules/sap_namegenerator/` in the repository. The framework also supports providing your own names for some of the resources using the [parameter files](configure-system.md).
17
+
The Terraform module `sap_namegenerator` defines the names of all resources that the automation framework deploys. The module is located at `/deploy/terraform/terraform-units/modules/sap_namegenerator/` in the repository. The framework also supports providing your own names for some of the resources by using the [parameter files](configure-system.md).
18
18
19
19
The naming of the resources uses the following format:
If these capabilities aren't enough, you can also use custom naming logic by either providing a custom JSON file that contains the resource names or by modifying the naming module used by the automation.
23
24
24
-
If these capabilities are not enough, you can also use custom naming logic by either providing a custom json file containing the resource names or by modifying the naming module used by the automation.
25
+
## Provide name overrides by using a JSON file
25
26
26
-
## Provide name overrides using a json file
27
+
You can specify a custom naming JSON file in your `tfvars` parameter file by using the `name_override_file` parameter.
27
28
28
-
You can specify a custom naming json file in your tfvars parameter file using the 'name_override_file' parameter.
29
-
30
-
The json file has sections for the different resource types.
29
+
The JSON file has sections for the different resource types.
31
30
32
31
The deployment types are:
33
32
34
-
- DEPLOYER (Control Plane)
35
-
- SDU (SAP System Infrastructure)
36
-
- WORKLOAD_ZONE (Workload zone)
33
+
- DEPLOYER (control plane)
34
+
- SDU (SAP system infrastructure)
35
+
- WORKLOAD_ZONE (workload zone)
37
36
38
37
### Availability set names
39
38
40
-
The names for the availability sets are defined in the "availabilityset_names" structure. The example below lists the availability set names for a deployment.
39
+
The names for the availability sets are defined in the `availabilityset_names` structure. The following example lists the availability set names for a deployment.
41
40
42
41
```json
43
42
"availabilityset_names" : {
@@ -47,9 +46,10 @@ The names for the availability sets are defined in the "availabilityset_names" s
47
46
"web": "web-avset"
48
47
}
49
48
```
50
-
### Key Vault names
51
49
52
-
The names for the key vaults are defined in the "keyvault_names" structure. The example below lists the key vault names for a deployment in the "DEV" environment in West Europe.
50
+
### Key vault names
51
+
52
+
The names for the key vaults are defined in the `keyvault_names` structure. The following example lists the key vault names for a deployment in the `DEV` environment in West Europe.
53
53
54
54
```json
55
55
"keyvault_names": {
@@ -68,14 +68,13 @@ The names for the key vaults are defined in the "keyvault_names" structure. The
68
68
}
69
69
```
70
70
71
-
> [!NOTE]
72
-
> This key vault names need to be unique across Azure, SAP on Azure Deployment Automation Framework appends 3 random characters (ABC in the example) at the end of the key vault name to reduce the likelihood for name conflicts.
71
+
The key vault names need to be unique across Azure. SAP Deployment Automation Framework appends three random characters (ABC in the example) at the end of the key vault name to reduce the likelihood for name conflicts.
73
72
74
-
The "private_access" names are currently not used.
73
+
The `private_access` names are currently not used.
75
74
76
-
### Storage Account names
75
+
### Storage account names
77
76
78
-
The names for the storage accounts are defined in the "storageaccount_names" structure. The example below lists the storage account names for a deployment in the "DEV" environment in West Europe.
77
+
The names for the storage accounts are defined in the `storageaccount_names` structure. The following example lists the storage account names for a deployment in the `DEV` environment in West Europe.
79
78
80
79
```json
81
80
"storageaccount_names": {
@@ -93,14 +92,14 @@ The names for the storage accounts are defined in the "storageaccount_names" str
93
92
}
94
93
```
95
94
96
-
> [!NOTE]
97
-
> This key vault names need to be unique across Azure, SAP on Azure Deployment Automation Framework appends 3 random characters (abc in the example) at the end of the key vault name to reduce the likelihood for name conflicts.
98
95
99
-
### Virtual Machine names
96
+
The key vault names need to be unique across Azure. SAP Deployment Automation Framework appends three random characters (abc in the example) at the end of the key vault name to reduce the likelihood for name conflicts.
97
+
98
+
### Virtual machine names
100
99
101
-
The names for the virtual machines are defined in the "virtualmachine_names" structure. Both the computer and the virtual machine names can be provided.
100
+
The names for the virtual machines are defined in the `virtualmachine_names` structure. Both the computer and the virtual machine names can be provided.
102
101
103
-
The example below lists the virtual machine names for a deployment in the "DEV" environment in West Europe. The deployment has a database server, two application servers, a Central Services server and a web dispatcher.
102
+
The following example lists the virtual machine names for a deployment in the `DEV` environment in West Europe. The deployment has a database server, two application servers, a central services server, and a web dispatcher.
104
103
105
104
```json
106
105
"virtualmachine_names": {
@@ -171,30 +170,31 @@ The example below lists the virtual machine names for a deployment in the "DEV"
171
170
}
172
171
```
173
172
174
-
## Configure custom naming module
173
+
## Configure the custom naming module
175
174
176
175
There are multiple files within the module for naming resources:
177
176
178
-
- Virtual machine (VM) and computer names are defined in (`vm.tf`)
179
-
- Resource group naming is defined in (`resourcegroup.tf`)
180
-
- Key vaults in (`keyvault.tf`)
181
-
- Resource suffixes (`variables_local.tf`)
177
+
- Virtual machine and computer names are defined in (`vm.tf`).
178
+
- Resource group naming is defined in (`resourcegroup.tf`).
179
+
- Key vaults are defined in (`keyvault.tf`).
180
+
- Resource suffixes are defined in (`variables_local.tf`).
181
+
182
+
The different resource names are identified by prefixes in the Terraform code:
182
183
183
-
The different resource names are identified by prefixes in the Terraform code.
184
-
- SAP deployer deployments use resource names with the prefix `deployer_`
185
-
- SAP library deployments use resource names with the prefix `library`
186
-
- SAP landscape deployments use resource names with the prefix `vnet_`
187
-
- SAP system deployments use resource names with the prefix `sdu_`
184
+
- SAP deployer deployments use resource names with the prefix `deployer_`.
185
+
- SAP library deployments use resource names with the prefix `library`.
186
+
- SAP landscape deployments use resource names with the prefix `vnet_`.
187
+
- SAP system deployments use resource names with the prefix `sdu_`.
188
188
189
-
The calculated names are returned in a data dictionary, which is used by all the terraform modules.
189
+
The calculated names are returned in a data dictionary, which is used by all the Terraform modules.
190
190
191
-
## Using custom names
191
+
## Use custom names
192
192
193
-
Some of the resource names can be changed by providing parameters in the tfvars parameter file.
193
+
Some of the resource names can be changed by providing parameters in the `tfvars` parameter file.
|`Prefix`|`custom_prefix`|This is used as prefix for all the resources in the resource group |
197
+
|`Prefix`|`custom_prefix`|Used as prefix for all the resources in the resource group |
198
198
|`Resource group`|`resourcegroup_name`||
199
199
|`admin subnet name`|`admin_subnet_name`||
200
200
|`admin nsg name`|`admin_subnet_nsg_name`||
@@ -206,20 +206,20 @@ Some of the resource names can be changed by providing parameters in the tfvars
206
206
|`web nsg name`|`web_subnet_nsg_name`||
207
207
|`admin nsg name`|`admin_subnet_nsg_name`||
208
208
209
-
## Changing the naming module
209
+
## Change the naming module
210
210
211
-
To prepare your Terraform environment for custom naming, you first need to create custom naming module. The easiest way is to copy the existing module and make the required changes in the copied module.
211
+
To prepare your Terraform environment for custom naming, you first need to create a custom naming module. The easiest way is to copy the existing module and make the required changes in the copied module.
212
212
213
-
1. Create a root-level folder in your Terraform environment. For example,`Azure_SAP_Automated_Deployment`.
214
-
1.Navigate to your new root-level folder.
213
+
1. Create a root-level folder in your Terraform environment. An example is`Azure_SAP_Automated_Deployment`.
214
+
1.Go to your new root-level folder.
215
215
1. Clone the [automation framework repository](https://github.com/Azure/sap-automation). This step creates a new folder `sap-automation`.
216
216
1. Create a folder within the root-level folder called `Contoso_naming`.
217
-
1.Navigate to the `sap-automation` folder.
218
-
1. Check out the appropriate branch in git.
219
-
1.Navigate to `\deploy\terraform\terraform-units\modules` within the `sap-automation` folder.
217
+
1.Go to the `sap-automation` folder.
218
+
1. Check out the appropriate branch in Git.
219
+
1.Go to `\deploy\terraform\terraform-units\modules` within the `sap-automation` folder.
220
220
1. Copy the folder `sap_namegenerator` to the `Contoso_naming` folder.
221
221
222
-
The naming module is called from the root terraform folders:
222
+
The naming module is called from the root `terraform` folders:
223
223
224
224
```terraform
225
225
module "sap_namegenerator" {
@@ -261,7 +261,7 @@ For each file, change the source for the module `sap_namegenerator` to point to
261
261
262
262
## Change resource group naming logic
263
263
264
-
To change your resource group's naming logic, navigate to your custom naming module folder (for example, `Workspaces\Contoso_naming`). Then, edit the file `resourcegroup.tf`. Modify the following code with your own naming logic.
264
+
To change your resource group's naming logic, go to your custom naming module folder (for example, `Workspaces\Contoso_naming`). Then, edit the file `resourcegroup.tf`. Modify the following code with your own naming logic.
265
265
266
266
```terraform
267
267
locals {
@@ -288,10 +288,10 @@ locals {
288
288
289
289
## Change resource suffixes
290
290
291
-
To change your resource suffixes, navigate to your custom naming module folder (for example, `Workspaces\Contoso_naming`). Then, edit the file `variables_local.tf`. Modify the following map with your own resource suffixes.
291
+
To change your resource suffixes, go to your custom naming module folder (for example, `Workspaces\Contoso_naming`). Then, edit the file `variables_local.tf`. Modify the following map with your own resource suffixes.
292
292
293
293
> [!NOTE]
294
-
> Only change the map **values**. Don't change the map **key**, which the Terraform code uses.
294
+
> Only change the map *values*. Don't change the map *key*, which the Terraform code uses.
295
295
> For example, if you want to rename the administrator network interface component, change `"admin-nic" = "-admin-nic"` to `"admin-nic" = "yourNICname"`.
Copy file name to clipboardExpand all lines: articles/sap/automation/naming.md
+19-25Lines changed: 19 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Naming standards for the automation framework
3
-
description: Explanation of naming conventions for the SAP on Azure Deployment Automation Framework.
3
+
description: Explanation of naming conventions for SAP Deployment Automation Framework.
4
4
author: kimforss
5
5
ms.author: kimforss
6
6
ms.reviewer: kimforss
@@ -10,36 +10,32 @@ ms.service: sap-on-azure
10
10
ms.subservice: sap-automation
11
11
---
12
12
13
-
# Naming conventions for SAP automation framework
13
+
# Naming conventions for SAP Deployment Automation Framework
14
14
15
-
The [SAP on Azure Deployment Automation Framework](deployment-framework.md) uses standard naming conventions. Consistent naming helps the automation framework run correctly with Terraform. Standard naming helps you deploy the automation framework smoothly. For example, consistent naming helps you to:
15
+
[SAP Deployment Automation Framework](deployment-framework.md) uses standard naming conventions. Consistent naming helps the automation framework run correctly with Terraform. Standard naming helps you deploy the automation framework smoothly. For example, consistent naming helps you to:
16
16
17
17
- Deploy the SAP virtual network infrastructure into any supported Azure region.
18
-
19
-
- Do multiple deployments with partitioned virtual networks.
20
-
21
-
- Deploy the SAP system into any SAP workload zone.
22
-
23
-
- Run regular and high availability (HA) instances
24
-
18
+
- Do multiple deployments with partitioned virtual networks.
19
+
- Deploy the SAP system into any SAP workload zone.
20
+
- Run regular and high availability instances.
25
21
- Do disaster recovery and fall forward behavior.
26
22
27
-
Review the standard terms, area paths, variable names before you begin your deployment. If necessary, you can also [configure custom naming](naming-module.md).
23
+
Review the standard terms, area paths, and variable names before you begin your deployment. If necessary, you can also [configure custom naming](naming-module.md).
28
24
29
25
## Placeholder values
30
26
31
27
The naming convention's example formats use the following placeholder values.
32
28
33
-
| Placeholder | Concept | Character limit | Example |
29
+
| Placeholder | Concept | Character limit | Example |
> Disk numbering starts at zero. The naming convention uses a two-character format; for example, `00`.
136
130
@@ -142,7 +136,7 @@ You can set the mapping under the variable `_region_mapping` in the name generat
142
136
143
137
Then, you can use the `_region_mapping` variable elsewhere, such as an area path. The format for an area path is `{ENVIRONMENT}-{REGION_MAP}-{SAP_VNET}-{ARTIFACT}` where:
144
138
145
-
-`{ENVIRONMENT}` is the name of the environment, or workload zone.
139
+
-`{ENVIRONMENT}` is the name of the environment or workload zone.
146
140
-`{REGION_MAP}` is the short form of the Azure region name.
147
141
-`{SAP_VNET}` is the SAP virtual network within the environment.
148
142
-`{ARTIFACT}` is the deployment artifact within the virtual network, such as `INFRASTRUCTURE`.
0 commit comments