Enhance wait command to support polling azureAsyncOperation
- 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
Assessment
This issue has not been assessed yet.