question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Az login "getaddrinfo" failed for api-dogfod.resources.windows-int.net

See original GitHub issue

Related command

az cloud register --name Dogfood --endpoint-active-directory-graph-resource-id https://graph.ppe.windows.net/ \
         --endpoint-active-directory-resource-id https://management.core.windows.net/ \
         --endpoint-gallery https://df.gallery.azure-test.net/ \
         --endpoint-resource-manager https://api-dogfood.resources.windows-int.net/ \
         --endpoint-active-directory https://login.windows-ppe.net
az cloud set --name Dogfood
az login

Describe the bug <urllib3.connection.HTTPSConnection object at 0x04F97760>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed

To Reproduce

az cloud register --name Dogfood --endpoint-active-directory-graph-resource-id https://graph.ppe.windows.net/ \
         --endpoint-active-directory-resource-id https://management.core.windows.net/ \
         --endpoint-gallery https://df.gallery.azure-test.net/ \
         --endpoint-resource-manager https://api-dogfood.resources.windows-int.net/ \
         --endpoint-active-directory https://login.windows-ppe.net
az cloud set --name Dogfood
az login

After the above cmdlets, login through the auto pop-up window (https://login.windows-ppe.net/organizations/oauth2/v2.0/authorize

Environment summary Shell type: Powershell (run as Admin) { “azure-cli”: “2.41.0”, “azure-cli-core”: “2.41.0”, “azure-cli-telemetry”: “1.0.8”, “extensions”: { “connectedk8s”: “1.3.4”, “k8s-configuration”: “1.6.0” } }

Additional context I am running az login after setting cloud to Dogfood environment. I’ve already checked my firewall and proxy settings. I have turned on Defender firewall, and proxy is off as well.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jiaslicommented, Dec 8, 2022

I think this is simply because api-dogfod.resources.windows-int.net is not a valid domain:

image

> nslookup api-dogfod.resources.windows-int.net
Server:  cbrspaanuf5b01--commoncorp2-ip3.network.microsoft.com
Address:  10.50.50.50

*** cbrspaanuf5b01--commoncorp2-ip3.network.microsoft.com can't find api-dogfod.resources.windows-int.net: Non-existent domain

According to https://github.com/Azure/azure-cli/issues/20846#issue-1089659664, it should be

- api-dogfod.resources.windows-int.net
+ api-dogfood.resources.windows-int.net

I guess you missed an o in the URL.

0reactions
leeyun53commented, Dec 8, 2022

@jiasli Oops, yes, after adding an o it worked. Thanks so much for taking a close look into it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR Azure CLI behind a proxy that intercepts traffic
AZ LOGIN | ERROR Azure CLI behind a proxy that intercepts traffic. Hi,. Can anyone please help with this, currently I'm on VPN...
Read more >
Setting up az cli, however I cannot connect due to max retries ...
I'm trying to connect to our company's Org on dev.azure.com. I've searched and have not come across anything that helps. Thanks - please...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found