CrCliff opened a new pull request, #2062:
URL: https://github.com/apache/libcloud/pull/2062
## [AZURE_ARM] Update AD endpoint for Azure US GovCloud
### Description
The AZURE_ARM provider was using the incorrect Active Directory endpoint for
the Azure US Government environment.
I was seeing the following error when attempting to use the provider with
the environment.
```python
cls = get_driver(Provider.AZURE_ARM)
driver = cls(
cloud_environment="AzureUSGovernment",
tenant_id="...",
subscription_id="....",
key="...",
secret="...",
)
# BaseHTTPError: Confidential Client is not supported in Cross Cloud request.
```
The `az cloud list` command provides the current AD endpoint.
```bash
$ az cloud list
{
"name": "AzureUSGovernment",
"endpoints": {
"activeDirectory": "https://login.microsoftonline.us",
// ....
},
// ...
},
```
After updating the endpoint the service principal authenticates as expected.
### Status
- done, ready for review
### Checklist
- [ ] [Code
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ]
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]