Azure / Azure/azure-cli

Enhance wait command to support polling azureAsyncOperation

Open
#3,916 4 comments 0 reactions 1 assignee Assigned to @qianwens View on GitHub
feature-request Infrastructure Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Description

cli_generic_wait_command can register a wait command and the wait command polls on *something*. Typically that has been a getter. For our create server scenario, before the async operation of PUT server finished, GET server will always return 404 NotFound, and if the operation failed finally, the getter will keep to return 404.

So we want the wait command to poll azureAsyncOperation, since it returns correct operation status and can return the error message if the operation failed (polling getter cannot capture the error messages). Hope can enhance the wait command to meet the requirement. The solution may be: retrieve the operation ID for "--no-wait" commands, store it, and enhance the wait command template to accept an operation ID.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.