Keep having to run Add-AzureAccount every day in Powershell

Hi,

Each day that I use Azure Powershell and run my first command I keep receiving the following message

"Your Azure credentials have not been set up or have expired, please run Add-AzureAccount to set up your Azure credentials"

I run Add-AzureAccount without any problems but its a bit of a pain having to do this every day - any ideas why it keeps forgetting about my account / any way of preventing this happening?

Thanks in advance

September 8th, 2015 4:09am

By default, you have to to use the Add-AzureAccount once.

It may be caused by several reasons.

What is your Azure Powershell version ? is it th last one ?

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 4:15am

Hi scg1889,

As per my understanding Azure Powershell session might be getting timed-out. How about using Azure publish settings file and import the same in your powershell. This will not prompt you for add-azureaccount. The details around the same are here - https://msdn.microsoft.com/en-us/library/dn385850(v=nav.70).aspx

Hope this helps.

September 8th, 2015 5:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics