Unattended install: Added the ability to set the telemetry level (#20249)

* Added the ability to set the telemetry level for an unattended install

Added 'UnattendedTelemetryLevel' to 'UnattendedSettings'

Renamed 'CreateUnattendedUserNotificationHandler' to 'PostUnattendedInstallNotificationHandler'

Set the telemetry level in the unattended install notification handler

* Add DefaultValue attribute to 'UnattendedTelemetryLevel'

* Added UnattendedTelemetryLevel to template.

* Updated cli and ide hosts.

---------

Co-authored-by: Andy Butland <abutland73@gmail.com>
This commit is contained in:
Mitchel
2025-09-29 15:07:30 +00:00
committed by GitHub
parent 81f29be53b
commit ac6b205e7f
7 changed files with 59 additions and 9 deletions

View File

@@ -63,6 +63,10 @@
"longName": "password",
"shortName": ""
},
"UnattendedTelemetryLevel": {
"longName": "telemetry-level",
"shortName": ""
},
"NoNodesViewPath": {
"longName": "no-nodes-view-path",
"shortName": ""

View File

@@ -62,6 +62,11 @@
"id": "UnattendedUserPassword",
"isVisible": true
},
{
"id": "UnattendedTelemetryLevel",
"isVisible": true,
"defaultValue": "Detailed"
},
{
"id": "NoNodesViewPath",
"isVisible": true

View File

@@ -82,7 +82,7 @@
"replaces": "CUSTOM_VERSION",
"isRequired": false
},
"FinalVersion" : {
"FinalVersion": {
"type": "generated",
"generator": "switch",
"datatype": "text",
@@ -103,8 +103,7 @@
]
}
},
"DotnetVersion":
{
"DotnetVersion": {
"type": "generated",
"generator": "switch",
"datatype": "text",
@@ -300,6 +299,33 @@
},
"replaces": "UNATTENDED_USER_PASSWORD_FROM_TEMPLATE"
},
"UnattendedTelemetryLevel": {
"displayName": "Unattended telemetry level",
"description": "Specifies the level of telemetry information the installation will report.",
"type": "parameter",
"datatype": "choice",
"defaultValue": "Detailed",
"choices": [
{
"choice": "Minimal",
"description": "Minimal information"
},
{
"choice": "Basic",
"description": "Basic information"
},
{
"choice": "Detailed",
"description": "Detailed information"
}
],
"forms": {
"global": [
"jsonEncode"
]
},
"replaces": "UNATTENDED_TELEMETRY_LEVEL_FROM_TEMPLATE"
},
"UsingUnattenedInstall": {
"type": "computed",
"value": "(UnattendedUserName != '' && UnattendedUserEmail != '' && UnattendedUserPassword != '' && (HasConnectionString || HasDevelopmentConnectionString))"

View File

@@ -35,7 +35,8 @@
"InstallUnattended": true,
"UnattendedUserName": "UNATTENDED_USER_NAME_FROM_TEMPLATE",
"UnattendedUserEmail": "UNATTENDED_USER_EMAIL_FROM_TEMPLATE",
"UnattendedUserPassword": "UNATTENDED_USER_PASSWORD_FROM_TEMPLATE"
"UnattendedUserPassword": "UNATTENDED_USER_PASSWORD_FROM_TEMPLATE",
"UnattendedTelemetryLevel": "UNATTENDED_TELEMETRY_LEVEL_FROM_TEMPLATE"
},
//#endif
"Content": {