Azure Blob Strorage and Local Account SFTP Credentials

Raoul W 11 Reputation points
2022-07-21T11:36:19.31+00:00

Hi,

According to the documentation we can create up to 1000 users for SFTP Blob access. However we can not find any api for creating these users or setting/changing the passwords.

This cant be right? Are we supposed to copy and paste the 1.000 users/password manually? And then mail them manually to the end users?

Thanks,

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,471 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 16,991 Reputation points MVP
    2022-07-21T14:31:06.113+00:00

    Multiple local user accounts and container-level permissions can be assigned to an SFTP for Azure Blob Storage. In-order to create the users and to manage the permissions, you can use Azure CLI.
    Following is an example to create a local-user with two permission scopes and an ssh-authorized-key

    az storage account local-user create --account-name {account-name} -g {resource-group} -n {username} --home-directory home --permission-scope permissions=r service=blob resource-name=container1 --permission-scope permissions=rw service=file resource-name=share2 --ssh-authorized-key key="ssh-rsa a2V5" --has-ssh-key true --has-ssh-password --has-shared-key false  
    

    More details are here: local-user
    In-order to create 1000 users bulk, you can go for a bit automation to add all the users inside a csv file and run the cli script

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--