Skip to content

Instantly share code, notes, and snippets.

View brucezlata's full-sized avatar

Bruce Zlata brucezlata

View GitHub Profile
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