I am trying to enable SFTP in azure storage account using Automation Run notebook getting error "A parameter cannot be found that matches parameter name 'EnableSftp'

Raja, Soumya 20 Reputation points
2023-09-14T17:02:01.3966667+00:00

User's image

#Code Used
$resourceGroupName = ""
$storageAccountName = ""
Connect-AzAccount -Identity
Set-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName -EnableSftp $true



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.
3,150 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,842 questions
{count} votes

Accepted answer
  1. Ramya Harinarthini_MSFT 5,351 Reputation points Microsoft Employee
    2023-09-19T06:46:46.5833333+00:00

    @Raja, Soumya Welcome to Microsoft Q&A, thank you for posting your here!!

    We have tried with the latest Az PowerShell Az i.e 10.3.0 and was able to enable the SFTP on Storage account.

    Also make sure to check if the version of Az.Storage module is latest ie. 5.10.0

    User's image

    User's image

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.