Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/templates/power-platform/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,19 @@
"AZURE_DEVOPS_EXT_PAT": {
"description": "Azure DevOps Personal Access Token. Used by the Azure DevOps CLI extension for work items, pipelines, and repos.",
"documentationUrl": "https://learn.microsoft.com/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate"
},
"AZURE_DEVOPS_ORGANIZATION": {
"description": "Your Azure DevOps organization URL (e.g. https://dev.azure.com/myorg). Used to set the default org for the Azure DevOps CLI.",
"documentationUrl": "https://learn.microsoft.com/azure/devops/cli/get-started"
}
},

// Auto-run on container start: keep pac + txc up to date, configure az devops
// Auto-run on container start: keep pac + txc + devkit templates up to date, configure az devops
"postStartCommand": {
"update-pac": "[ -f /etc/devcontainer-pac-cli/auto-update ] && dotnet tool update --global Microsoft.PowerApps.CLI.Tool 2>/dev/null || true",
"update-txc": "[ -f /etc/devcontainer-txc-cli/auto-update ] && dotnet tool update --global TALXIS.CLI 2>/dev/null || true",
"configure-devops": "[ -n \"${AZURE_DEVOPS_EXT_PAT:-}\" ] && az devops configure --defaults organization=https://dev.azure.com/TALXIS 2>/dev/null || true"
"update-pac": "[ -f /etc/devcontainer-pac-cli/auto-update ] && dotnet tool update --tool-path /usr/local/bin Microsoft.PowerApps.CLI.Tool 2>/dev/null || true",
"update-txc": "dotnet tool update --tool-path /usr/local/bin TALXIS.CLI 2>/dev/null || true",
"update-devkit-templates": "dotnet new install TALXIS.DevKit.Templates.Dataverse 2>/dev/null || true",
"configure-devops": "[ -n \"${AZURE_DEVOPS_EXT_PAT:-}\" ] && [ -n \"${AZURE_DEVOPS_ORGANIZATION:-}\" ] && az devops configure --defaults organization=${AZURE_DEVOPS_ORGANIZATION} 2>/dev/null || true"
},

"postCreateCommand": "echo '✅ Power Platform dev container ready.'",
Expand Down
Loading