none
c# - Set LegalHold / immutable policy on blob container example RRS feed

  • Question

  • Does anyone have an example on how to check and set a legal hold tag on a container via c#. I can see some classes in the libraries but I can't find any examples of setting either legal hold or immutable policies anywhere.
    Thursday, August 8, 2019 7:30 AM

All replies

  • You can get container properties to see if a legal hold is set https://github.com/Azure/azure-storage-net/blob/4bd9460e0b9b007bdb34eaa1329de2257f7a34dc/Lib/Common/Blob/BlobContainerProperties.cs  it would be the same for setting a legal hold.

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

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members

    Thursday, August 8, 2019 5:08 PM
    Moderator
  • @ssjaronx4  Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Monday, August 12, 2019 3:14 AM
    Moderator
  • Is there any update on the issue?

    If the suggested answer helped for your issue, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.

    Tuesday, August 13, 2019 5:40 AM
    Moderator
  • @ssjaronx4  Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Tuesday, August 20, 2019 11:39 AM
    Moderator
  • @ssjaronx4  Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Monday, August 26, 2019 5:57 AM
    Moderator
  • Is there any update on the issue?

    If the suggested answer helped for your issue, do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.

    Thursday, August 29, 2019 5:56 AM
    Moderator