Update WadCfg “only” of existing Azure Service Fabric cluster?

那年仲夏 提交于 2019-12-04 04:59:20

问题


I want to monitor Perfomance metrics of a existing Service Fabric Cluster. Here is the link of Performance metrics - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-diagnostics-event-generation-perf

I went through this Microsoft documentation - https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-diagnostics-perf-wad

My problem is, The ARM template I downloaded during Service Fabric creation time is quite big and contains lot of params and I don't have the template-params file. I think it is possible to build the params file but it will be time consuming.

  • Is it possible to download template and template-params file of existing service fabric cluster ?

  • If no, Is it possible to just update the "WadCfg" section to add new performance counters ?


回答1:


Your can export your entire resource group with all definitions and parameters, there you can find all parameters(as default parameters) for the resources deployed in the resource group. I've never done for SF cluster, but a quick look to an existing resource group I have I could see the cluster definition included.

This link explain how: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-export-template

In Summary:

  • Find the resource group where your cluster is deployed
  • Open the resource group and navigate to 'Automation Scripts'
  • Click 'Download' on top bar
  • Open the ARM template with all definitions
  • Make the modifications and save
  • Publish the updates

1:

2:

You could also add it to a library and deploy from there, as guided in the link above.

From the docs: Not all resource types support the export template function. To resolve this issue, manually add the missing resources back into your template.

To be honest, I've never deployed this way other than test environments, so I am not sure if it is safe for production.



来源:https://stackoverflow.com/questions/50352796/update-wadcfg-only-of-existing-azure-service-fabric-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!