Azure / Azure/RDS-Templates

Naming convention of hostnames and azure VM objects

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
5-RDS-on-Windows-Server
Dominant language
PowerShell
Stars
524
Forks
610
PR merge metrics
No merged PRs in 30d

Description

_From @fberson on December 1, 2016 14:49_

The naming os computer hostnames and azure VM names is not very consistent and does not allow customers to add a custom prefix. I would like to suggest introduce 3 new variables to be able to provide the prefix for each of the three roles, as an example for RD Gateway:
```
"gatewayHostNamePrefix": {
"type": "string",
"defaultValue": "RDGW-",
"metadata": {
"description": "Hostname prefix for RD Gateway Servers"
}
```
Use those to construct the computername like below
```
"osProfile": {
"computerName": "[concat(parameters(' gatewayHostNamePrefix'),'0', copyindex(1))]",

```
And use the same convention for the VM names in Azure as well to make things consistent
```
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(parameters(gatewayHostNamePrefix'),'0', copyindex(1))]",
```

_Copied from original issue: mmarch/rds-templates#13_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.