Deploy to Azure

This topic shows you how to deploy a Weavy tenant to Azure manually.

If you don't have a package yet, head over to Getting Started section to download Weavy and create your first package.

Sign in to your Azure account

Start by signing into your account on the Azure Portal.

Create web app

Click Create a resource and choose Web App. Enter App name, select the appropriate subscription and resource group. Make sure Publish is Code and Runtime stack is ASP.NET 4.7. Configure the App Service Plan and finish by clicking Create.

There are a number of ways to deploy code to the Web App. In this example we are going to transfer the files with FTP.

Wait for the deployment to finish, then navigate to the Overview of the created Web App. Click Get publish profile. Open the XML file and locate the publish profile for FTP. Use publishUrl, userName and userPWD to connect using your favorite FTP client.

<publishData>
<publishProfile profileName="weavy-manual-deploy - FTP"
                publishMethod="FTP"
                publishUrl="ftp://waws-prod-151.ftp.azurewebsites.windows.net/site/wwwroot"
                userName="weavy-manual-deploy\$weavy-manual-deploy"
                userPWD="1BKtQaC5assK6PwvSSihfkNpJdfyolBwKJR00MTWTwdPZwrPczmeoyoegETM">                    
    </publishProfile>
</publishData>

Extract your Weavy package to a folder on your local computer. Transfer the contents of the wwwroot\ folder to the Azure Web App using your FTP client.

Create storage account

Click Create a resource and choose Storage Account. For Account Kind you should select BlockBlobStorage and for Performance you should select Premium.

Fill out the other required values and click "Review and Create" to finish setting up the storage account.

Now you need the Connection string. Navigate to the newly created storage account. Click Access keys and note the value of the Connection string under key1.

Create SQL database

Click Create a resource and choose SQL Database. Fill out all required values to create an empty database. Wait for the deployment to finish.

Navigate to your deployed database and click Connection strings. Locate the ADO.NET connection string and save it for later.

You also need to know the admin username and password of the database server . For username, see Server admin on the Overview blade of the database server. If you don't know the password, you can reset it by clicking Reset Password, also on the overview blade.

You can also create a user at the database level. Read more about SQL logins and users

Configure settings

Navigate to the Web App you deployed earlier and click Configuration. Under General settings, turn on the Web sockets feature.

Click Application settings and add the appropriate settings. Two important settings are weavy.blob-provider where you should input Weavy.Core.Providers.AzureBlobProvider,Weavy.Core and weavy.azure-blob-provider.connection-string where you should enter the storage account connection string from the earlier step.

On the same page, scroll down to Connection strings and add a new connection string. Enter weavy as the Name and paste the ADO.NET connection string from the earlier step, replacing {your_username} and {your_password_here} with your SQL Server admin username and password.

Save your changes.

That should be it. Open a browser and navigate to your Wep App and you should see the Weavy Setup screen.