[英]How to get the newest API version of Azure Resources
How can I find out the newest apiVersion for Azure Resources.如何找到 Azure 资源的最新 apiVersion。 I need them for my ARM Template.
我的 ARM 模板需要它们。
Here's an example of what we used to get the most recent API version available for application gateways.这是我们用来获取可用于应用程序网关的最新 API 版本的示例。
$MostRecentApiVersion = ((Get-AzResourceProvider -ProviderNamespace Microsoft.Network).ResourceTypes | Where-Object ResourceTypeName -eq applicationGateways).ApiVersions[0];
For example for Storage accounts just use Powershell with. 例如对于存储帐户,只需将Powershell与。
For Azure AZ: 对于Azure AZ:
(Get-AzResourceProvider -ProviderNamespace Microsoft.Storage).ResourceTypes
For Azure RM: 对于Azure RM:
(Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Storage).ResourceTypes
And then look for "storage accounts" 然后寻找“存储帐户”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.