Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUERY] Possible to set WORM state on blob containers via .net API #24538

Closed
isobel-cullen opened this issue Oct 7, 2021 · 7 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@isobel-cullen
Copy link

Query/Question
How can we help?

Using Azure Blob Storage, is it possible to configure the immutability configuration of a container from the .NET client?

Environment:

  • Name and version of the Library package used: Azure.Storage.Blobs 12.10.0
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): .5.0.403
  • IDE and version : Visual Studio 16.3
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 7, 2021
@jsquire jsquire added Client This issue points to a problem in the data-plane of the library. CXP Attention needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team Storage Storage Service (Queues, Blobs, Files) labels Oct 7, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Oct 7, 2021
@jsquire
Copy link
Member

jsquire commented Oct 7, 2021

Thank you for your feedback. Tagging and routing to the team best able to assist.

@seanmcc-msft
Copy link
Member

Hi @isobel-cullen,

You can set WORM policies via the storage management plane SDK - https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.ResourceManager.Storage

A good example of how to do this is in our Immutable Storage with Versioning unit tests -

-Sean

@SaurabhSharma-MSFT SaurabhSharma-MSFT added Service Attention Workflow: This issue is responsible by Azure service team. and removed CXP Attention labels Oct 7, 2021
@ghost
Copy link

ghost commented Oct 7, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Issue Details

Query/Question
How can we help?

Using Azure Blob Storage, is it possible to configure the immutability configuration of a container from the .NET client?

Environment:

  • Name and version of the Library package used: Azure.Storage.Blobs 12.10.0
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): .5.0.403
  • IDE and version : Visual Studio 16.3
Author: isobel-cullen
Assignees: seanmcc-msft
Labels:

Storage, Service Attention, Client, customer-reported, question, needs-team-attention

Milestone: -

@isobel-cullen
Copy link
Author

@seanmcc-msft Thank you, that is helpful. I cannot see a way to use a connection string with that client, am I missing something or does it not support Azurite?

@seanmcc-msft
Copy link
Member

Unfortunately I do not work on that SDK. @blueww, do you have any insight?

@blueww
Copy link
Member

blueww commented Oct 12, 2021

@isobel-cullen
You can set it with SDK: https://www.nuget.org/packages/Microsoft.Azure.Management.Storage/

How to use SDK: https://azure.microsoft.com/da-dk/resources/samples/storage-dotnet-resource-provider-getting-started/

Set container level worm sample:

ImmutabilityPolicy immutabilityPolicy = storageMgmtClient.BlobContainers.CreateOrUpdateImmutabilityPolicy(rgName, accountName, containerName, ifMatch:"", parameters: new ImmutabilityPolicy(immutabilityPeriodSinceCreationInDays:3, allowProtectedAppendWritesAll: true));

@seanmcc-msft
Copy link
Member

Please reopen if you have further questions.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

5 participants