Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arthfl/d6c3d7d84454b1a141a8b2b99c06d1a4 to your computer and use it in GitHub Desktop.
Save arthfl/d6c3d7d84454b1a141a8b2b99c06d1a4 to your computer and use it in GitHub Desktop.
{
"handler": "Microsoft.Compute.VmExtension",
"version": "0.1.3-preview",
"parameters": {
"basics": [
{
"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
}
}
],
"steps": [ ],
"outputs": {
"location": "[location()]",
"tenant": "[basics('tenant')]",
"token": "[basics('token')]",
"server": "[basics('server')]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment