BatchExplorer icon indicating copy to clipboard operation
BatchExplorer copied to clipboard

Create Pool, Start-task, Microsoft.ClassicNetwork, Subscriptions under the Microsoft Partner Agreement are supported only in api-version 2019-10-01 and later

Open manhthang-tran opened this issue 2 years ago • 5 comments

Dear Everyone In BatchExplorer, when I create a Pool, and define a Start-Task, then I get this error in the BatchExplorer app.log as belows. I do not know where the 'Microsoft.ClassicNetwork' coms from ? what is the root cause of this problem ? (I provide also the attached file. The Batch Explorer version is 2.18.0-stable.868)

{"0":{"details":[],"message":"","original":{"error":{"error":{"code":"NotSupported","message":"Subscriptions under the Microsoft Partner Agreement are supported only in api-version 2019-10-01 and later. (Request ID: d0002dca-5cf9-47e8-b73a-c5cc3f3fc8c1)"}},"headers":{"headers":{},"lazyInit":null,"lazyUpdate":null,"normalizedNames":{}},"message":"Http failure response for https://management.azure.com/subscriptions/3a1723f4-08b7-40c6-be24-4eded6e0da38/resourceGroups/arg-mrs-chn-adequacy-prd01/providers/Microsoft.CostManagement/query?api-version=2019-01-01: 422 OK","name":"HttpErrorResponse","ok":false,"status":422,"statusText":"OK","url":"https://management.azure.com/subscriptions/3a1723f4-08b7-40c6-be24-4eded6e0da38/resourceGroups/arg-mrs-chn-adequacy-prd01/providers/Microsoft.CostManagement/query?api-version=2019-01-01"},"requestId":"d0002dca-5cf9-47e8-b73a-c5cc3f3fc8c1","status":422,"statusText":"OK","timestamp":"2023-10-25T15:35:54.000Z"},"level":"error","message":"Error retrieving cost","timestamp":"2023-10-25T15:35:55.165Z"} {"0":{"details":[],"message":"","original":{"error":{"error":{"code":"DisallowedProvider","message":"The operation is not permitted for namespace 'Microsoft.ClassicNetwork'. List of permitted provider namespaces is 'Astronomer.Astro,Citrix.Services,Dell.Storage,Dynatrace.Observability,GitHub.Enterprise,GitHub.Network,Informatica.DataManagement,Microsoft.AAD,Microsoft.AadCustomSecurityAttributesDiagnosticSettings,microsoft.aadiam,Microsoft.ADHybridHealthService,Microsoft.Advisor,Microsoft.AgFoodPlatform,Microsoft.AksHybrid,Microsoft.AlertsManagement,Microsoft.AnalysisServices,Microsoft.AnyBuild,...Observability,Wandisco.Fusion'."}},"headers":{"headers":{},"lazyInit":null,"lazyUpdate":null,"normalizedNames":{}},"message":"Http failure response for https://management.azure.com/subscriptions/3a1723f4-08b7-40c6-be24-4eded6e0da38/providers/Microsoft.ClassicNetwork/virtualNetworks?api-version=2015-12-01: 400 OK","name":"HttpErrorResponse","ok":false,"status":400,"statusText":"OK","url":"https://management.azure.com/subscriptions/3a1723f4-08b7-40c6-be24-4eded6e0da38/providers/Microsoft.ClassicNetwork/virtualNetworks?api-version=2015-12-01"},"requestId":"eb4e9517-4a25-4fdb-9c08-c27e0c5e5319","status":400,"statusText":"OK","timestamp":"2023-10-25T15:37:12.000Z"},"level":"error","message":"Unable to list classic vnets","timestamp":"2023-10-25T15:37:12.519Z"} {"0":"404 - OK - The specified pool does not exist.","level":"error","message":"[BL] Uncaught exception:","timestamp":"2023-10-25T15:38:13.546Z"} {"0":{"details":[],"message":"","original":{"error":{"error":{"code":"NotSupported","message":"Subscriptions under the Microsoft Partner Agreement are supported only in api-version 2019-10-01 and later. (Request ID: c260c6ad-fe7b-484c-94d1-92183cf44457)"}},"headers":{"headers":{},"lazyInit":null,"lazyUpdate":null,"normalizedNames":{}},"message":"Http failure response for https://management.azure.com/subscriptions/3a1723f4-08b7-40c6- batchexplorer.app.log be24-4eded6e0da38/resourceGroups/arg-mrs-chn-adequacy-prd01/providers/Microsoft.CostManagement/query?api-version=2019-01-01: 422 OK","name":"HttpErrorResponse","ok":false,"status":422,"statusText":"OK","url":"https://management.azure.com/subscriptions/3a1723f4-08b7-40c6-be24-4eded6e0da38/resourceGroups/arg-mrs-chn-adequacy-prd01/providers/Microsoft.CostManagement/query?api-version=2019-01-01"},"requestId":"c260c6ad-fe7b-484c-94d1-92183cf44457","status":422,"statusText":"OK","timestamp":"2023-10-25T15:38:15.000Z"},"level":"error","message":"Error retrieving cost","timestamp":"2023-10-25T15:38:15.454Z"}

many thanks

manhthang-tran avatar Oct 25 '23 16:10 manhthang-tran

I'm affected by this issue too since updating to 2.19

I can load the Dashboard fine, but trying to load Jobs or Pools results in an error.

MatthewSteeples avatar Nov 14 '23 01:11 MatthewSteeples

Rather strangely, this all works fine on a 2nd computer I have. Same account logged in, same version of Batch Explorer

MatthewSteeples avatar Nov 15 '23 19:11 MatthewSteeples

Doing some further digging, this appears to be a networking issue. It looks like Batch Explorer is no longer honouring values from the HOSTS file, and is instead doing its own DNS resolution. This is causing it to try and route to the public IP address rather than the private endpoint that we've got configured for it

MatthewSteeples avatar Nov 27 '23 14:11 MatthewSteeples

I wonder if this was caused by an Electron update, as Batch Explorer doesn't do its own DNS resolution. The Electron docs seem to indicate it will fall back to the system resolver.

I haven't tested this yet, but the next stable release which should be coming within the next couple of weeks will include an update to Electron 29, so it might be worth seeing if that changes anything.

dpwatrous avatar Apr 24 '24 13:04 dpwatrous

We got round it in the end by starting Batch Explorer with the following parameters:

"C:\Program Files\BatchExplorer\BatchExplorer.exe" --host-resolver-rules="MAP ourbatchaccount.batch.azure.com 10.x.x.x

MatthewSteeples avatar Apr 24 '24 13:04 MatthewSteeples