Advertisement
kromm77

[AZURE][CLI] Set tenant and subscription

Sep 1st, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. azure logout
  2.  
  3. # set tenant , tenantId is DirectoryId on azure web
  4. # get tenantid
  5. az account tenant list
  6.  
  7. # set tenant on login
  8. az login --tenant d40c48cb-7e6f-450b-aa41-25a426b8be84
  9.  
  10. # set subscription
  11. # get subscription list
  12. azure account list
  13.  
  14. # set subscription
  15. az account set --subscription 80e14642-a262-4b13-a7a4-2135da1bf3c3
Tags: azure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement