-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
I have an SF app - reliable service -accessing KeyVault - locally I have been using az cli connection string AzureServicesAuthConnectionString- RunAs=Developer; DeveloperTool=AzureCli
this has stopped working SLN running under freshly installed VS 2019 (2017 uninstalled) with az CLI failing to create a directory (SF running as local system - default)
There seems to be conflicting information about whether the scenario of local debug using az cli works under fabric or not - I am under impression that I have been using it but I am seeing statements that it is not supported and cannot work and cannot confirm anymore (with my local environment no longer working)
Is this "now" supported scenario?
seeing the stacktrace, it may be more appropriate to raise this with az-cli team?
Exception or Stack Trace
Parameters: Connection String: RunAs=Developer; DeveloperTool=AzureCli, Resource: https://vault.azure.net, Authority: https://login.windows.net/............ Exception Message: Tried to get token using Azure CLI. Access token could not be acquired. Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli_main.py", line 32, in
az_cli = get_default_cli()
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core_init.py", line 492, in get_default_cli
help_cls=AzCliHelp)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\core_init_.py", line 50, in init
ensure_dir(azure_folder)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\knack\util.py", line 38, in ensure_dir
os.makedirs(d)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\WINDOWS\system32\config\systemprofile\.azure'
To Reproduce
configure az cli azure connection string and run app running app authenticator
Expected behavior
This used to work so I am trying to understand the underlying cause why this stopped working after (coincidentally) VS 2019 installation
Setup (please complete the following information):
- OS: Win 10
- IDE : VS 2019
- Version of the Library used - SDK 3.3.644