Step 1: Download Azure app registration IaC template or script (API)
Retrieve the IaC template or script
curl -X POST \
'https://api.snyk.io/rest/orgs/YOUR-ORGANIZATION-ID/cloud/permissions?version=2022-12-21~beta' \
-H 'Authorization: token YOUR-API-TOKEN' \
-H 'Content-Type:application/vnd.api+json' -d '{
"data": {
"attributes": {
"options": {
"subscription_id": "YOUR-SUBSCRIPTION-ID",
"tenant_id": "YOUR-TENANT-ID"
},
"type": "INPUT-TYPE",
"platform": "azure"
},
"type": "permissions"
}
}'Understand the API response
Unescape the JSON
Use jq
jqTransform the content manually
What's next?
Last updated
Was this helpful?

