Azure / CloudShell

Container Image for Azure Cloud Shell (https://azure.microsoft.com/en-us/features/cloud-shell/)
https://shell.azure.com
MIT License
252 stars 103 forks source link

[BUG] Unable to Mount Storage with Disabled Storage Account Key Access #433

Closed ivanthewebber closed 2 months ago

ivanthewebber commented 3 months ago

For security initiative reasons we would like to disable storage account key access on all our Azure storage accounts, but it seems cloud shell is not compatible with this. Is there any planned work to use managed identity (e.g. Entra ID) instead? If so what would be the ETA? If not is there any workaround?

To Reproduce

Use Azure Cloudshell with existing storage account. Got to portal.azure.com -> storage account -> settings/configuration -> Set "Allow storage account key access" to "Disabled" and save.

Observed Behavior

image

Expected behavior

Normal working (successful mount).

Is this specific to Cloud Shell?

Yes

Interface information

Accessing Cloud Shell via - https://shell.azure.com, https://portal.azure.com on Windows 11

Additional context

See top.

alexweininger commented 3 months ago

Experienced the same issue 😄

dsajanice commented 3 months ago

Due to technical limitations with Azure File Shares, Cloud Shell cannot mount storage if the "Allow storage account key access" is Disabled. The guidance for such scenarios is to use Ephemeral Sessions in Cloud Shell that do not require mounting storage.

mbifeld commented 2 months ago

Closing as alternative solution is offered (understanding that this does not allow the user to have file persistance) and we are blocked by Azure File Shares support for Managed Identity to allow mounting storage with disabled key access.