Created
June 28, 2018 13:44
-
-
Save arthfl/d6c3d7d84454b1a141a8b2b99c06d1a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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