diff --git a/src/templates/power-platform/.devcontainer/devcontainer.json b/src/templates/power-platform/.devcontainer/devcontainer.json index 88a151c..ac5dbdc 100644 --- a/src/templates/power-platform/.devcontainer/devcontainer.json +++ b/src/templates/power-platform/.devcontainer/devcontainer.json @@ -68,31 +68,11 @@ } }, - // Recommended secrets — users are prompted for these when creating a Codespace - "secrets": { - "DATAVERSE_ENV_URL": { - "description": "Your Dataverse / Power Platform environment URL (e.g. https://contoso.crm4.dynamics.com). Used by pac and txc to connect to your environment.", - "documentationUrl": "https://learn.microsoft.com/power-platform/developer/cli/reference/auth#pac-auth-create" - }, - "AZURE_TENANT_ID": { - "description": "Azure Active Directory tenant ID. Used by Azure CLI and Power Platform authentication.", - "documentationUrl": "https://learn.microsoft.com/azure/active-directory/fundamentals/how-to-find-tenant" - }, - "GH_TOKEN": { - "description": "GitHub personal access token. Needed for private repos, GitHub Packages (NuGet), and GitHub CLI.", - "documentationUrl": "https://docs.github.com/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens" - }, - "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" - } - }, - - // 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 "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" }, "postCreateCommand": "echo '✅ Power Platform dev container ready.'",