Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wait/no-wait support to Commands #1528

Open
19 of 23 tasks
tjprescott opened this issue Dec 12, 2016 · 27 comments
Open
19 of 23 tasks

Add wait/no-wait support to Commands #1528

tjprescott opened this issue Dec 12, 2016 · 27 comments
Assignees
Labels
Compute az vm/vmss/image/disk/snapshot feature-request Network az network vnet/lb/nic/dns/etc... Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@tjprescott
Copy link
Member

tjprescott commented Dec 12, 2016

PR #1463 added support for the ... wait command for select command groups and the --no-wait option for several long-running operations in those groups. This issue is for identifying and tracking which commands still need this functionality exposed. Please nominate additional commands to be given wait/no-wait capability in the comments.

Needed

Completed

@derekbekoe derekbekoe added this to the Sprint 12 milestone Jan 18, 2017
@derekbekoe
Copy link
Member

This is needed for end of Sprint 12 right?
cc: @johanste, @yugangw-msft

@derekbekoe derekbekoe added Compute az vm/vmss/image/disk/snapshot Network az network vnet/lb/nic/dns/etc... labels Jan 18, 2017
@derekbekoe derekbekoe removed this from the Sprint 12 milestone Jan 18, 2017
@derekbekoe
Copy link
Member

Removed milestone as this is an additive change.

@tjprescott
Copy link
Member Author

I would think this is not really a GA-mandatory item. It would simply be an additive feature we can incrementally roll out over time. This issue is to track those items for which it would be nice to have.

@yangl900
Copy link

Please add support for "az vm access" as well, the command took minutes to complete, it's practically not possible to manage large set of VMs without --no-wait.

@tjprescott tjprescott self-assigned this Mar 8, 2017
@tjprescott tjprescott modified the milestones: Sprint 14, Backlog Mar 8, 2017
@tjprescott tjprescott modified the milestones: Backlog, Sprint 14 Mar 28, 2017
@jamescgibson
Copy link

I'd love to get --no-wait on az disk delete

@mrx88
Copy link

mrx88 commented Dec 10, 2017

I would really like to get --no-wait for "az network nic create" and "am vm extension set" commands.

@weznagwama
Copy link

az group deployment delete --no-wait would be great, ATM there's no way to async delete a batch of deploys, have to serially do it one by one and it takes a long time.

@tjprescott tjprescott modified the milestones: Backlog, Sprint 41 Jun 20, 2018
@tjprescott tjprescott removed this from the Sprint 41 milestone Jun 28, 2018
@yugangw-msft yugangw-msft removed the Compute az vm/vmss/image/disk/snapshot label Aug 8, 2018
@tjprescott tjprescott removed the Network az network vnet/lb/nic/dns/etc... label Sep 24, 2018
@dcbrown16
Copy link

I have a customer request for --no-wait on az snapshot create. Thanks!

@razvangoga
Copy link

az postgres server firewall-rule create and az postgres server firewall-rule delete could use the same flag. I'm provisioning a PgSQL db with firewall rules from azure devops and from the ~8 mins pipeline run time ~4 are just to set 5 firewall rules

@haroldrandom haroldrandom added Compute az vm/vmss/image/disk/snapshot Feature Network az network vnet/lb/nic/dns/etc... labels Oct 25, 2019
@emoscardini
Copy link

emoscardini commented Nov 25, 2019

If possible, please add "az sig" to the list

@tehyatt
Copy link

tehyatt commented Dec 4, 2019

I need wait for az acr network-rule add. It is not a long running operation, but it's long enough to fail in my use-case. I'm using terraform to a list of outbound IP addresses from an app service to the existing list of on-premise IPs. Terraform doesn't support modifying that list after creation of the acr (see hashicorp/terraform-provider-azurerm#4936). So I'm using a null resource with a provisioner. But it launches all the az commands without waiting, and so some of them fail with "Error: Error running command 'az acr network-rule add --name registryname --ip-address xxx.xxx.xxx.xxx': exit status 1. Output: ERROR: Another operation is in progress for the resource /subscriptions/****/resourceGroups/rg-name/providers/Microsoft.ContainerRegistry/registries/registryname. Please try after some time."

@GitMrZ
Copy link

GitMrZ commented Dec 18, 2019

Need a wait option on:
az network dns zone delete

I keep my zone data in the flat file format to feed internal DNS servers. The delete can take a few seconds or several minutes for a 400 record zone. Obviously do not want zone down long. THX.

@naammeinkyahai
Copy link

Please add the ability to --no-wait for az postgres db delete

@yonzhan yonzhan modified the milestones: S166, Backlog Mar 5, 2020
@yonzhan yonzhan added the Service Attention This issue is responsible by Azure service team. label Mar 5, 2020
@adamrushuk
Copy link

Please add --no-wait support for az image delete?

@ghost
Copy link

ghost commented Nov 2, 2020

I need a wait option for storage account. I'm having issues creating a container right after the storage account is created using az cli.

#!/usr/bin/env bash

az storage account create \
  --name "samassimoarm" \
  --resource-group "rgMassimoTf" \
  --location "South Central US" \
  --default-action 'Allow' \
  --sku Standard_LRS


while true; do
  PROVISIONED=`
    az storage account show \
      --name "samassimoarm" \
      --resource-group "rgMassimoTf" \
      --query [provisioningState] \
      --output tsv
  `

  [[ $PROVISIONED == 'Succeeded' ]] && break
done

CONNECTION_STRING=`
  az storage account show-connection-string \
    --name "samassimoarm" \
    --resource-group "rgMassimoTf" \
    --output tsv
`

az storage container create \
  --name "arm-templates" \
  --account-name "samassimoarm" \
  --connection-string "$CONNECTION_STRING"

@sdavis3
Copy link

sdavis3 commented Jun 7, 2022

az vm run-command needs --no-wait option.

Example command:

az vm run-command invoke -g rgName -n vmName --no-wait --command-id RunPowerShellScript --scripts @c:\temp\run_this_script.ps1

@zhoxing-ms
Copy link
Contributor

@sdavis3 If you have new requirements, please create a feature request. We will arrange our development plan according to the priority.

@michelletaal-shell
Copy link

michelletaal-shell commented Sep 14, 2022

I'd also like to nominate az sql db import/export for a no-wait
But, I would highly suggest to actually add this flag as an option to all existing commands as a global parameter.

Flagged in #23885

@darkoa-msft
Copy link
Member

What about mandating wait support for any API that returns 202?
I do not understand how this issue can be open for 8 years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute az vm/vmss/image/disk/snapshot feature-request Network az network vnet/lb/nic/dns/etc... Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests