In Azure DevOps, a variable group is a reusable collection of configuration values and secrets (like API keys, URLs, or environment settings) that can be shared across multiple pipelines and releases. Variable groups store the credentials and configuration that pipelines need at runtime. You’ll create three groups — one for authentication, one for Teams notifications, and one for environment options. Teams is optional but I thought it would be helpful if my pipelines were sending me teams messages in a channel dedicated to it’s activity rather than emailing me. Variable groups can optionally be backed by an Azure Key Vault to store variable values if you’d prefer they not be stored in DevOps.Using a Key Vault is considered best practice but if setting in a lab, this is addtional complexity.
This group is used by every pipeline that interacts with Power Platform.
| Variable | Value | Secret? |
|---|---|---|
| PP_TENANT_ID | Your Entra tenant ID (GUID) | No |
| PP_APPLICATION_ID | Application (client) ID from Part 3 | No |
| PP_CLIENT_SECRET | Client secret value from Part 3 | Yes (click the lock icon) |
To avoid the “Permit” prompt on first pipeline run:
Tip: If you click “Open access” now, any pipeline in the project can use these credentials. For production, scope it to specific pipelines after setup is complete or don’t pre-authorize that pipeline
This group provides the Teams webhook URL for pipeline notifications.
| Variable | Value | Secret? |
|---|---|---|
| TeamsWebhookUrl | Your Teams webhook URL | Yes |
Using Workflows (recommended — Microsoft is deprecating Connectors):
This group tells the post-provisioning pipeline which environment to copy data from.
| Variable | Value | Secret? |
|---|---|---|
| database-source-environment-guid | GUID of your known good source environment | No |
Option A: Power Platform Admin Center
Option B: PowerShell
Install-Module Microsoft.PowerApps.Administration.PowerShell -Force Add-PowerAppsAccount Get-AdminPowerAppEnvironment | Select-Object DisplayName, EnvironmentName | Format-Table
The EnvironmentName column contains the GUID.
Original Post https://www.atomicax.com/content/5-devops-variable-groups