diff --git a/internal/services/containerapps/container_app_resource.go b/internal/services/containerapps/container_app_resource.go index 875c51f1fd53..e3f74c1273d9 100644 --- a/internal/services/containerapps/container_app_resource.go +++ b/internal/services/containerapps/container_app_resource.go @@ -227,12 +227,17 @@ func (r ContainerAppResource) Create() sdk.ResourceFunc { containerApp.Properties.Configuration.ActiveRevisionsMode = pointer.To(containerapps.ActiveRevisionsMode(app.RevisionMode)) - if err := client.CreateOrUpdateThenPoll(ctx, id, containerApp); err != nil { + result, err := client.CreateOrUpdate(ctx, id, containerApp) + if err != nil { return fmt.Errorf("creating %s: %+v", id, err) } metadata.SetID(id) + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("waiting for creating %s: %+v", id, err) + } + return nil }, }