I just followed the commands in the Azure create a Windows VM training. After successfully creating the new VM the powershell timed out. When I tried to continue the training I got this message:
Get-AzVMImagePublisher : No subscription found in the context. Please ensure that the credentials you provided are authorized to access an Azure subscription, then run Connect-AzAccount to login. At line:1 char:1 + Get-AzVMImagePublisher -Location "WestUS" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzVMImagePublisher], ApplicationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.GetAzureVMImagePublisherCommand
and it keeps happening.