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");
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;
}