3 Replies Latest reply on Jun 26, 2019 2:02 AM by pawelk

    Problem with scripting the appinsight for sql template?


      So this is an excerpt from a script I was using to copy over the app templates from an old instance to a new one but I noticed it wasn't working fully for the appinsight templates.  It creates the app monitor, but they all stay in "inital polling" forever.  If i click into the edit and test the credential it passes as expected, then submit that and it will start working, but there must be something missing when using the verb.  Using a similar version of the syntax creates the rest of the app monitors and they fire right up.


      if($app.templatename -like "AppInsight for SQL") {

                       Invoke-SwisVerb $swisdest "Orion.APM.SqlServerApplication" "CreateApplication" @(





                          #credentialid, -3 inherits from node


                          #skip if duplicate




      Anyone every tried to use this verb and had it working successfully?