From e0d8b58969728054d1800abc925aa5352882baa8 Mon Sep 17 00:00:00 2001 From: Andrija Djurisic Date: Wed, 1 Jul 2020 21:02:34 +0200 Subject: [PATCH] Fix Azure example-gpu.yml (#9242) `imageSku` should be string ... otherwise this is the error it shows up: ``` msrestazure.azure_exceptions.CloudError: Azure Error: InvalidTemplate Message: Deployment template validation failed: 'Template parameter JToken type is not valid. Expected 'String, Uri'. Actual 'Integer'. Please see https://aka.ms/resource-manager-parameter-files for usage details.'. Additional Information: Type: TemplateViolation Info: { "lineNumber": 1, "linePosition": 673, "path": "properties.template.parameters.imageSku" } ``` --- python/ray/autoscaler/azure/example-gpu.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ray/autoscaler/azure/example-gpu.yaml b/python/ray/autoscaler/azure/example-gpu.yaml index e94e11985..0c6f85673 100644 --- a/python/ray/autoscaler/azure/example-gpu.yaml +++ b/python/ray/autoscaler/azure/example-gpu.yaml @@ -73,7 +73,7 @@ head_node: # List images https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findimage imagePublisher: microsoft-dsvm imageOffer: ubuntu-1804 - imageSku: 1804 + imageSku: "1804" imageVersion: 20.02.01 # Provider-specific config for worker nodes, e.g. instance type. By default @@ -84,7 +84,7 @@ worker_nodes: # List images https://docs.microsoft.com/en-us/azure/virtual-machines/linux/cli-ps-findimage imagePublisher: microsoft-dsvm imageOffer: ubuntu-1804 - imageSku: 1804 + imageSku: "1804" imageVersion: 20.02.01 # Files or directories to copy to the head and worker nodes. The format is a @@ -129,4 +129,4 @@ head_start_ray_commands: # Command to start ray on worker nodes. You don't need to change this. worker_start_ray_commands: - ray stop - - ulimit -n 65536; ray start --address=$RAY_HEAD_IP:6379 --object-manager-port=8076 \ No newline at end of file + - ulimit -n 65536; ray start --address=$RAY_HEAD_IP:6379 --object-manager-port=8076