Hello , Has anyone tried to implement/access azure storage with service principal or SAS key via ansible ?
Regards, Prakash. On Wednesday, July 24, 2019 at 3:14:28 PM UTC+8, Prakash Sharma wrote: > > Hello Experts , > > I am trying to download/upload blobs with ansible azure_rm_storageblob > module in AWX ( I have tried in Ansible core too, got the same error) , and > get below error > > > Error getting keys for account XXXXXXXXX - Azure Error: > AuthorizationFailed\nMessage: The client 'YYYYYYYYYYYYYYYYYYYYYY' with > object id 'YYYYYYYYYYYYYYYYYYYYYYYYY' does not have authorization to > perform action 'Microsoft.Storage/storageAccounts/listKeys/action' over > scope > '/subscriptions/ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ/resourceGroups/RG-DataEngineering-Dev/providers/Microsoft.Storage/storageAccounts/XXXXXXXXXXXXXX' > > or the scope is invalid. If access was recently granted, please refresh > your credentials." > > > If I use the same service principal key in the python code , I am able to > upload and download blobs without any error . > > I am wondering , when using service pricipal authentication with Azure , > why it is doing listKeys operation. > > I hope someone will understand this issue or might have faced this, > looking to hear back from them. > > regards, > Prakash. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fea4f212-30dc-4733-9be0-94fc8445aeac%40googlegroups.com.
