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

Azure datasource the resource selector doesn't work with westus3 region #63890

Closed
olegbzk opened this issue Feb 28, 2023 · 6 comments · Fixed by #66502
Closed

Azure datasource the resource selector doesn't work with westus3 region #63890

olegbzk opened this issue Feb 28, 2023 · 6 comments · Fixed by #66502
Assignees
Labels
datasource/Azure Azure Monitor Datasource effort/small triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced

Comments

@olegbzk
Copy link

olegbzk commented Feb 28, 2023

Grafana version: 9.3.1 and above
Data source type: Azure Monitor.

Strats from grafana version 9.3.1, the resource selector stops showing resources in the westus3 region. Fallback to grafana 9.3.0 resolving this issue.
As I understand, this region is missing in the location filter in the POST query of the resource selector.
https://grafana/api/datasources/3/resources/resourcegraph/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01

{"query":"\n      resources\n      | where id hasprefix \"zookeeper-prod-wus3\"\n      | where type in (\"microsoft.classiccompute/domainnames/slots/roles\",\"microsoft.classiccompute/virtualmachines\",\"microsoft.kusto/clusters\",\"microsoft.cognitiveservices/accounts\",\"microsoft.operationalinsights/workspaces\",\"microsoft.sql/servers\",\"microsoft.sql/servers/databases\",\"microsoft.sql/servers/elasticpools\",\"microsoft.sql/managedinstances\",\"microsoft.machinelearningservices/workspaces\",\"microsoft.network/virtualnetworks\",\"microsoft.network/natgateways\",\"microsoft.network/publicipaddresses\",\"microsoft.network/networkinterfaces\",\"microsoft.network/privateendpoints\",\"microsoft.network/loadbalancers\",\"microsoft.network/networkwatchers/connectionmonitors\",\"microsoft.network/virtualnetworkgateways\",\"microsoft.network/connections\",\"microsoft.network/applicationgateways\",\"microsoft.network/dnszones\",\"microsoft.network/privatednszones\",\"microsoft.network/trafficmanagerprofiles\",\"microsoft.network/expressroutecircuits\",\"microsoft.network/vpngateways\",\"microsoft.network/p2svpngateways\",\"microsoft.network/expressroutegateways\",\"microsoft.network/expressrouteports\",\"microsoft.network/azurefirewalls\",\"microsoft.network/privatelinkservices\",\"microsoft.network/frontdoors\",\"microsoft.network/virtualrouters\",\"microsoft.keyvault/vaults\",\"microsoft.keyvault/managedhsms\",\"microsoft.containerregistry/registries\",\"microsoft.eventgrid/eventsubscriptions\",\"microsoft.eventgrid/topics\",\"microsoft.eventgrid/domains\",\"microsoft.eventgrid/extensiontopics\",\"microsoft.eventgrid/systemtopics\",\"microsoft.eventgrid/partnernamespaces\",\"microsoft.eventgrid/partnertopics\",\"microsoft.automation/automationaccounts\",\"microsoft.netapp/netappaccounts/capacitypools\",\"microsoft.netapp/netappaccounts/capacitypools/volumes\",\"microsoft.compute/virtualmachines\",\"microsoft.compute/virtualmachinescalesets\",\"microsoft.compute/virtualmachinescalesets/virtualmachines\",\"microsoft.compute/cloudservices\",\"microsoft.compute/cloudservices/roles\",\"microsoft.relay/namespaces\",\"microsoft.search/searchservices\",\"microsoft.datafactory/datafactories\",\"microsoft.datafactory/factories\",\"microsoft.powerbidedicated/capacities\",\"microsoft.appplatform/spring\",\"microsoft.healthcareapis/services\",\"microsoft.healthcareapis/workspaces/analyticsconnectors\",\"microsoft.healthcareapis/workspaces/iotconnectors\",\"microsoft.healthcareapis/workspaces/fhirservices\",\"microsoft.datashare/accounts\",\"microsoft.insights/components\",\"microsoft.insights/autoscalesettings\",\"microsoft.servicebus/namespaces\",\"microsoft.eventhub/namespaces\",\"microsoft.eventhub/clusters\",\"microsoft.dbformysql/servers\",\"microsoft.dbformysql/flexibleservers\",\"microsoft.storage/storageaccounts\",\"microsoft.storage/storageaccounts/blobservices\",\"microsoft.storage/storageaccounts/tableservices\",\"microsoft.storage/storageaccounts/queueservices\",\"microsoft.storage/storageaccounts/fileservices\",\"microsoft.synapse/workspaces\",\"microsoft.synapse/workspaces/bigdatapools\",\"microsoft.synapse/workspaces/sqlpools\",\"microsoft.synapse/workspaces/kustopools\",\"microsoft.datacollaboration/workspaces\",\"microsoft.containerinstance/containergroups\",\"microsoft.servicefabricmesh/applications\",\"microsoft.timeseriesinsights/environments\",\"microsoft.timeseriesinsights/environments/eventsources\",\"microsoft.dbforpostgresql/servers\",\"microsoft.dbforpostgresql/flexibleservers\",\"microsoft.appconfiguration/configurationstores\",\"microsoft.peering/peerings\",\"microsoft.peering/peeringservices\",\"microsoft.cdn/profiles\",\"microsoft.cdn/cdnwebapplicationfirewallpolicies\",\"microsoft.datalakestore/accounts\",\"microsoft.dbformariadb/servers\",\"microsoft.databoxedge/databoxedgedevices\",\"microsoft.mixedreality/spatialanchorsaccounts\",\"microsoft.mixedreality/remoterenderingaccounts\",\"microsoft.analysisservices/servers\",\"microsoft.storagesync/storagesyncservices\",\"microsoft.signalrservice/signalr\",\"microsoft.signalrservice/webpubsub\",\"microsoft.notificationhubs/namespaces/notificationhubs\",\"microsoft.purview/accounts\",\"microsoft.apimanagement/service\",\"microsoft.avs/privateclouds\",\"microsoft.containerservice/managedclusters\",\"microsoft.maps/accounts\",\"microsoft.documentdb/databaseaccounts\",\"microsoft.batch/batchaccounts\",\"microsoft.digitaltwins/digitaltwinsinstances\",\"microsoft.devices/iothubs\",\"microsoft.devices/provisioningservices\",\"microsoft.logic/workflows\",\"microsoft.logic/integrationserviceenvironments\",\"microsoft.media/mediaservices\",\"microsoft.media/mediaservices/streamingendpoints\",\"microsoft.media/mediaservices/liveevents\",\"microsoft.streamanalytics/streamingjobs\",\"microsoft.web/staticsites\",\"microsoft.web/serverfarms\",\"microsoft.web/sites\",\"microsoft.web/sites/slots\",\"microsoft.web/hostingenvironments\",\"microsoft.web/hostingenvironments/multirolepools\",\"microsoft.web/hostingenvironments/workerpools\",\"microsoft.web/connections\",\"microsoft.hdinsight/clusters\",\"microsoft.cache/redis\",\"microsoft.cache/redisenterprise\",\"microsoft.classicstorage/storageaccounts\",\"microsoft.classicstorage/storageaccounts/blobservices\",\"microsoft.classicstorage/storageaccounts/tableservices\",\"microsoft.classicstorage/storageaccounts/fileservices\",\"microsoft.classicstorage/storageaccounts/queueservices\",\"microsoft.datalakeanalytics/accounts\",\"microsoft.aadiam/azureadmetrics\",\"microsoft.iotcentral/iotapps\",\"microsoft.resources/subscriptions\",\"microsoft.communication/communicationservices\",\"microsoft.botservice/botservices\",\"microsoft.bing/accounts\",\"microsoft.insights/qos\") and location in (\"eastus\",\"eastus2\",\"westus\",\"centralus\",\"northcentralus\",\"southcentralus\",\"northeurope\",\"westeurope\",\"eastasia\",\"southeastasia\",\"japaneast\",\"japanwest\",\"australiaeast\",\"australiasoutheast\",\"brazilsouth\",\"southindia\",\"centralindia\",\"westindia\",\"canadacentral\",\"canadaeast\",\"westus2\",\"westcentralus\",\"uksouth\",\"ukwest\",\"koreacentral\",\"koreasouth\",\"francecentral\",\"francesouth\",\"australiacentral\",\"southafricanorth\",\"centraluseuap\",\"eastus2euap\",\"australiacentral2\",\"southafricawest\",\"uaecentral\",\"uaenorth\")\n    ","options":{"resultFormat":"objectArray"}}
@mellieA mellieA added datasource/Azure Azure Monitor Datasource triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced labels Mar 3, 2023
@asimpson
Copy link
Contributor

asimpson commented Mar 6, 2023

Hi! I'm guessing this started happening when we moved away from hard-coding the location list. I'll try to look into this sometime tomorrow if possible.

@rgarcia89
Copy link

rgarcia89 commented Apr 6, 2023

Experiencing the same for Region Germany West Central. Europe West is shown properly.
Any idea @asimpson ?

@asimpson
Copy link
Contributor

asimpson commented Apr 6, 2023

This is not the first issue around namespaces/regions we've seen. We're working on a fix 🤞

@joslat
Copy link

joslat commented May 1, 2023

seems this is still not merged, I have the same issue on "Switzerland north". I believe the fix is not merged/released, right? do you have an estimation for having this released/live?

@bossinc
Copy link
Contributor

bossinc commented May 1, 2023

@joslat I see the changes in 9.5. Which version of Grafana are you use?

@rgarcia89
Copy link

I am on Grafana 9.5.1 and still am not seeing germany west central objects during an explore of my azure datasource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/Azure Azure Monitor Datasource effort/small triage/needs-confirmation used for OSS triage rotation - reported issue needs to be reproduced
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

7 participants