简体   繁体   English

如何获取资源组的所有部署列表(包括那些可能具有相同名称的部署)?

[英]How do I get a list of all deployments for a resource group (including those that may have had the same name)?

Within Azure's portal, The deployments page for a resource group lists deployments with a unique name.在 Azure 的门户中,资源组的部署页面列出了具有唯一名称的部署。 If a deployment is created with the same name, it appears to overwrite the previous deployment, to the extent the previous deployment is no longer visible within the deployment list.如果使用相同的名称创建部署,它似乎会覆盖以前的部署,以至于以前的部署在部署列表中不再可见。 There appears to be no filters or groupings that can be unset to allow viewing a list of all deployments that have occurred.似乎没有过滤器或分组可以取消设置以允许查看已发生的所有部署的列表。

How can I view a list of all deployments within a resource group, independent of their name?我如何查看资源组中所有部署的列表,而不考虑其名称?

Azure deployment are identified with names. Azure 部署以名称标识。 Once you update the deployment with the same name previous once cannot be seen anymore.一旦您更新了具有相同名称的部署,以前的一次就再也看不到了。 If you need to see the status after deployment you should consider giving them different names.如果您需要在部署后查看状态,您应该考虑给它们不同的名称。

However there are only 800 deployment with different names are supported by Azure Resource Manager for a particular Resource Group, you should consider this fact too.但是,对于特定资源组,Azure 资源管理器仅支持 800 个不同名称的部署,您也应该考虑这一事实。

There is no way to check all the deployments with the same names, the previous ones will always be overwritten, your option is to use the different deployment names to deploy the templates in the resource group.没有办法检查所有同名的部署,之前的总是会被覆盖,你的选择是使用不同的部署名称来部署资源组中的模板。

For example, you could use the powershell New-AzResourceGroupDeployment to deploy the template, just specify the -Name parameter with different values, it is the name of the deployment.例如,您可以使用 powershell New-AzResourceGroupDeployment部署模板,只需指定不同值的-Name参数,它是部署的名称。

New-AzResourceGroupDeployment -Name "testdep" -ResourceGroupName "joytest" -TemplateFile C:\Users\joyw\Desktop\temp1.json -TemplateParameterFile C:\Users\joyw\Desktop\para1.json

Then in the resource group -> Deployments in the portal, you will find all of them.然后在门户中的资源组-> Deployments中,您将找到所有这些。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何获取我的 Azure 资源组名称的一部分并使用它来创建新的 Azure 资源名称? - How do I get part of the name of my Azure resource group and use it to create a new Azure resource name? 无法获取列表中的资源组名称 - Not able to get the resource group name in the list 如何更改 Azure 资源组的名称? - How do I change the name of an Azure Resource Group? [Azure 部署]:我们可以使用 c# 按名称过滤 Azure 资源组部署吗? - [Azure Deployments]: Can we filter Azure Resource Group Deployments by name using c#? 如何获取Azure资源组的订阅名称 - How to get subscription name of azure resource group 如何获取 SQL Server 中所有弹性池的名称? - How do i get the name of all the elastic pools i have in SQL Server? 在自动化的Azure资源组部署中如何处理错误/失败? - How are errors/failures handled in automated Azure Resource Group deployments? 未找到使用部署模板资源和接收资源组,但所有其他部署工作 - Using Deployment Template resource and receiving resource group not found but all other deployments work Azure python SDK:如何获取资源组中包含的所有虚拟网络的列表? - Azure python SDK: How to get a list of all Virtual Networks which contained in a Resource Group? 需要 Powershell 脚本来获取所有公共 IP 地址,并在所有订阅中附加资源名称、资源组 - Need Powershell script to get all public IP addresses with attached resource name, Resource group, in all subcriptions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM