Merge Azure Cloud Shell profiles into one storage account

Gregor Anton Grinč 171 Reputation points
2023-03-17T15:44:21.11+00:00

Hello,

we currently have profiles for azure Cloud Shell divided between multiple storage accounts under file shares and we would love to get them under one subscription and storage account. What is the best way of doing that?

Just recently I copied profiles from one storage account to another with 'azcopy' but unfortunately, I can not mount to these file shares which were copied. But when I mount back on original file shares in their original location everything works just fine. Therefore am I doing something wrong here or how should be done in an optimal scenario?

Thank you

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,162 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,686 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 2,851 Reputation points Microsoft Employee
    2023-03-20T03:55:22.9366667+00:00

    Hi @Gregor Anton Grinč ,

    When you create Cloud Shell using basic settings and select only a subscription, Cloud Shell creates three resources on your behalf in the supported region that's nearest to you:

    • Resource group: cloud-shell-storage-<region>
    • Storage account: cs<uniqueGuid>
    • fileshare: cs-<user>-<domain>-com-<uniqueGuid>

    Using the advanced option, you can associate existing resources. When selecting a Cloud Shell region, you must select a backing storage account co-located in the same region. For example, if your assigned region is West US then you must associate a fileshare that resides within West US as well.

    Please be aware about supported storage account region and security considerations.