Closed Bryksin closed 6 years ago
@bganapa any recommendations here?
@Briksins It should have worked, though I have not tried with Python SDK+Service Principal before. I will get back to you.
Ok got it working, it was our fault, the ticket can be closed
The problem was in the setup of the admin panel. Basically here is an instruction:
So our problem was that we didn't grant in Azure Stack AMI permission to the App to manage resource group.
Hello
We are using Azure Stack and we would like to authenticate through service rather than a specific user with password.
In Read The Docs page showed an example of authentication only through user credentials, but no service.
We still attempted to do so, by creating application in Azure Cloud Admin portal (as AD -> App Registration option exists only in Cloud Panel, not in Azure Stack Panel) We grant to the application all permissions to the Azure Stack trough portal and used
ServicePrincipalCredentials
class instead ofUserPassCredentials
When we authorisation trough App - a credential object is successfully created with valid tokens and so on, however, it cant see anything, no subscriptions, no resource groups, no nothing. If we authorise trough user personal credentials then everything works fine.
Code snippet:
Is there any way to authenticate through service with Azure Stack or only specific user credentials supported at this time?
Best Regards