Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-WinGetSource fails if resource group region doesn't support classic App Insights #176

Open
ghost opened this issue Sep 29, 2022 · 1 comment
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Sep 29, 2022

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
@RDMacLachlan RDMacLachlan self-assigned this Oct 5, 2022
@RDMacLachlan
Copy link
Member

Appreciate the insight into the limitation. This has been marked as an issue for resolution.

@denelon denelon added this to the 1.9-REST milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants