Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Using template to deploy service bus namespaces with geo-redundant disaster recovery fails the second time

$
0
0

I am trying to deploy two service bus namespaces in two different regions including an alias to pair them together. I am using an arm template to deploy. First time I deploy, when the resources doesn't yet exist it goes OK and the resources are created. Trying again with same template I get following response after 10 min:

{"code": "DeploymentFailed","message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details": [
    {"code": "RequestTimeout","message": "{\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource provision operation did not complete within the allowed timeout period. Please see https://aka.ms/arm-deploy for usage details.\"\r\n  }\r\n}"
    }
  ]
}
I get the RequestTimeout when creating the Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs.

The arm template I am using is: 

{"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#","contentVersion": "1.0.0.0","parameters": {
  },"variables": {"fallbackLocation": "North Europe","location": "West Europe","aliasNamespaceName": "azb-drsb-test-westeu-alias","primaryNamespaceName": "azb-drsb-test-westeu-primary","secondaryNamespaceName": "azb-drsb-test-westeu-secondary"
  },"resources": [
    {"apiVersion": "2017-04-01","name": "[variables('secondaryNamespaceName')]","type": "Microsoft.ServiceBus/namespaces","location": "[variables('fallbackLocation')]","sku": {"name": "Premium","tier": "Premium","capacity": 1
      },"properties": {},"resources": []
    },
    {"apiVersion": "2017-04-01","name": "[variables('primaryNamespaceName')]","type": "Microsoft.ServiceBus/namespaces","location": "[variables('location')]","sku": {"name": "Premium","tier": "Premium","capacity": 1
      },"dependsOn": ["[concat('Microsoft.ServiceBus/namespaces/', variables('secondaryNamespaceName'))]"
      ],"properties": {},"resources": [
        {"apiVersion": "2017-04-01","name": "[variables('aliasNamespaceName')]","type": "disasterRecoveryConfigs","dependsOn": ["[concat('Microsoft.ServiceBus/namespaces/', variables('primaryNamespaceName'))]"
          ],"properties": {"partnerNamespace": "[resourceId('Microsoft.ServiceBus/namespaces', variables('secondaryNamespaceName'))]"
          }
        }
      ]
    }
  ]
}


The template is according to 101-servicebus-create-namespace-geo-recoveryconfiguration from azure-quickstart-templates

Is there any explanation to why it can't get deployed second time?


Viewing all articles
Browse latest Browse all 1916

Trending Articles