powershell - Get-AzureWebsiteLog -Tail 不起作用

标签 powershell azure

我正在尝试使用 Azure PowerSheel 命令“Get-AzureWebsiteLog -Tail”,如文章 https://learn.microsoft.com/en-us/powershell/module/azure/get-azurewebsitelog?view=azuresmps-4.0.0 中所示。但它给出了一个错误:

No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription

当我尝试通过替换 <subscriptionName> 来执行建议的命令 (Select-AzureSubscription -Default ) 时使用我的帐户名称“免费试用”时,我收到以下错误:

Parameter set cannot be resolved using the specified named parameters

任何建议都将受到高度赞赏

最佳答案

No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription

我们应该使用此命令来选择默认订阅:

选择-AzureSubscription -SubscriptionName 'Visual Studio Ultimate with MSDN' -默认

关于powershell - Get-AzureWebsiteLog -Tail 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45918158/

相关文章:

powershell - 串联Powershell命令

javascript - 安装Gulp js时出现错误

azure - 我们可以在没有 Azure 的情况下在 IIS 中部署 Microsoft bot 应用程序吗?

Azure机器学习计算二头肌模板命名错误

node.js - Azure 移动应用程序 - 未提供要插入的项目

session - 更改 session 模式以迁移到 Windows azure

sharepoint - 我可以使用Office365 Powershell cmdlet来获取Sharepoint Online组及其成员名称吗?

powershell - 使用 Powershell DSC 安装 JRE 挂起

powershell - Azure Powershell 选择带有订阅 ID 的 AzureSubscription

azure - 无法将跟踪发送到 Azure 容器实例中的 Jaeger : remote connection closed in . NET 应用程序