microsoftarchive / BatchAI

Repo for publishing code Samples and CLI samples for BatchAI service
MIT License
125 stars 62 forks source link

Update arguments to ServicePrincipalCredentials() #60

Closed spdjudd closed 6 years ago

spdjudd commented 6 years ago

ServicePrincipalCredentials() in the latest msrestazure package version 0.5.0, included with azure 4.0, ignores the token_uri arg. Both the latest and previous versions take a tenant arg that is used to build the correct token URI.

This change updates utilities/config.py to provide the tenant arg and addresses issue #58

llidev commented 6 years ago

Thanks for the fix. Tested backward compatibility for azure 2.0.0.