-
Notifications
You must be signed in to change notification settings - Fork 60
invalid_grant after running Suspend-PartnerAzureSubscription #228
Comments
When I checked a few hours later I saw the the subscription turned into Disabled state. Still there is some problem with the command as it:
I have tried the enable command but that one still gives the same error and after 5 minutes the status of the subscription is still not changed. |
In the activity log of the subscription around the the time of suspending I see the following error. Not sure how much related it is.
|
@slavizh unfortunately suspending a subscription that is an Azure Plan can take up to ten minutes to reflect the changes through the API and the portal. The following message is displayed when you suspend a subscription through the portal
The status available through the get Azure entitlement command will reflect the modified status after everything has a chance to synchronize. Taking this into consideration there is not anything that can be done through this module to make reflection happen more quickly. With respect to the authentication error that you are encountering let me look into that. I will keep you posted on what I am able to discover. |
@slavizh one quick update all of the required code changes have been made. Due to the holidays we will not release another version of the module this year. After the first of the year a new release will be published that contains a hotfix for these issues. |
Steps to reproduce
I am running the below commands to suspend Azure Plan subscription. From Get-PartnerCustomerAzurePlanEntitlement I get the id of the subscription and put it on SubscriptionId property. After the command is executed I get some weird output and I cannot longer run Get-PartnerCustomerAzurePlanEntitlement . I had to re-connect so I can run the command again. After running the subscription is still shown as active. So the command does not work but also breaks authentication. I am using refresh token. I have posted also debug of the command. Sensitive values are removed. Also Enable does not work as well as you can see.
Expected behavior
Actual behavior
Diagnostic logs
Environment
The text was updated successfully, but these errors were encountered: