diff --git a/internal/services/servicebus/servicebus_namespace_resource.go b/internal/services/servicebus/servicebus_namespace_resource.go index 0d900bef57ce..66bf708e2220 100644 --- a/internal/services/servicebus/servicebus_namespace_resource.go +++ b/internal/services/servicebus/servicebus_namespace_resource.go @@ -274,7 +274,7 @@ func resourceServiceBusNamespace() *pluginsdk.Resource { func resourceServiceBusNamespaceCreate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).ServiceBus.NamespacesClient subscriptionId := meta.(*clients.Client).Account.SubscriptionId - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) + ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d) defer cancel() log.Printf("[INFO] preparing arguments for ServiceBus Namespace create") @@ -370,7 +370,7 @@ func resourceServiceBusNamespaceCreate(d *pluginsdk.ResourceData, meta interface func resourceServiceBusNamespaceUpdate(d *pluginsdk.ResourceData, meta interface{}) error { client := meta.(*clients.Client).ServiceBus.NamespacesClient - ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d) + ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d) defer cancel() log.Printf("[INFO] preparing arguments for ServiceBus Namespace update") @@ -468,11 +468,11 @@ func resourceServiceBusNamespaceUpdate(d *pluginsdk.ResourceData, meta interface } log.Printf("[DEBUG] Reset the Existing Network Rule Set associated with %s", id) } else { - log.Printf("[DEBUG] Creating the Network Rule Set associated with %s..", id) + log.Printf("[DEBUG] Creating/updating the Network Rule Set associated with %s..", id) if err = createNetworkRuleSetForNamespace(ctx, client, *id, newNetworkRuleSet.([]interface{})); err != nil { return err } - log.Printf("[DEBUG] Created the Network Rule Set associated with %s", id) + log.Printf("[DEBUG] Created/updated the Network Rule Set associated with %s", id) } }