Repository navigation
Conversation
…tart and stop commands
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Thank you for your contribution mlidodo! We will review the pull request and get back to you soon. |
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Start and stop can expose sensitive values, report success before completion, or fail after the action succeeds when app-read permission is absent.
3 open issues
What changed in this PR
Adds az containerapp start and az containerapp stop to the existing Container Apps command module, addressing #27433.
Changes:
- Registers both commands with
--no-waitsupport and help examples. - Adds shared REST request handling and asynchronous completion polling.
- Adds unit tests for no-wait behavior and both polling response paths.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/containerapp/tests/latest/test_containerapp_start_stop_unit.py |
Tests no-wait requests and both polling paths. |
src/azure-cli/azure/cli/command_modules/containerapp/custom.py |
Adds command handlers with error handling. |
src/azure-cli/azure/cli/command_modules/containerapp/commands.py |
Registers start and stop commands. |
src/azure-cli/azure/cli/command_modules/containerapp/_help.py |
Adds command descriptions and examples. |
src/azure-cli/azure/cli/command_modules/containerapp/_clients.py |
Implements shared start/stop requests and polling. |
Review effort: Balanced
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This branch has not been deployed
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.


🤖 PR Validation — ❌ Action needed
❌AzureCLI-FullTest
Related command
az containerapp start,az containerapp stopDescription
Add commands to start and stop Container Apps, including support for
--no-waitand polling for completion. Closes #27433Testing Guide
Unit tests cover no-wait behavior and both async polling response paths.
History Notes
[Containerapp]
az containerapp start,az containerapp stop: Add start and stop commandsThis checklist is used to make sure that common guidelines for a pull request are followed.