-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Unable to create service principal with azure cli from git bash shell: InvalidSchema: No connection adapters were found for 'C:/Program Files/Git/... #16317
Comments
HI @fengzhou-msft could you pls help to check if this related with git bash? If not, psl help to redirect to Yong's team. thanks |
This Bug was never solved. The issue Brian mentioned was created in the wrong repo and never solved by the azure-cli team. Any updates? Thanks |
Since the
Which gets around the bug in the Azure CLI and let me create a role assignment programmatically. |
You need to set |
Thank you @fengzhou-msft for pointing us in the right direction. |
Thanks @fengzhou-msft. I had to do something like this |
I can confirm that if setting MSYS_NO_PATHCONV=1 and using the newest cli it works as intended with gitbash. This issue can be closed. Thanks everyone! |
Just my 2 cents for unix newbies: export MSYS_NO_PATHCONV=1 |
I don't think this should be closed. By default |
This is not an issue of Azure CLI, but Git Bash which translates the URL before Azure CLI can even receive it. Please see #16317 (comment) |
Definitely an issue with git bash versus powershell. I was in VS Code on Windows and tried the command below: and received the error: When I put the exact same command in Powershell, it worked fine. I tried the workaround of using MSYS_NO_PATHCONV=1 and was still having the problem. |
Describe the bug
When trying to create an azure service principal from git bash or programatically from bash scripts, the task fails with the following error:
This is a long persistent error and is still not solved. We need to bootstrap environments programatically.
The command involved is:
I also tried to change the read write permissions of the
C:/Program Files/Git and its subfolders, no change.
Strange is, the sp gets created but incomplete and the command does not return the client secret. Also the role assigment gets created to an unknown identity - see screenshot
To Reproduce
Issue the following command:
Expected behavior
Execute command and return client secret or other variable depending on the query
Environment summary
Windows 10
Git Bash
Additional context
![2020-12-18 11_14_36-Window](https://user-images.githubusercontent.com/10906913/102603168-bb2e4f80-4122-11eb-8d87-91211f54afb3.png)
The text was updated successfully, but these errors were encountered: