Error in CreateHostpoolTemplate.json
- Dominant language
- PowerShell
- Stars
- 524
- Forks
- 610
- PR merge metrics
- No merged PRs in 30d
Description
I am getting a new error when deploying a hostpool using the "CreateHostpoolTemplate.json" in reference to configuring diagnostic settings on a new host pool and application group.
The hostpool, VMs and desktop application group do deploy successfully, but diagnostic settings are not configured
The error messages are as follows (actual resource names replaced with [placeholders])
Diagnostic settings does not support retention for new diagnostic settings. (Code: BadRequest, Target: /subscriptions/[subscriptionId]/resourceGroups/[resourceGroupName]/providers/Microsoft.DesktopVirtualization/applicationgroups/[applicationGroupName]/providers/Microsoft.Insights/diagnosticSettings/diagnosticSetting)
Diagnostic settings does not support retention for new diagnostic settings. (Code: BadRequest, Target: /subscriptions/[subscriptionId]/resourceGroups/[resourceGroupName]/providers/Microsoft.DesktopVirtualization/hostpools/[hostPoolName]/providers/Microsoft.Insights/diagnosticSettings/diagnosticSetting)
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect CreateHostpoolTemplate.json for the diagnostic settings attached to the host pool and application group. Start by comparing those settings with Azure's current diagnostic-settings behavior, then deploy the template and verify that both resources receive diagnostic settings without the retention error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100