Before starting, you will need the following:
-
An Azure™ account.
-
A valid MathWorks license. For more information on how to configure your license for cloud use, see MATLAB Parallel Server on the Cloud.
You are responsible for the cost of the Azure services used when you create cloud resources using this guide. Resource settings, such as instance type, will affect the cost of deployment. For cost estimates, see the pricing pages for each Azure service you will be using. Prices are subject to change.
The following guide will help you automate the process of launching a Network License Manager for MATLAB on Azure using your Azure account. The cloud resources are created using Azure Resource Manager (ARM) templates. For information about the architecture of this solution, see Learn About Network License Manager for MATLAB Architecture.
Click the Deploy to Azure button below to deploy the cloud resources on Azure. This will open the Azure Portal in your web browser.
Server Platform: Windows Server 2016
Network license manager for MATLAB Release: R2019a
Clicking the Deploy to Azure button opens the "Custom deployment" page in your browser. You can configure the parameters on this page. It is easier to complete the steps if you position these instructions and the Azure Portal window side by side.
-
Specify and check the defaults for these resource parameters:
Parameter label Description Subscription Choose an Azure subscription to use for purchasing resources. Resource group Choose a name for the resource group that will hold the resources. It is recommended to create a new resource group for each deployment. This allows all resources to be deleted simultaneously. Location 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 Products available by region. Instance Type Choose the Azure instance type to use for the license server. The selected virtual machine size must support premium storage. Client IP Address This is the IP address range that will be allowed to access the resources. The format for this field is IP Address/Mask. Example:
10.0.0.1/32- This is the public IP address which can be found by searching for "what is my ip address" on the web. The mask determines the number of IP addresses to include.
- A mask of 32 is a single IP address.
- Use a CIDR calculator if you need a range of more than one IP addresses.
- You may need to contact your IT administrator to determine which address is appropriate.
Admin Username Enter a username to use to connect to the network license manager for MATLAB Dashboard. Admin Password Enter a password to use to connect to the network license manager for MATLAB Dashboard. -
Tick the box to accept the Azure Marketplace terms and conditions.
-
Click the Purchase button.
When you click the Purchase button, the resources are created using Azure template deployments. Template deployment can take several minutes.
Note: The Internet Explorer web browser is not supported for interacting with the dashboard.
- In the Deployments for your resource group, select the Microsoft.Template deployment created in step 2 and select the Outputs section.
- Copy the URL listed in the
NETWORKLICENSEMANAGERADDRESS
field. This is the HTTPS endpoint to the network license manager for MATLAB Dashboard.
-
Paste the network license manager Address URL into a web browser.
-
At the sign in screen, enter the username and password you created in Step 2.
Note: The dashboard uses a self-signed certificate which can be changed. For information on changing the self-signed certificates, see Change Self-signed Certificate.
Note: You will need the fixed network license manager Host ID to get a license file from the MathWorks License Center for your product. For more information, see the documentation for your product.
-
In the dashboard, go to Administration > Manage License.
-
Click Browse License File to select the license file you want to upload and click Open.
-
Click Upload.
You are now ready to use the network license manager on Azure.
To configure your MATLAB products deployed in Azure to use the network license manager, see the product documentation. An example for MATLAB Parallel Server can be found at MATLAB Parallel Server on Azure.
You can remove the Resource Group and all associated resources when you are done with them. Note that you cannot recover resources once they are deleted.
-
Sign in to the Azure Portal.
-
Select the Resource Group containing your resources.
-
Select the "Delete resource group" icon to destroy all resources deplyoyed in this group.
-
You will be prompted to enter the name of the resource group to confirm the deletion.
You can change the self-signed certificate used to connect to the dashboard. To upload an HTTPS certificate:
- On the dashboard navigation menu, select Administration > Manage HTTPS Certificate.
- Click Browse Certificate... and select a certificate file. Only
.pfx
files are supported. - Enter the certificate password in the Certificate Password field.
- Click Upload.
The server will automatically restart after uploading a certificate. You will need to sign out and sign back in.
If your resource group fails to deploy, check the Deployments section of the Resource Group. It will indicate which resource deployments failed and allow you to navigate to the relevant error message.
You can launch the reference architecture within an existing virtual network and subnet using the azuredeploy-existing-vnet.json template.
Server Platform: Windows Server 2016
MATLAB Release: R2019a
This template requires the following two additional parameters:
Parameter label | Description |
---|---|
Virtual Network Resource ID | The Resource ID of an existing virtual network to deploy your server into. You can find this under the Properties of your virtual network. |
Subnet Name | The name of an existing subnet within your virtual network to deploy your server into. |
The network license manager and the resources required by it are created using Azure Resource Manager templates. The architecture of the server resources created by the template is illustrated in Figure 2. For more information about each resource, see the Azure template reference.
Figure 2: Network License Manager Architecture
The following resources are created.
- Virtual Network (Microsoft.Network/virtualNetworks) The Virtual Network includes the following components:
- Subnet (Microsoft.Network/virtualNetworks/subnets)
- Network Security Group (Microsoft.Network/networkSecurityGroups) : Ingress rules from client IP address:
- Allow 3389: Required for Remote Desktop Protocol to the cluster nodes.
- Allow 443: Required for communication between client and network license manager for MATLAB Dashboard server.
- Allow 27000-27001: Required for communication from MATLAB and MATLAB workers to the network license manager for MATLAB.
- Allow all internal traffic: Open access to network traffic between all cluster nodes internally.
- Network interface (Microsoft.Network/networkInterfaces)
- Public IP Address (Microsoft.Network/publicIPAddresses)
- Network license manager instance (Microsoft.Compute/virtualMachines): A Compute instance for the license server.
- Custom Script Extension (Microsoft.Compute/virtualMachines/extensions): An extension which configures this instance at deployment time to start the network license manager for MATLAB Dashboard web server.