Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested cosmetic change using tags to improve readability in Visual Studio #34

Open
jasonagilbertson opened this issue Jun 17, 2017 · 0 comments

Comments

@jasonagilbertson
Copy link
Contributor

From @fberson on December 1, 2016 15:1

For most of the resources that these templates create a variable, parameter of function is used to construct the name of the resources. This makes sense and I usually do that too, however is does have a small negative effect on the readability in for example Visual Studio. Objects names are not resolved at this point.
An easy way to accomplish this is by adding a tag in the resource

    {
      "apiVersion": "[variables('apiVersion')]",
      "type": "Microsoft.Compute/virtualMachines",
      "name": "[concat(parameters('RDGWHostNamePrefix'),'0', copyindex(1))]",
      "tags": {
        "displayName": "RD Gateway Virtual Machines"
      },

This improves readability in Visual Studio, as per example below. Again, this is in no way critical but it helps to interpret resources in Visual Studio by others

Copied from original issue: mmarch/rds-templates#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Windows Server RDS
  
Needs triage
Development

No branches or pull requests

2 participants