Created
March 28, 2020 05:28
-
-
Save brucezlata/fae72eea57c9c29a02477a2363398df8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az ad sp create-for-rbac -n "testAPP" | |
``` | |
Get access token | |
curl -X POST -d 'grant_type=client_credentials&client_id=39b4933e-dee9-4a53-a7ea-0e95a67c20a9&client_secret=[HzeN26AM6ub4PbwtMKp:c/ZytpKyWB@&resource=https%3A%2F%2Fmanagement.azure.com%2F' https://login.microsoftonline.com/8148145f-0049-48e5-b19b-58ff7da54baf/oauth2/token | |
``` | |
Access ARM | |
curl -X GET -H "Authorization: Bearer x" -H "Content-Type: application/json" https://management.azure.com/subscriptions/[]/resources?api-version=2019-10-01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment