Forum Discussion
Identifying a pipeline type
No Direct Key for "Type" unfortunately, neither the Releases API nor the Deployments API includes a direct key like "type": "application" or "type": "infrastructure". However, you can infer the pipeline’s purpose by inspecting a few strategic fields:
1. Artifacts Section
Look at the artifacts array in the release definition:
• If the artifact is from a build pipeline, it likely relates to application deployment.
• If the artifact is from a repository (e.g., ARM templates, Bicep files, Terraform), it’s likely infrastructure.
"artifacts": [
{
"type": "Build",
"definitionReference": {
"project": { "id": "..." },
"definition": { "id": "123", "name": "WebApp-CI" }
}
}
]
2. Tasks and Deployment Steps
Expand the environments > deployPhases > workflowTasks section:
• Look for tasks like AzureRmWebAppDeployment, DotNetCoreCLI, or PublishBuildArtifacts → Application
• Look for tasks like AzureResourceManagerTemplateDeployment, TerraformCLI, or BicepDeploy → Infrastructure
3. Release Variables or Parameters
Sometimes developers embed hints in variables or releaseParameters. You can scan for keywords like:
• "resourceGroup", "templateFile", "infra" → Infrastructure
• "appName", "slotName", "packagePath" → Application
4. Deployment Target
Check the environment or deploymentGroup:
• If it targets a VM or Kubernetes cluster, it might lean infrastructure.
• If it targets an App Service or Function App, it’s likely application.