This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Powershell: how to create application with specific name or rename the application after creation

Hi,

i can create an application with the command:

$applicationId = (Invoke-SwisVerb $SiwsConnection "Orion.APM.Application" "CreateApplication" @(
    # Node ID
    $nodeId,
    
    # Application Template ID
    $applicationTemplateId,
    
    # Credential Set ID
    $credentialSetId,
    
    # Skip if duplicate (in lowercase)
    "false"
)).InnerText
and than the "Application Monitor Name" is the same like the template name.
But i need to create it with an different  Application Monitor Name.
Can i create the application with an specific name or change afterwards the "Application Monitor Name"?
Parents
  • i tryed with:

    # prepare a custom property value

    $customProps = @{
        Name="NewApplicationName";
        AlertEmail="abc@bca.com;
    }

    But this even not works... :-(

    Common, it's the only possibility to change the Application name in SQL with the stored procedure  "apm_ApplicationEdit" or exist a correct way to do it?

Reply
  • i tryed with:

    # prepare a custom property value

    $customProps = @{
        Name="NewApplicationName";
        AlertEmail="abc@bca.com;
    }

    But this even not works... :-(

    Common, it's the only possibility to change the Application name in SQL with the stored procedure  "apm_ApplicationEdit" or exist a correct way to do it?

Children
No Data