Closed filizt closed 4 years ago
@filizt , thanks for reporting the issue. Could you please share your template that takes more than hour to complete?
@filizt , the issue has been addressed in Az.Accounts 2.1.2, could you please have a try?
@filizt , the issue has been addressed in Az.Accounts 2.1.2, could you please have a try?
Thanks, @erich-wang. I'll test the scenario today.
@erich-wang I tested the new Az.Accounts module and the issue has been fixed. Thanks!
Closed this issue as it has been fixed in 2.1.2
Description
Account token not refreshed during long running deployments using deployments cmdlets such as New-AzResourceGroupDeployment. After an hour, we get a 401 as the deployment polls for deployment status and cmdlet throws. This seems to be regression in Az module v 5.0.0.
Steps to reproduce
1) Login using Connect-AzAccount with your credentials 2) Start a deployment using New-AzResourceGroupDeployment with a template that will take more than an hour to deploy (I can provide a template to use, please let me know) 3) After about an hour you'll get a 401 and cmdlet throws
Environment data
Module versions
Debug output
Error output