Add Application Insight to a existing Azure Service Fabric cluster

前端 未结 2 2041
醉酒成梦
醉酒成梦 2021-01-12 16:43

We have been working on Azure Service Fabric since last 4 months but now have decided to have a unified loging infrastructure for which we are using AppInsight, how can we a

2条回答
  •  清歌不尽
    2021-01-12 16:56

    I did it this way, using Visual Studio 2017:

    1. Open Cloud Explorer from VS
    2. Expand Virtual Machine Scale Sets
    3. Locate the scale set containing your SF cluster.
    4. Right-click Update diagnostics...
    5. In the dialog, check Send diagnostics to Application Insights and add the Instrumentation key for you AI sink
    6. Click OK and leave the dialogue
    7. You might get an error (I did), but if you re-open the dialog you will find that the settings are still there.
    8. To 'apply' the new settings to the cluster, open your azure portal, select All resources, and open the Virtual Machine Scale Set
    9. At this point, hopefully selecting Restart will apply the changes to the cluster. I did a Deallocate followed by a Restart and a re-deploy of my SF-application, and this worked (I did not test if just doing a restart would work). However be very careful using this approach, make sure you know the trade-offs when de-allocation a SF-cluster

提交回复
热议问题