question

johnjohn-0472 avatar image
0 Votes"
johnjohn-0472 asked BobJohnson-6874 edited

How i can define "az keyvault set-policy" for a web app which i access from the Microsoft Partner Center

We manage our customers office 365 service through the Microsoft Partner Center as follow:-

92567-csp.png

now i want to run these commands to define az keyvault set-policy for an azure web app for one of our customers:-

 az login
 az account set --subscription "Pay-As-You-Go"
 az webapp identity assign --name "****" --resource-group "****"
 az keyvault set-policy --name "****" --object-id "***" --secret-permissions get list


but if i login using the account i use to login to our Microsoft Partner Center through the UI >> i will get an error that there is no subscription defined, as follow:-

 C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9>az login
 You have logged in. Now let us find all the subscriptions to which you have access...
 No subscriptions were found for 'None'. If this is expected, use '--allow-no-subscriptions' to have tenant level access

Any advice?
Thanks



not-supported
csp.png (42.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers