|
78 | 78 | "minValue": 0, |
79 | 79 | "maxValue": 1023, |
80 | 80 | "metadata": { |
81 | | - "description": "Size in GB of the volume to store the database files. All job and task information, including input and output data is stored on this volume and should therefore have enough capacity to store the expected amount of data. If set to 0, no volume is created and the root volume of the VM is used for the database." |
| 81 | + "description": "Size in GB of the volume to store the database files. All job and task information, including input and output data, is stored on this volume and so it must have enough capacity to store the expected amount of data. If set to 0, no volume is created and the root volume of the VM is used for the database." |
82 | 82 | } |
83 | 83 | }, |
84 | 84 | "clientIPAddress": { |
|
148 | 148 | "metadata": { |
149 | 149 | "description": "Provide an optional inline PowerShell command to run on machine launch. For example, to set an environment variable CLOUD=AZURE, use this command excluding the angle brackets: <[System.Environment]::SetEnvironmentVariable(\"CLOUD\",\"AZURE\", \"Machine\");>. You can use either double quotes or two single quotes. To run an external script, use this command excluding the angle brackets: <Invoke-WebRequest \"https://www.example.com/script.ps1\" -OutFile script.ps1; .\\script.ps1>. Find the logs at '$Env:ProgramData\\MathWorks\\startup.log'." |
150 | 150 | } |
| 151 | + }, |
| 152 | + "imageID": { |
| 153 | + "type": "String", |
| 154 | + "defaultValue": "", |
| 155 | + "metadata": { |
| 156 | + "description": "Optional Resource ID of a custom managed image in the target region. To use a prebuilt MathWorks image instead, leave this field empty. If you customize the build, for example by removing or modifying the included scripts, this can make the image incompatible with the provided ARM template. To ensure compatibility, modify the ARM template or image accordingly." |
| 157 | + } |
151 | 158 | } |
152 | 159 | }, |
153 | 160 | "variables": { |
|
172 | 179 | "offer": "matlab-parallel-server-ref-arch-vm-win-offer", |
173 | 180 | "sku": "matlab-parallel-server-ref-arch-r2024a-vm-win-sku", |
174 | 181 | "version": "1.0.1", |
175 | | - "imageReference": { |
| 182 | + "imageResourceID": { |
| 183 | + "id": "[parameters('imageID')]" |
| 184 | + }, |
| 185 | + "defaultImageReference": { |
176 | 186 | "publisher": "[variables('publisher')]", |
177 | 187 | "offer": "[variables('offer')]", |
178 | 188 | "sku": "[variables('sku')]", |
179 | 189 | "version": "[variables('version')]" |
180 | 190 | }, |
| 191 | + "imageReference": "[if(empty(parameters('imageId')), variables('defaultImageReference'), variables('imageResourceID'))]", |
181 | 192 | "plan": { |
182 | 193 | "name": "[variables('sku')]", |
183 | 194 | "publisher": "[variables('publisher')]", |
|
407 | 418 | "[resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]" |
408 | 419 | ], |
409 | 420 | "tags": "[variables('tagsForAll')]", |
410 | | - "plan": "[variables('plan')]", |
| 421 | + "plan": "[if(empty(parameters('imageId')), variables('plan') , null())]", |
411 | 422 | "identity": { |
412 | 423 | "type": "SystemAssigned" |
413 | 424 | }, |
|
516 | 527 | "tier": "Standard", |
517 | 528 | "capacity": "[parameters('numWorkerNodes')]" |
518 | 529 | }, |
519 | | - "plan": "[variables('plan')]", |
| 530 | + "plan": "[if(empty(parameters('imageId')), variables('plan') , null())]", |
520 | 531 | "properties": { |
521 | 532 | "overprovision": false, |
522 | 533 | "upgradepolicy": { |
|
0 commit comments