Failing to edit, delete or replace an azure graph query due to location not supported.
Issue: The graph query "Config" got created in the past few weeks using the west europe location. But starting this week, the query can't be edited, deleted or replaced because the location is no longer supported.
Tried using the portal (see screenshot) but the resource can't be deleted to be replaced.
Tried using azure powershell and fails in the same way.
See below errorSharedQuery.png
"Get-AzResourceGraphQuery -ResourceGroupName "xyz" -Name Config Get-AzResourceGraphQuery : No registered resource provider found for location 'westeurope' and API version '2018-09-01-preview' for type 'queries'. The supported api-versions are '2018-09-01-preview, 2024-04-01'. The supported locations are 'global'. At line:1 char:1 + Get-AzResourceGraphQuery -ResourceGroupName "xyz ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ({ SubscriptionI...e = Config }:<>f__AnonymousType03) [Get-AzResourceGraphQuery_Get], RestException
1 + FullyQualifiedErrorId : NoRegisteredProviderFound,Microsoft.Azure.PowerShell.Cmdlets.ResourceGraph.Cmdlets.GetAzResourceGraphQuery_Get"