简体   繁体   English

Azure资源如何获取最新的API版本

[英]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.

相关问题 如何用较新的API版本识别Azure资源 - How to identify Azure resources with a newer API version 如何在 Azure 资源组中获取所有没有标签的 Azure 资源,不包括隐藏标签 - How to get all Azure Resources without tags in a Azure Resource Group excluding Hidden tags wso2 api manager 前台版本如何获取? - How to get the front version of wso2 api manager? 通过 Azure 资源图查询获取 Azure 与某个 su.net 关联的资源 - Get Azure resources associated with a subnet through Azure Resource Graph Query 使用 Terraform 部署 Azure 资源时如何解决插件错误? - How to get round Plugin Errors when deploying Azure resources using Terraform? 如何在 MS Graph API 中从 Java SDK 获取附件资源的原始内容? - How do I get the raw content of attachment resources from Java SDK in MS Graph API? Azure API 管理网关中的用户信息如何获取? - How do you get the user info in an Azure API management gateway? Azure API 管理-可用性测试-如何获取APIM的HealthCheck url - Azure API Management - Availability Tests - How to get the HealthCheck url of APIM 如果我们想使用 S3 来托管 Python 包,我们如何告诉 pip 在哪里可以找到最新版本? - If we want use S3 to host Python packages, how can we tell pip where to find the newest version? 在 Azure 中实际部署之前获取 Azure 部署模板中定义的资源列表 PowerShell - Get a list of resources defined in an Azure deployment template prior to actual deployment in Azure PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM