From b4d34471f495cd71a7a8154d35070b3fb128d28a Mon Sep 17 00:00:00 2001 From: Wei Lim Date: Thu, 16 Oct 2025 10:00:53 -0700 Subject: [PATCH] containerapp: fix check for resource exists --- cli/azd/pkg/project/service_target_containerapp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/azd/pkg/project/service_target_containerapp.go b/cli/azd/pkg/project/service_target_containerapp.go index f9b9ba08f4e..07e69478930 100644 --- a/cli/azd/pkg/project/service_target_containerapp.go +++ b/cli/azd/pkg/project/service_target_containerapp.go @@ -356,7 +356,7 @@ func (at *containerAppTarget) addPreProvisionChecks(_ context.Context, serviceCo // Check if the target resource already exists targetResource, err := at.resourceManager.GetTargetResource(ctx, at.env.GetSubscriptionId(), serviceConfig) - if targetResource != nil && err == nil { + if err == nil && targetResource != nil && targetResource.ResourceName() != "" { exists = true }