Added AI Generate Azure DevOps Task.

This commit is contained in:
2026-02-14 19:31:23 +01:00
commit d42e1bf8b8
13 changed files with 942 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
trigger: none
pr: none
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- task: AzureFederatedAuth@1
displayName: Get ARM OIDC token
inputs:
serviceConnectionARM: 'my-arm-service-connection'
setGitAccessToken: true
- bash: |
set -euo pipefail
if [[ -z "${ARM_OIDC_TOKEN:-}" ]]; then
echo "ARM_OIDC_TOKEN is missing"
exit 1
fi
if [[ -z "${ARM_TENANT_ID:-}" ]]; then
echo "ARM_TENANT_ID is missing"
exit 1
fi
if [[ -z "${ARM_CLIENT_ID:-}" ]]; then
echo "ARM_CLIENT_ID is missing"
exit 1
fi
if [[ -z "${GIT_ACCESS_TOKEN:-}" ]]; then
echo "GIT_ACCESS_TOKEN is missing"
exit 1
fi
echo "ARM variables are populated."
echo "Tenant: $ARM_TENANT_ID"
echo "Client: $ARM_CLIENT_ID"
displayName: Validate exported variables