|
143 | 143 | "installCommand": "[concat('powershell -ExecutionPolicy Unrestricted -File ', variables('scriptExe'), ' -ClusterName ', parameters('ClusterName'), ' -HeadnodeInternalHostname ', variables('headnodeMachineName'), ' -LicenseServer ', parameters('LicenseServer'))]", |
144 | 144 | "installHeadnodeCommand": "[concat(variables('installCommand'), ' -Role headnode -NumWorkers 0')]", |
145 | 145 | "installWorkerCommand": "[concat(variables('installCommand'), ' -Role worker -NumWorkers ', parameters('NumWorkersPerNode'))]", |
| 146 | + "stopSpoolerServiceCommand": "[concat('powershell -command ','Stop-Service -Name Spooler -Force; Set-Service -Name Spooler -StartupType Disabled')]", |
146 | 147 | "tagsForAll": { |
147 | 148 | "provider": "[variables('providerID')]" |
148 | 149 | }, |
|
348 | 349 | "fileUris": "[variables('fileUris')]" |
349 | 350 | }, |
350 | 351 | "protectedSettings": { |
351 | | - "commandToExecute": "[concat(variables('installHeadnodeCommand'), ' -StorageAccountName ', variables('storageAccountName'), ' -StorageAccountKey ', listKeys(variables('storageAccountName'), '2017-06-01').keys[0].value, ' -HeadnodeExternalHostname ', reference(variables('headnodeIPName')).dnsSettings.fqdn, ' -HeadnodeInternalIPAddress ', reference(concat(variables('headnodeMachineName'), variables('networkInterfacePostfix'))).ipConfigurations[0].properties.privateIPAddress)]" |
| 352 | + "commandToExecute": "[concat(variables('stopSpoolerServiceCommand'),'; ', variables('installHeadnodeCommand'), ' -StorageAccountName ', variables('storageAccountName'), ' -StorageAccountKey ', listKeys(variables('storageAccountName'), '2017-06-01').keys[0].value, ' -HeadnodeExternalHostname ', reference(variables('headnodeIPName')).dnsSettings.fqdn, ' -HeadnodeInternalIPAddress ', reference(concat(variables('headnodeMachineName'), variables('networkInterfacePostfix'))).ipConfigurations[0].properties.privateIPAddress)]" |
352 | 353 | } |
353 | 354 | } |
354 | 355 | }, |
|
429 | 430 | "fileUris": "[variables('fileUris')]" |
430 | 431 | }, |
431 | 432 | "protectedSettings": { |
432 | | - "commandToExecute": "[concat(variables('installWorkerCommand'), ' -StorageAccountName ', variables('storageAccountName'), ' -StorageAccountKey ', listKeys(variables('storageAccountName'), '2017-06-01').keys[0].value, ' -HeadnodeExternalHostname ', reference(variables('headnodeIPName')).dnsSettings.fqdn, ' -HeadnodeInternalIPAddress ', reference(concat(variables('headnodeMachineName'), variables('networkInterfacePostfix'))).ipConfigurations[0].properties.privateIPAddress)]" |
| 433 | + "commandToExecute": "[concat(variables('stopSpoolerServiceCommand'),'; ', variables('installWorkerCommand'), ' -StorageAccountName ', variables('storageAccountName'), ' -StorageAccountKey ', listKeys(variables('storageAccountName'), '2017-06-01').keys[0].value, ' -HeadnodeExternalHostname ', reference(variables('headnodeIPName')).dnsSettings.fqdn, ' -HeadnodeInternalIPAddress ', reference(concat(variables('headnodeMachineName'), variables('networkInterfacePostfix'))).ipConfigurations[0].properties.privateIPAddress)]" |
433 | 434 | } |
434 | 435 | } |
435 | 436 | } |
|
0 commit comments