Skip to content

Instantly share code, notes, and snippets.

@arthfl
Last active December 21, 2018 09:56
Show Gist options
  • Save arthfl/3a24c2ba6528e50eee2a9ae6e2232368 to your computer and use it in GitHub Desktop.
Save arthfl/3a24c2ba6528e50eee2a9ae6e2232368 to your computer and use it in GitHub Desktop.
{
"handler": "Microsoft.Compute.VmExtension",
"version": "0.1.2-preview",
"parameters": {
"elements": [
{
"name": "tenant",
"type": "Microsoft.Common.TextBox",
"label": "Environment ID",
"toolTip": "Your Dynatrace environment ID.",
"constraints": {
"regex": "^[a-zA-Z0-9+-_]+$",
"validationMessage": "Invalid environment ID format",
"required": true
}
},
{
"name": "token",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "API Token"
},
"toolTip": "Your Dynatrace API token.",
"constraints": {
"regex": "^[a-zA-Z0-9+-_]+$",
"validationMessage": "Invalid token format (maybe leading/trailing whitespace?)",
"required": true
},
"options": {
"hideConfirmation": true
}
},
{
"name": "server",
"type": "Microsoft.Common.TextBox",
"label": "API URL",
"toolTip": "Only required when connecting the Dynatrace OneAgent to a Dynatrace Managed installation. Example: https://[YourDynatraceServerURL]/e/[EnvironmentID]/api",
"constraints": {
"regex": "^$|^https:\/\/.*\/api$",
"validationMessage": "Must be either empty or an URL with scheme 'https' and path ending in '/api'.",
"required": false
}
}
],
"outputs": {
"vmName": "[vmName()]",
"location": "[location()]",
"tenant": "[elements('tenant')]",
"token": "[elements('token')]",
"server": "[elements('server')]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment