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][STORAGE] Support for updating Azure Storage's Lifecycle Management Policy #47928

Closed
jerryguo95 opened this issue Jan 22, 2025 · 4 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. 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 Storage Storage Service (Queues, Blobs, Files)

Comments

@jerryguo95
Copy link

Library name and version

Azure.ResourceManager.Storage

Query/Question

I'm looking for a way to manage Azure Storage lifecycle management policy as described here: https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-policy-configure?tabs=azure-portal using .net sdk. I know that the depreciated Microsoft.Azure.Management.Storage was capable of doing this by creating a ManagementPolicySchema and applying it with StorageManagementClient.ManagementPolicies.CreateOrUpdateWithHttpsMessagesAsync. However, I haven't found something similar with the current SDK. Due to compliance, I cannot use the old depreciated SDK. Is there a way for me to do this? Or is this a capability that is not yet in feature parity as the depreciated management sdk? And if it is not yet supported, are there plans of supporting this, and what is the work around?

Environment

No response

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. 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 Storage Storage Service (Queues, Blobs, Files) labels Jan 22, 2025
Copy link

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

@ArthurMa1978
Copy link
Member

Thanks @jerryguo95 for your feedback, @HarveyLink could you please assist with this issue?

@blueww
Copy link
Member

blueww commented Jan 27, 2025

You might can reference this SDK test case for management policy:

@jerryguo95
Copy link
Author

Thank you. That works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. 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 Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

4 participants