-
Notifications
You must be signed in to change notification settings - Fork 242
Description
If I try to use the Entra ID authentication scaffolder when I'm logged in using my Microsoft organization account, the dotnet scaffold tool will take a long time during the "Discovering scaffolders" step, about 5min. The discovery step eventually seems to time out and then only the Aspire scaffolder is displayed. None of the other ASP.NET Core scaffolders including the Entra ID scaffolder show up. I believe this is a manifestation of #3279.
If I instead login with my personal Azure subscription, it seems to work around this problem and the ASP.NET Core & Entra ID scaffolders do show up.
But now if I select the Entra ID scaffolder, I'm asked to make from a very long list of usernames that all appear to be the same:
But none of these users are from my personal Azure subscription, so I'm not sure why they show up here.
If I just pick the first username and select that I want to create a new app registration I get asked to pick from a similarly long list of indistinguishable tenants. If I just pick the first tenant, I get stuck waiting on this Create or Select Application screen:
After waiting a long time, I get this connection aborted error from the Azure CLI:
Error executing 'az ad app list': ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 787, in
urlopenting 'dotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 534, in
_make_requestdotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 565, in
getresponse 'dotnet-scaffold-aspnet'
File "http\client.py", line 1430, in getresponse
File "http\client.py", line 331, in begin
File "http\client.py", line 300, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 667, in send
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 841, in
urlopenting 'dotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 474, in
incrementng 'dotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/util.py", line 38, in reraise
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 787, in
urlopenting 'dotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 534, in
_make_requestdotnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 565, in
getresponse 'dotnet-scaffold-aspnet'
File "http\client.py", line 1430, in getresponse
File "http\client.py", line 331, in begin
File "http\client.py", line 300, in _read_status
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without
response')) 'dotnet-scaffold-aspnet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line
666, in executetnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line
734, in _run_jobs_seriallyld-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line
726, in _run_jobnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/commands.py",
line 51, in graph_err_handleraspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line
703, in _run_jobnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line
336, in __call__net-scaffold-aspnet'
File
"D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line
120, in handler
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/custom.py",
line 761, in list_applicationsspnet'
File
"D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/_msgrpah/_graph_clien
t.py", line 91, in application_list
File
"D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/_msgrpah/_graph_clien
t.py", line 57, in _send
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 1053, in
send_raw_requestnet-scaffold-aspnet'
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 703, in send
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 682, in send
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without
response')) 'dotnet-scaffold-aspnet'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Initializing Entra ID scaffolding model...
Registering project...
Error registering application: Could not execute because the specified command or file was not found.
Failed to Register App.
I was able to get around the Entra ID scaffolder choking on my org subscriptions by logging out explicitly from my org account (az logout --username [username]). Now when I try to create a new app registration I hit this:
If I try to use an existing app registration, I get a similar error:
I also occasionally see the ASP.NET Core and Entra ID scaffolders just disappear when I run dotnet scaffold even when discovery the scaffolders doesn't take a long time.