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,424 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,539 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 6,046 Reputation points Microsoft Employee Volunteer Moderator
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.