You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-5Lines changed: 51 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,12 @@ For information about the architecture of this solution, see [Architecture and R
32
32
To deploy the reference architecture, select your MATLAB Production Server release from the table and follow the instructions to deploy the server using the provided template. A deployment of MATLAB Production Server supports MATLAB Runtime versions up to six releases back.
> **Note**: MathWorks provides templates for only the six most recent releases of MATLAB Production Server. Earlier templates are removed and are no longer supported.
43
43
# Architecture and Resources
@@ -52,7 +52,7 @@ resource group.
52
52
### Matlab Production Server Resources
53
53
| Resource Name | Resource Name in Azure | Number of Resources | Description |
|Virtual network |`mps-network`| 1 |Provide support and security to the operation of MATLAB Production Server. |
55
+
|Virtual network |`mps-network`| 1 |Provides support and security to the operation of MATLAB Production Server. |
56
56
| Storage account |`serverlog<uniqueID>`| 1 | Storage account where the deployable archives (CTF files) created by MATLAB® Compiler SDK™ will be stored. The deployable archives (CTF files) will be stored in a file share. |
57
57
| Application Insights |`logs-apmservice`| 1 | Enables storing and viewing of all logs associated with deployment. |
58
58
| Log analytics workspace |`logs-workspace`| 1 | Workspace that contains data collected from various sources. |
@@ -63,16 +63,16 @@ resource group.
63
63
| Virtual machine scale set |`vmss<uniqueID>`| 1 | Manages the number of identical VMs to be deployed. Each VM runs an instance of MATLAB Production Server which in turn runs multiple MATLAB workers. |
64
64
| Application gateway |`vmss<uniqueID>-agw`| 1 | Provides routing and load balancing service to MATLAB Production Server instances. The MATLAB Production Server dashboard retrieves the HTTP/HTTPS endpoint for making requests to the server from the application gateway resource.<p>**NOTE**: Provides HTTPS endpoint to the server for making requests.</p> |
65
65
| Virtual network |`vmss<uniqueID>-vnet`| 1 | Enables resources to communicate with each other. |
66
-
|Network security group |`vmss<uniqueID>-rdp-nsg`| 1 |Filter network traffic to and from virtual machine scale set in an Azure virtual network. |
67
-
|Public IP address |`Vmss<uniqueID>-pip`| 1 |Provide public IP address to virtual machine scale set. |
66
+
|Network security group |`vmss<uniqueID>-rdp-nsg`| 1 |Filters network traffic to and from virtual machine scale set in an Azure virtual network. |
67
+
|Public IP address |`Vmss<uniqueID>-pip`| 1 |Provides public IP address to virtual machine scale set. |
68
68
69
69
### Admin Dashboard Resources
70
70
| Resource Name | Resource Name in Azure | Number of Resources | Description |
| MATLAB Production Server dashboard virtual machine |`admindashboard`| 1 | Virtual machine (VM) that hosts the MATLAB Production Server dashboard. Use the dashboard to: <ul><li>Get HTTP/HTTPS endpoint to make requests</li><li> Upload applications (CTF files) to the server</li><li> Manage server configurations</li></ul><p>For more information, see [Manage MATLAB Production Server Using the Dashboard](https://www.mathworks.com/help/mps/server/use-matlab-production-server-cloud-dashboard-on-azure-reference-architecture.html). |
73
73
| MATLAB Production Server dashboard public IP |`admindashboard-public-ip`| 1 | Public IP address to connect to MATLAB Production Server dashboard.<p>**NOTE**: Provides HTTPS endpoint to the dashboard for managing server instances.</p> |
74
74
| Disk |`admindashboard_OsDisk_<uniqueID>`| 1 | Operating system disk attached to admin dashboard. |
|`443`| Required for communicating with the dashboard |
97
+
|`8000`, `8004`, `8080`, `9090`, `9910`| Required for communication between the dashboard, MATLAB Production Server workers, and various microservices within the virtual network. These ports do not need to be open to the Internet. |
98
+
|`27000`| Required for communication between the Network License Manager and the workers. |
99
+
|`65200`, `65535`| Required for the Azure application gateway health check to work. These ports need to be accessible over the Internet. For more information, see [MSDN Community](https://social.msdn.microsoft.com/Forums/azure/en-US/96a77f18-3b71-45d2-a213-c4ba63fd4e63/internal-application-gateway-backend-health-is-unkown?forum=WAVirtualMachinesVirtualNetwork). |
100
+
|`22`, `3389`| (Optional) Enables Remote Desktop functionality, which can be used for troubleshooting and debugging. |
101
+
<br>
102
+
103
+
You can close ports 22 and 3389 after deployment.
104
+
105
+
### Create Service Endpoint in Virtual Network (Since R2025a)
106
+
Starting in R2025a, if you are using an existing virtual network and assign a public IP address to the VM hosting MATLAB Production Server, you must manually add a service endpoint to the virtual network *before* deploying MATLAB Production Server in order to create and access the storage account. For more information, see [Grant access from a virtual network](https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#grant-access-from-a-virtual-network).
107
+
108
+
You can check if such an endpoint already exists by navigating to the Azure Portal, selecting your virtual network, and clicking **Service endpoints**. If no such endpoint is present, follow these steps:
109
+
1. In the Azure Portal, click **Resource groups** and select the virtual network for this deployment.
110
+
1. In the left navigation menu, expand the **Settings** category and click **Service endpoints**.
111
+
1. Click **Add** to add the new endpoint. It must have the following parameters:
<tr><td><b>Subnet</b></td><td>Name of subnet in which the storage account will be deployed</td></tr>
116
+
</table>
117
+
118
+
For more information on creating endpoints, see [Create and associate service endpoint policies](https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoint-policies).
119
+
120
+
### Deploy to Existing Virtual Network
121
+
To deploy MATLAB Production Server to an existing virtual network, in the deployment template, set the **New or Existing Virtual Network** parameter to `existing`.
122
+
123
+
Set the following parameter values in the template based on your existing virtual network.
|**Virtual Network Name**| Specify the name of your existing virtual network or use the default value. |
128
+
|**Virtual Network CIDR Range**| Specify the IP address range of the virtual network in CIDR notation or use the default value. |
129
+
|**Subnet 1 CIDR Range**| Specify the IP address range of the first subnet in CIDR notation or use the default value. The first subnet hosts the dashboard and other resources. |
130
+
|**Subnet 2 CIDR Range**| Specify the IP address range of the second subnet in CIDR notation or use the default value. The second subnet hosts the application gateway. |
131
+
|**Available Subnet 2 IP Address**| Specify an unused IP address from Subnet 2 or use the default value. This IP address serves as the private IP of the application gateway. |
132
+
|**Resource Group Name Of Virtual Network**| Specify the resource group name of the virtual network or use the default value. |
133
+
134
+
89
135
## Why do requests to the server fail with errors such as “untrusted certificate” or “security exception”?
90
136
91
137
These errors occur either when CORS is not enabled on the server or when the server endpoint uses a self-signed certificate.
0 commit comments