microsoft/mona-saas

[FEATURE] Check valid region before setup

tfsjohan opened this issue · 0 comments

Mona cannot be installed in all regions. For instance, when trying to install in Sweden Central you get this error:

{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Region doesn't support Classic resource mode for Application Insights resources. Please use Workspace-based mode.\",\r\n \"innererror\": {\r\n \"trace\": [\r\n \"System.ArgumentException\"\r\n ]\r\n }\r\n }\r\n}"}]}}

Would it be possible to either check before setup starts if the region support required Classic Resource Mode, or avoid this Classic Mode?