From 4d7418a2dc4a64b28d3adfa362dbd9b8d52240e7 Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Mon, 14 Mar 2016 17:20:29 -0700 Subject: [PATCH] Added sleeps to the azure-setup script so it is more likely to converge before running the next command --- contrib/azure-setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/azure-setup.sh b/contrib/azure-setup.sh index 809cf48f8..446334e37 100755 --- a/contrib/azure-setup.sh +++ b/contrib/azure-setup.sh @@ -181,18 +181,23 @@ showConfigs() { setup() { requirements + azure config mode arm azure login askSubscription askName askSecret + # Some of the resources take a while to converge in the API. To make the + # script more reliable we'll add a sleep after we create each resource. + createResourceGroup + sleep 5 createStorageAccount + sleep 5 createApplication + sleep 5 createServicePrinciple - # It seems that if we continue to the next step too quickly this resource - # is not actually available, so let's wait a few seconds. sleep 5 createPermissions