Azure powershell Set-AzStorageLocalUser – how to use existing ssh key in azure?
We have ssh keys already created in Azure. When the local user is created, existing ssh key created in azure should be assigned to the user. This can be easily done through Azure portal.
However, we are looking for the same option in the powershell commandlet.
Set-AzStorageLocalUser has option for “sshAuthorizedKey”, but there is no option to select existing key.
Do we know how this can be achieved?
I am trying to build powershell script to create a local user for sftp in the Azure Stroage account.We have ssh keys already created in Azure. When the local user is created, existing ssh key created in azure should be assigned to the user. This can be easily done through Azure portal.However, we are looking for the same option in the powershell commandlet.Set-AzStorageLocalUser has option for “sshAuthorizedKey”, but there is no option to select existing key.Do we know how this can be achieved? Read More