Cannot enable versioning in Blob Storage

admin cecareus 0 Reputation points
2025-03-18T12:22:09.9633333+00:00

I have deployed this project: https://github.com/Azure-Samples/azure-health-data-and-ai-samples/tree/main/samples/azuredatabricks-deltalake on Azure, i checked that the Account kind is StorageV2 (general purpose v2), and i want to enable versioning, but from the portal the option does not appear, an from PowerShell it doesnt let me, it says "Update-AzStorageBlobServiceProperty: Versioning is not supported for the account.". Thanks in advance

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,468 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amrinder Singh 5,870 Reputation points Microsoft Employee
    2025-03-18T13:23:05.8166667+00:00

    Hi admin cecareus -

    Thanks for reaching out on Q&A forum.

    Is the account on which you are trying to enable versioning is ADLS Gen2 (HNS) account? if yes, then the exception will be expected one since versioning is not supported on HNS / ADLS Gen2 account.

    https://learn.microsoft.com/en-us/azure/storage/blobs/storage-feature-support-in-storage-accounts

    Hope the above answer helps! Please let us know do you have any further queries.


    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

  2. Hari Babu Vattepally 2,640 Reputation points Microsoft External Staff
    2025-03-19T10:53:00.6033333+00:00

    Hi @admin cecareus ,

    I understand that you are facing an issue while enabling versioning for your blob storage account.

    In additional to the below solution provided by Amrinder Singh, I would also suggest you follow below recommendations.

    Based on the above provided information, versioning is not supported for your account due to certain configurations. Specifically, if you have enabled Data Lake Storage Gen2, Network File System (NFS) 3.0 protocol, or the SSH File Transfer Protocol (SFTP), it could affect the support for versioning. If so, please consider disabling these features if possible and allows versioning to be enabled.

    Make sure you are using the latest version of Azure CLI or PowerShell. After that, try enabling versioning with this command:

    Update-AzStorageBlobServiceProperty -ResourceGroupName <ResourceGroupName> -AccountName <StorageAccountName> -EnableVersioning $true
    

    If this continues to fail, it confirms that the account configuration does not support versioning.

    Also, I would suggest you, if the current account is incompatible, please create a new StorageV2 account using the default settings and ensure no conflicting features are enabled. Then, migrate your data to the new account.

    Additionally, versioning is not supported for blobs uploaded using Data Lake Storage APIs. Please check if any of these features are enabled in your storage account, as they might be causing the error message you are receiving.

    For additional information, please refer the below documents:

    I hope by following the above helps in resolving the issue.

    Please let us know in the comments section, if there are any further queries. We will be glad to assist you closely in resolving the issue.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.