Repository navigation
Fix the Code App publish step: remove a flag the CLI rejects - #22
Merged
Merged
Conversation
`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>
There was a problem hiding this comment.
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-idargument. - 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The first "Deploy to Dev" run after #21 failed at "Deploy Code App" with:
pa app pushaccepts--environment-idonly when there is nopower.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.ps1no longer passes--environment-id. Nothing else changes.Testing
power.config.json.deploy-devrun 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