Get-AzureWebsite:找不到请求的值“动态" [英] Get-AzureWebsite : Requested value 'Dynamic' was not found
问题描述
我们有一组使用Azure powershell cmdlet的自定义powershell模块-它们已经运行了一年多.我只是安装了一台新机器,每当我尝试运行Get_AzureWebsite时,我都会收到以下错误消息:
We have a set of custom powershell modules which use the Azure powershell cmdlets - they have been working fine for over a year. I just set up a new machine and whenever I try to run Get_AzureWebsite I receive the following error:
PS C:\WINDOWS\system32> Get-AzureWebsite 'anything'
Get-AzureWebsite : Requested value 'Dynamic' was not found.
PS C:\WINDOWS\system32> Get-AzureWebsite 'anything'
Get-AzureWebsite : Requested value 'Dynamic' was not found.
这可能只是一个机器设置,但担心这些comdlet可能会被弃用-感谢有人可以帮助或知道如何解决此问题吗?
This may just be a machine setup but am worried that these comdlets may be being deprecated - appreciate if anyone can help or knows how to fix this?
推荐答案
可以通过更新Azure PowerShell的版本进行修复.有关更多详细信息,请参阅问题和安装和配置Azure PowerShell .我没有在Azure PowerShell v2.1.0上重现它.它成功运行.请尝试使用以下代码来获取当前的Azure PowerShell版本.
It may be fixed by updating the version of Azure PowerShell . More detail please refer to the issue and feedback. Please refer to how to install and configure Azure PowerShell. I didn't reproduce it on the Azure PowerShell v2.1.0. It works successfully.Please try to use the following code to get the current Azure PowerShell version .
(Get-Module -ListAvailable | Where-Object{ $_.Name -eq 'Azure' }) `
| Select Version, Name, Author, PowerShellVersion | Format-List;
这篇关于Get-AzureWebsite:找不到请求的值“动态"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!