Azure / Azure/azure-powershell
Provide fully asyncronous deployment support
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
## Description of the new feature
Deployment creation cmdlets 'wait' for deployments to complete. Even if the 'AsJob' parameter is used, the Job cointinues to poll until the deployment is complete.
Given that the ARM api allows getting the status of a deployment (Get-AzResourceGroupDeployment), and allows retrieving the deployment operation results (Get-AzResourceGroupDeploymentOperation), the deployment cmdlets should allow fully asynchronous operation, so that, for very long deployments, customers may start a deployment, and check (or wait for) deployment status manually.
This will allow customers to avoid taking up computing resources while a deployment proceeds.
## Proposed implementation details (optional)
Proposed cmdlet flow:
```
$depl = Start-AzResourceGroupDeployment
$depl | Wait-AzResourceGroupDeployment
$final = ($depl | Get-AzResourceGroupDeployment)
```
Contributor guide
Assessment
This issue has not been assessed yet.