我正在尝试获取特定的 Microsoft Azure 网站资源,以便我可以更改其某些属性。为了获得单一资源,Get-AzureResource
需要ApiVersion
财产。我在哪里可以找到这个?
参数集:获取单个资源
Get-AzureResource
[-Name] <String>
-ApiVersion <String>
-ResourceGroupName <String>
-ResourceType <String>
[-ParentResource <String> ]
[ <CommonParameters>]
See http://msdn.microsoft.com/en-us/library/dn654579.aspx http://msdn.microsoft.com/en-us/library/dn654579.aspx
我找到了答案here. http://blogs.msdn.com/b/mast/archive/2013/03/08/how-to-quickly-determine-the-windows-azure-powershell-version.aspx
在 PowerShell 中运行以下命令。
$DebugPreference='Continue'
Get-AzureResourceGroup
调试输出将像这样开始:
DEBUG: 5:25:10 PM - GetAzureResourceGroupCommand begin processing with ParameterSet 'GetMultiple'.
DEBUG: 5:25:10 PM - using account id '[email protected] /cdn-cgi/l/email-protection'...
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
POST
Absolute Uri:
https://management.azure.com/subscriptions/12345678-1234-1234-1234-1234567890ab/providers/microsoft.batch/register?api-version=2014-04-01-preview
检查绝对Uri- 查询字符串参数是api版本.
- https://management.azure.com/ https://management.azure.com/
- 订阅/
- 12345678-1234-1234-1234-1234567890ab/
- 提供商/
- 微软.batch/
- 登记?
- api-版本=2014-04-01-预览
完成后,在 PowerShell 中运行以下命令以停止调试输出。
$DebugPreference='SilentlyContinue'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)