New-WinGetSource fails if resource group region doesn't support classic App Insights
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Brief description of your issue
Classic mode for Application Insights will be deprecated in 2024, and there's several regions that don't support it. If the created resource group is in one of those regions, the New-WinGetSource cmdlet will fail with an error like this:
Line |
157 | New-ARMObjects -ARMObjects $ARMObjects -RestSourcePath $RestS …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to create Azure object. 13:28:01 - The deployment 'applicationinsights' failed with error(s). Showing 1 out of 1 error(s). Status Message: Region doesn't support Classic resource mode for Application Insights
| resources. Please use Workspace-based mode. (Code:BadRequest) CorrelationId: daf01282-078d-4ee0-b24e-84782f2ccda5
Steps to reproduce
Run New-WinGetSource with a resource group in a region that doesn't support classic App Insights (such as westus3).
Expected behavior
Application Insights creation should use Workspace mode
Actual behavior
Failure
Environment
N/A
- Dominant language
- C#
- Stars
- 317
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/winget-cli-restsource
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Issue-Feature
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Font Support OpenIssue-Feature
microsoft/winget-cli-restsource#310 · 1 comment · 1 assignee ·
-
Issue-Bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
microsoft/winget-cli-restsource#309 · 2 comments ·
All issues in microsoft/winget-cli-restsource
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·