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