Step 3: Create and scan a Cloud Environment for Azure (API)
Recap You have created the Azure app registration, federated identity credential, and service principal for Snyk. Now you can create and scan a Cloud Environment.
To send a request to the Snyk API to create and scan an Azure Cloud Environment, you must provide the subscription ID, tenant ID, and application ID in the API request body.
Send the Snyk API request
Send a request to the Snyk API in the format that follows to create the Cloud Environment:
Understand the API response
The response is a JSON document containing details about your newly created Cloud Environment. For example:
Snyk automatically triggers a scan when an environment is created.
The data.attributes.status
field in the JSON output is set to in_progress.
This means that Snyk has created your environment and has started scanning it.
To check if your scan is finished, see Check to see if the scan is finished.
To manually re-scan an environment, see Scan a Cloud Environment.
What's next?
You can now do the following:
View the cloud configuration issues Snyk finds. See Cloud and IaC+ issues.
Prioritize your vulnerabilities with cloud context.
Last updated