Setting

JustDeploy relies on a few settings to control the behaviour and preferences. The following is an example JSON file.

Setting

Attribute Type Mandatory Values Default Notes
JustDeploy Object No
Azure Object No
ScriptLibrary Object No Mandatory for azVirtualMachine with data disks
GeneratePassword Object No Mandatory if used by azSqlServer or azVirtualMachine

The following example shows the setting object in YAML:

---
Setting:

  JustDeploy:
    Release: preview                                # dev, unittest, usertest, preview (D), prod

  Azure:
    OSDiskDeleteOption: delete                      # delete, detach / default = detach
    NetworkInterfaceDeleteOption: delete
    ShowPSBreakingChanges: True                     # True, False (D)
    
  ScriptLibrary:
    Cloud: Azure
    Azure:
      StorageAccountName: justdeploy
      StorageContainer: scripts
      StorageAccountKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

  GeneratePassword:
    Length:                                         # Minimum of 4
    Upper:                                          # 1 (D)
    Lower:                                          # 1 (D)
    Numeric:                                        # 1 (D)
    Special:                                        # 1 (D)

The following example shows the setting object in JSON:

{
  "Setting": {
    "JustDeploy": {
      "Release": "preview"
    },
    "Azure": {
      "OSDiskDeleteOption": "delete",
      "NetworkInterfaceDeleteOption": "delete",
      "ShowPSBreakingChanges": true
    },
    "ScriptLibrary": {
      "Cloud": "Azure",
      "Azure": {
        "StorageAccountName": "justdeploy",
        "StorageContainer": "scripts",
        "StorageAccountKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    },
    "GeneratePassword": {
      "Length": null,
      "Upper": null,
      "Lower": null,
      "Numeric": null,
      "Special": null
    }
  }
}