Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 1.54 KB

namingconvention.md

File metadata and controls

61 lines (51 loc) · 1.54 KB

Naming

Naming and naming conventions should be simple and consider limitation. KISS is the keyword (Keep it simple, stupid) to not add unnecessary complexity but creating consistency and readability to generate clarity.

Docs: Naming conventions

Limitations Examples

  • Storage Groups
    • cannot exceed 24 characters
    • must be lowercase
    • no hyphens
  • Windows
    • cannot exceed 15 characters

Global Unique Naming

  • Azure Storage
  • Web Apps
  • Azure Key Vault
  • Redis Cache
  • Traffic Manager
  • ...

Convention by template

{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters":{
    "Prefix":{
        "type":"string",
        "maxLength":2
    },
    "Suffix":{
        "type":"string",
        "maxLength":1
    },
    "location":{
        "type":"string",
        "maxLength":2
    }
  },
  "variables":{    "nameconvention":"[concat(parameters('Prefix'),parameters('location'),parameters('Suffix'))]"
  },
  "resources":[
    ],
    "outputs":{
      "name" : {
        "type" : "string",
        "value": "[variables('nameconvention')]"
      }
    }
 }

Source