Closed richmintz closed 4 years ago
Involve @idear1203
@richmintz , before calling Get-AzSynapseWorkspace
, please try to call Get-AzSubscription
which should list all available subscriptions and check if your current Azure context is correct.
If there is still issue, please call $DebugPreference="Continue"
and call Get-AzSynapseWorkspace
again. You should see detail debug information and please share to us.
@richmintz we observed the issue several times before. One possible reason is that we added Synapse endpoints to Azure PowerShell underlying components. To solve the issue, please execute Clear-AzContext
, then Connect-AzAccount
to sign in again. Let me know if the issue still exists.
@richmintz, was your issue resolved according to @idear1203 's suggestion?
@richmintz , thanks for your reporting. I'm closing this issue now. Please create new issue if you meet any problem.
Description
After logging into Subscription using Connect-AzAccount I am unable to perform any of the Az.Synapse Powershell Commands. I get the following error
Get-AzSynapseWorkspace : Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials. At line:1 char:1
Steps to reproduce
Account SubscriptionName TenantId Environment
xxx@xxxxx.com Visual Studio Enterprise Subscription – MPN xxxxxxxxxxxx AzureCloud
Environment data
Get-AzSynapseWorkspace : Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials. At line:1 char:1
Module versions
Debug output
Error output