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

UpdateSubscriptionAsync method does not update AutoDeleteOnIdle properties #711

Open
jsquire opened this issue Jun 11, 2024 · 1 comment

Comments

@jsquire
Copy link
Member

jsquire commented Jun 11, 2024

Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, #44458.

Please be aware that @liangdaxian is the author of the original issue and include them for any questions or replies.

Service Bus team: The Azure SDK team has investigated the client side and confirmed that the autoDeleteOnIdle property is defined in the service spec and that the payload is being formatted correctly by the client. This looks to be an issue with the Service Bus ATOM service.

Details

i am trying to using the admin api to update some subscription AutDeleteOnIdel time span, code snip as:

var subs = admin.GetSubscriptionsAsync(topicName).GetAsyncEnumerator();
while (subs.MoveNextAsync().AsTask().Result)
{
var subdetails = admin.GetSubscriptionAsync(topicName, subs.Current.SubscriptionName).Result.Value;

subdetails.AutoDeleteOnIdle = TimeSpan.FromDays(90);

var updated = admin.UpdateSubscriptionAsync(subdetails).Result.Value;

Console.Out.WriteLine($"Sub {subdetails.SubscriptionName} in {subdetails.TopicName} updated autodelete on idle");

}

@EldertGrootenboer
Copy link
Contributor

Thank you for your feedback. We have opened an investigation task for this in our backlog, and will update this issue when we have more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants