Deploying the Web Project of the Remote Event Receiver Solution on Microsoft Azure App Service

Prerequisites

Make sure that you have installed the following components on your local machine:
  • ActiveMatrix BusinessWorks plug-in for Microsoft SharePoint along with the component, .NET TIBCO Solutions for SharePoint Online
  • GIT
  • Microsoft Visual Studio 2015 professional
  • Microsoft Office Tools for Visual Studio 2015
Note: Only a user having Microsoft Azure account can perform the actions mentioned below.

Procedure

  1. Navigate to TIBCO_HOME/bw/palettes/sharepoint/version_number/dotnetsolutions/SPOnline/Core.EventreceiversWeb_Package.
  2. Extract Core.EventReceiversWeb.zip and navigate to Core.EventReceiversWeb_Package/Core.EventReceiversWeb/Content/C_C/Working/Core.EventReceivers/Core.EventReceiversWeb/obj/Debug/Package/PackageTmp.
  3. Start a command-line tool, for example GitBash for Windows or Bash for Unix Shell.
  4. Navigate to the directory where the Web project artifacts are extracted as described in Step 2.
  5. Type git init on the command line to initialize a new Git repository.
  6. Type git -A to add files to your repository.
  7. Type git commit -m <Name of the App to be deployed to Azure portal> to commit the changes to the repository.
  8. Login to the Azure portal.
  9. Create an App Service under a resource group.
  10. On your App Service app's blade, navigate to Settings > Deployment source.
  11. Click Choose source. Click Local Git Repository and then click OK.
    Note: If you are setting up a repository on the Microsoft Azure for the first time, you must create login credentials for it. You will use them to log into the Microsoft Azure repository and push changes from your local Git repository. From your App Service app's blade, navigate to Settings > Deployment credentials. Then configure your deployment username and password. Click Save.
  12. In your app's blade on the Microsoft Azure portal, navigate to Settings > Properties for the Git URL.
    Note: Git URL is the remote reference to deploy from your local repository.
    Your command will look something like git remote add azure https://<username>@localgitdeployment.scm.azurewebsites.net:443/localgitdeployment.git
  13. Type the following command to push your content to the App Service using the new Azure remote which you have created:
    git push azure master
  14. Enter the password that you created in step 11.
  15. Open the Azure portal. On the Deployment blade, you can see a log entry of your most recent push.
  16. Click Browse at the top of the app's blade to verify that the content has been deployed.