diff --git a/internal/services/bot/bot_service_resource_base.go b/internal/services/bot/bot_service_resource_base.go index bf2980f06f68..e5bf53aca3c5 100644 --- a/internal/services/bot/bot_service_resource_base.go +++ b/internal/services/bot/bot_service_resource_base.go @@ -402,7 +402,7 @@ func (br botBaseResource) readFunc() sdk.ResourceFunc { metadata.ResourceData.Set("local_authentication_enabled", localAuthEnabled) publicNetworkAccessEnabled := true - if v := props.PublicNetworkAccess; v != botservice.PublicNetworkAccessDisabled { + if v := props.PublicNetworkAccess; v != botservice.PublicNetworkAccessEnabled { publicNetworkAccessEnabled = false } metadata.ResourceData.Set("public_network_access_enabled", publicNetworkAccessEnabled)