Skip to content

Fix the Code App publish step: remove a flag the CLI rejects - #22

Merged
kippolitov merged 1 commit into
mainfrom
fix/pa-push-environment-flag
Oct 6, 2026
Merged

kippolitov merged 1 commit into
mainfrom
fix/pa-push-environment-flag

Conversation

@kippolitov

Copy link
Copy Markdown
Owner

Why

The first "Deploy to Dev" run after #21 failed at "Deploy Code App" with:

error: unknown option '--environment-id'

pa app push accepts --environment-id only when there is no power.config.json. When the file exists, as it always does in the pipeline, the CLI takes the environment from it and rejects the flag. The script passed the flag anyway; it had only been tried in a folder without the file.

What changes

scripts/deploy/deploy-app.ps1 no longer passes --environment-id. Nothing else changes.

Testing

  • Reproduced the failure locally with a dummy power.config.json.
  • With the fix, the same dummy setup and dummy service principal credentials get past option parsing and reach sign-in, where they fail as expected.
  • Still not tested: a real publish as the service principal. That needs the pipeline's secrets, so the deploy-dev run after merging is the test. The dev app is already shared with the dev service principal with edit access.

State of dev

Unaffected. Every step before the publish passed in the failed run, and the app's content was already current from the deploy before it.

🤖 Generated with Claude Code

`pa app push` rejects --environment-id as an unknown option when a
power.config.json is present; it takes the environment from that file.
The first pipeline run with the new CLI failed on this. The flag had
only been tried in a folder without the file.

Verified locally against a dummy app config with dummy service
principal credentials: the options are accepted and the CLI proceeds
to sign-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 03:17
@kippolitov
kippolitov merged commit 9a4fc31 into main Oct 6, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused fix matches the observed failure, preserves environment configuration, and passes CI.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes Code App deployment by relying on power.config.json for environment selection.

Changes:

  • Removes the rejected --environment-id argument.
  • Documents the failed pipeline run and correction.
File Description
scripts/​deploy/​deploy-app.ps1 Removes the unsupported CLI flag.
specs/​003-github-actions-cicd/​tasks.md Records deployment failure and verification status.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kippolitov
kippolitov deleted the fix/pa-push-environment-flag branch October 6, 2026 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants