Hi @Elena Grosu
This may be because the expiration time you set exceeds the subscription lifecycle of the target resource. Each resource has a limited subscription expiration time. When the time you set exceeds the limit, it will default to the maximum expiration time of the target resource. In the future, any request to create or renew a subscription that exceeds the maximum value will fail.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.