我正在尝试使用 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/