-
-
Save fitzgeraldsteele/51bfc508513d6f2040b5ba0c191fcb81 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.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