Deployment through AWS tool kit for Visual Studioshortlink
Prerequisites
- AWS tool kit for Visual Studio.
- AWS Developer access keys.
Steps
1. Open the project in visual studio, and add a folder with the name .ebextensions (if not present already).
2. Under the .ebextensions folder add a file named apminsightExtn.config.
3. Paste the following content in the file. Update the Applications Manager host, port, License key and Applications name in the parameters:
- license.key=<YOUR_LICENSE_KEY>
- apm.host=<APM_HOST>
- apm.port=<APM_SSL_PORT>
- SITE24X7_APP_NAME=<YOUR_APPLICATION_NAME>
- files:
- "C:\\ProgramData\\install.ps1":
- content: |
- Invoke-WebRequest -Uri https://www.manageengine.com/products/applications_manager/54974026/apminsight-dotnetagent.msi -OutFile C:\\ProgramData\\APMInsightAgent.msi
- msiexec.exe /i "C:\\ProgramData\\APMInsightAgent.msi" /qb license.key=<YOUR_LICENSE_KEY> editconfig=false useappfilters=false apm.host=<APM_HOST> apm.port=<APM_SSL_PORT> apm.protocol.https=True SITE24X7_APP_NAME=<YOUR_APPLICATION_NAME>
- commands:
- install_agent:
- command: powershell -NoProfile -ExecutionPolicy Bypass -file C:\\ProgramData\\install.ps1
4. To customize your application name: Open web.config in your application
- <configuration>
- <app settings>
- <add key="apminsight.name" value="Your_application_name" />
5. Publish the web app using the Publish to AWS option, and follow the wizard.
6. Once the deployment is successful, generate some traffic to view data in Applications Manager UI.
Deployment via uploading packages to AWS S3shortlink
Steps
1. In the web application to be published, add a folder named .ebextensions (if not present already).
2. Under the .ebextensions folder add a file named apminsightExtn.config.
3. Paste the following content in the file. Update the Applications Manager host, port, License key and Applications name in the parameters:
- license.key=<YOUR_LICENSE_KEY>
- apm.host=<APM_HOST>
- apm.port=<APM_SSL_PORT>
- SITE24X7_APP_NAME=<YOUR_APPLICATION_NAME>
- files:
- "C:\\ProgramData\\install.ps1":
- content: |
- Invoke-WebRequest -Uri https://www.manageengine.com/products/applications_manager/54974026/apminsight-dotnetagent.msi -OutFile C:\\ProgramData\\APMInsightAgent.msi
- msiexec.exe /i "C:\\ProgramData\\APMInsightAgent.msi" /qb license.key=<YOUR_LICENSE_KEY> editconfig=false useappfilters=false apm.host=<APM_HOST> apm.port=<APM_SSL_PORT> apm.protocol.https=True SITE24X7_APP_NAME=<YOUR_APPLICATION_NAME>
- commands:
- install_agent:
- command: powershell -NoProfile -ExecutionPolicy Bypass -file C:\\ProgramData\\install.ps1
4. To customize your application name: Open web.config in your application
- <configuration>
- <app settings>
- <add key="apminsight.name" value="Your_application_name" />
5. Include this .ebextensions folder when creating application zip for publishing.
6. If publishing is done for the first time.
- Create an application in the Elastic Beanstalk.
- Create an environment with platform type as IIS.
- Configure the required settings for the application and select Application source as Upload your own.
- Select the zip file with .ebextensions folder.
- Launch the environment after giving the required parameters.
7. If publishing to an existing environment.
- Select the Elastic Beanstalk application and choose the environment for deployment.
- Click on Upload and Deploy.
- In the prompt to upload, select the zip file with .ebextensions folder.
- Label the deployment and click Upload.
8. Once the deployment is successful, generate some traffic to view the application in Applications Manager UI.