Follow these steps to deploy the R2022b MATLAB Web App Server reference architecture on Microsoft Azure. To deploy reference architectures for other releases, see Deploy Reference Architecture for Your Release.
To deploy resources on Azure, click Deploy to Azure. The Azure Portal open in your web browser.
MATLAB Release: R2022b
Note: Creating resources on Azure can take up to 10 minutes.
Provide values for parameters in the custom deployment template on the Azure Portal :
Parameter Name | Value |
---|---|
Subscription | Choose an Azure subscription to use for purchasing resources. Example: |
Resource group | Choose a name for the resource group that will hold the resources. Example: |
Region | Choose the region to start resources in. Ensure that you select a location which supports your requested instance types. To check which services are supported in each location, see Azure Region Services. Example: |
Server VM Instance Size | Specify the size of the VM you plan on using for deployment. Each MATLAB Web App Server instance runs on a VM and each instance will run multiple workers. We recommend you choose a VM size where the number of cores on your VM match the number of MATLAB workers per VM you plan on using. The template defaults to: Standard_D4s_v3 . This configuration has 4 vCPUs and 16 GiB of Memory. For more information, see Azure documentation. Example: |
Operating System | Choose the operating system for the server. Your options are Windows or Linux . |
Deploy to New or Existing Virtual Network | Specify whether you want to create a new virtual network for your deployment or use an existing one. When deploying to a new virtual network, by default, the ports listed here are opened. Depending on your security requirements, you can choose to close ports 22 and 3389 after the deployment is complete. |
Name of Virtual Network Where MATLAB Web App Server Will Be Deployed | Specify the name of the virtual network where the server will be deployed.
|
Resource Group Name of Virtual Network |
|
Virtual Network CIDR Range | Specify the virtual network CIDR range. For example: 10.0.0.0/16 .
|
Name of Subnet for MATLAB Web App Server | Specify the name of the subnet that the server can use.
|
Server Subnet CIDR Range | Specify subnet CIDR range. This is a CIDR range for the subnet specified above. For example: 10.0.0.0/24 .
|
Specify Private IP Address to VM Hosting MATLAB Web App Server | Specify an unused private IP address to be assigned to the VM hosting the server. For example: 10.0.0.4 . |
Assign Public IP Address to VM Hosting MATLAB Web App Server | Select Yes if you want to assign a public IP address to the VM hosting the server. Otherwise, select No . If you select 'No', you must create a new virtual machine and add it to the same virtual network as the MATLAB Web App Server deployment. The ability to access the web apps home page or remotely connect to the server machine can be accomplished only through this virtual machine. |
IP Addresses Permitted to Remote into Server VM in CIDR Notation | Specify the range of IP addresses in CIDR notation that can remote into the VM hosting MATLAB Web App Server and administer it. The format for CIDR addresses is IP Address/Mask. Example: Example:
|
IP Addresses Allowed to Access MATLAB Web App Server Apps Home Page in CIDR Notation | Specify the range of IP addresses that can access the MATLAB Web App Server apps home page in CIDR notation. The format for CIDR addresses is IP Address/Mask. Example: Example: |
Base64 Encoded SSL Certificate | Enter a string that is a base64-encoded value of an SSL certificate in PEM format. On Windows, you can Base64 encode a PEM file using a utility such as openssl. On Linux, you can Base64 encode a PEM file using the following command in the terminal: NOTE:
|
Base64 Encoded SSL Private Key | Enter a string that is a base64-encoded value of an SSL private key file in PEM format. On Windows, you can Base64 encode a PEM file using a utility such as openssl. On Linux, you can Base64 encode a PEM file using the following command in the terminal: |
Username to Remote into Server VM | Specify a username to use when remoting into server VM hosting MATLAB Web App Server. The username must be at least 7 characters long. This username is also used to login to the network license manager portal. For example: webappadmin. You cannot use "admin" as a username. |
Password to Remote into Server VM and Network License Manager Web Interface | Specify a password to use when remoting into server VM hosting MATLAB Web App Server. This password is also used to login to the network license manager portal. |
Deploy Network License Manager | Select whether you want to deploy the Network License Manager for MATLAB to manage your license files. Selecting 'Yes' deploys the Network License Manager for MATLAB reference architecture. Select 'No' if you want to use an existing license manager. When using an existing license manager, the MATLAB Web App Server deployment and the license manager must be in the same virtual network. |
Click Create to begin the deployment. This can take up to 10 minutes.
- In the Azure Portal, click Resource groups and select the resource group containing your cluster resources.
- Select Deployments from the left pane and click Microsoft.Template.
- Click Outputs. Copy the parameter value for networkLicenseManagerURL and paste it in a browser.
- Log in using the username and password you specified in the Configure Cloud Resources step of the deployment process.
- Follow the instructions in the Network License Manager for MATLAB dashboard to upload your MATLAB Web App Server license.
- In the Azure Portal, click Resource groups and select the resource group you created for this deployment from the list.
- Select Deployments from the left pane and click Microsoft.Template.
- Click Outputs from the left pane. Copy the parameter value for webAppServerURL and paste it in a browser.
You are now ready to use MATLAB Web App Server on Azure.
To run applications on MATLAB Web App Server, you need to create applications using MATLAB Compiler. For more information, see Create Web App in the MATLAB Compiler documentation.
**NOTE:**The network license manager MAC address is available only after the deployment to the cloud is complete. To get the MAC address of the network license manager:
- Log in to the Network License Manager for MATLAB dashboard using the username and password you specified in the Configure Cloud Resources step of the deployment process.
- Click Administration > License.
- Copy the license server MAC address displayed at the top.
- Select the
webapp<uniqueID>
storage account resource from the resource group where MATLAB Web App Server was deployed. - Select
File shares
from the left navigation pane under theData storage
category. - Select the
webapps
file share and click thectfs
folder. - Click
Upload
to browse and upload your app by following the prompts.
- Select the
webapp<uniqueID>
storage account resource from the resource group where MATLAB Web App Server was deployed. - Select
File shares
from the left navigation pane under theData storage
category. - Select the
webapps
file share and click thelogs
folder to view the logs.