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

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

Accepted answer
  1. Ramya Harinarthini_MSFT 3,891 Reputation points Microsoft Employee

    @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