Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

Problem with scripting the appinsight for sql template?

$
0
0

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" @(

                    #nodeid

                    "$newnode",

                    #applicationtemplateid

                    "$newtemplate",

                    #credentialid, -3 inherits from node

                    -3,

                    #skip if duplicate

                    1

                )

 

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


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>