Skip to content

Commit

Permalink
Increase the timeout of upserting a CosmosDB account (#4271)
Browse files Browse the repository at this point in the history
* Increase the timeout of upserting a CosmosDB account

* Increase the timeout of deleting a CosmosDB account
  • Loading branch information
mikhailshilkov authored and katbyte committed Sep 12, 2019
1 parent e460946 commit 05a9a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_cosmosdb_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func resourceArmCosmosDbAccountDelete(d *schema.ResourceData, meta interface{})
stateConf := &resource.StateChangeConf{
Pending: []string{"Deleting"},
Target: []string{"NotFound"},
Timeout: 60 * time.Minute,
Timeout: 180 * time.Minute,
MinTimeout: 30 * time.Second,
Refresh: func() (interface{}, string, error) {

Expand Down Expand Up @@ -770,7 +770,7 @@ func resourceArmCosmosDbAccountApiUpsert(client *documentdb.DatabaseAccountsClie
stateConf := &resource.StateChangeConf{
Pending: []string{"Creating", "Updating", "Deleting"},
Target: []string{"Succeeded"},
Timeout: 60 * time.Minute,
Timeout: 180 * time.Minute,
MinTimeout: 30 * time.Second,
Delay: 30 * time.Second, // required because it takes some time before the 'creating' location shows up
Refresh: func() (interface{}, string, error) {
Expand Down

0 comments on commit 05a9a9b

Please sign in to comment.