[Containerapp] az containerapp logs show: Use replica log stream endpoint - #34048
[Containerapp] az containerapp logs show: Use replica log stream endpoint#34048njucz (njuCZ) wants to merge 2 commits into
Conversation
…oint Use the replica container logStreamEndpoint for console logs so express apps do not depend on eventStreamEndpoint. Continue using the container app eventStreamEndpoint for system logs and document the fix.
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The updated log streaming path still retrieves an auth token but does not apply it to the outgoing request (Authorization header is a literal placeholder), which can break authentication and is dead code.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates az containerapp logs show to stream console logs using the replica container’s logStreamEndpoint (to avoid depending on the container app eventStreamEndpoint for console logs), while continuing to use the container app eventStreamEndpoint for system logs. Adds a release history note for the change.
Changes:
- For console logs, fetch the replica payload and use the selected container’s
logStreamEndpointdirectly. - For system logs, use the container app
properties.eventStreamEndpointdirectly. - Add a
HISTORY.rstentry documenting the behavior change.
File summaries
| File | Description |
|---|---|
| src/azure-cli/HISTORY.rst | Adds a release note for the az containerapp logs show endpoint fix. |
| src/azure-cli/azure/cli/command_modules/containerapp/custom.py | Switches console log streaming to use per-replica container logStreamEndpoint; keeps system logs on eventStreamEndpoint. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
🤖 PR Validation — ❌ Action needed
❌AzureCLI-FullTest
Use the replica container logStreamEndpoint for console logs so express apps do not depend on eventStreamEndpoint. Continue using the container app eventStreamEndpoint for system logs and document the fix.
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.