microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.57k stars 901 forks source link

"no cloud enabled, enable a cloud" when using only SQL Server #25344

Open ite-klass opened 8 months ago

ite-klass commented 8 months ago

Type: Bug

I am using Azure Data Studio for SQL Server management/running PC-local queries.

I specifically don't intend to use any cloud functionality, and thus want them to be and remain disabled.

However, during normal use of querying and managing or using connections, I regularly see a notification:

No clouds are enabled, please enable a cloud to continue.

It's entirely unclear to me what this message refers to (what does "please" mean? what is it even trying to do? what functionality does the notification relate to?).

It would be

Azure Data Studio version: azuredatastudio 1.47.1 (b6f7beb01f92adaa4b79b6b6f3ac704e95cafe6e, 2024-01-10T02:15:02.628Z) OS version: Windows_NT x64 10.0.19045 Restricted Mode: No Preview Features: Enabled Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.71GB (11.59GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- admin-pack|Mic|0.0.2 agent|Mic|0.49.0 dacpac|Mic|1.14.0 import|Mic|1.6.0 profiler|Mic|0.14.0 query-history|Mic|0.5.3 schema-compare|Mic|1.21.0 sql-assessment|Mic|0.6.4 sql-database-projects|Mic|1.4.1
cheenamalhotra commented 8 months ago

It seems you've accidentally disabled all Azure clouds, please look at these settings, and reset them to default to get rid of the notification.

(Public cloud should be enabled by default) image

We will look into making sure these notifications don't show up when not needed.

ite-klass commented 8 months ago

It seems you've accidentally disabled all Azure clouds, please look at these settings, and reset them to default to get rid of the notification.

I haven't accidentally but deliberately disabled Azure public cloud integration - assuming it is for working with the Azure public cloud.

bzgnyc commented 4 months ago

I second allowing this message to be suppressed. I sometimes work with sensitive data that for one reason or another can't be stored in the cloud. In which case I need to know that my session is in no way leaking any data back to any cloud service.

On the flip side I don't want to get constant notifications that I am not connected to any cloud. I know that and like the OP that was a deliberate choice. Previous versions of ADS didn't generate this notification. Once I Dismiss the message, it shouldn't come back again. Or if you want to get fancier a checkbox for "Do not show this message again". Or to keep it simple, add a checkbox in the Accounts section "Cloud: Disable All Public Cloud" that bypasses all cloud checks and related.