Azure powershell session 立即超时

标签 azure azure-caching azure-powershell

我正在尝试使用 Azure Powershell 创建 Azure 托管缓存,因为在管理 GUI 中创建它的功能已被删除。

使用 Add-AzureAccount,我可以使用常用凭据登录 Azure。一旦我发出创建缓存的命令:

New-AzureManagedCache -Name mycachename -Location "North Europe" -Sku Basic -Memory 128MB

...我立即收到错误:

    New-AzureManagedCache : Your Windows Azure credential in the Windows PowerShell session has expired. Please use Add-AzureAccount to login again.
    At line:1 char:1
+ New-AzureManagedCache -Name mycachename -Location "North Europe" -Sku Basic -Memory 128MB
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : CloseError: (:) [New-AzureManagedCache], AadAuthenticationCantRenewException
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.ManagedCache.NewAzureManagedCache

如果我再次登录,我会得到同样的错误并且兜圈子。

这是使用免费试用版,没有 Azure 技术支持,因此非常感谢您收到任何建议。 Azure 服务状态显示一切正常。

最佳答案

关于Azure powershell session 立即超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23964426/

相关文章:

.net - 无法使用 StackExchange.Redis 连接到 C# 中的 Azure Redis 缓存(超时错误)

silverlight - 使用 Azure 配置视频流以进行 H 264 流传输?

azure - 无法在指定时间内验证复制源。请求ID : (blank)

azure - 我可以从开发模拟器访问 Azure AppFabric 缓存吗?

c# - 进程内缓存VS。进程外缓存

powershell - 尝试将行添加到 azure 表时获取 "The remote server returned an error: (409) Conflict."

azure - azure sdk go - 容器

powershell - 如何在 PowerShell 7 中使用 AzureRm 模块?

azure - 获取具有自定义属性的 Azure AD B2C 用户表

caching - azure : shared cache - delete all?