11#
22# Prerequisites:
33#
4- # Azure CLI (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli), python3 (https://www.python.org/downloads), mssqlctl CLI (pip3 install -r https://private-repo.microsoft.com/python/ctp3.0 /mssqlctl/requirements.txt )
4+ # Azure CLI (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli), python3 (https://www.python.org/downloads), mssqlctl CLI (pip3 install -r https://private-repo.microsoft.com/python/ctp3.1 /mssqlctl/requirements.txt)
55#
66# Run `az login` at least once BEFORE running this script
77#
@@ -44,7 +44,7 @@ def executeCmd (cmd):
4444#
4545DOCKER_REGISTRY = "private-repo.microsoft.com"
4646DOCKER_REPOSITORY = "mssql-private-preview"
47- DOCKER_IMAGE_TAG = "ctp3.0 "
47+ DOCKER_IMAGE_TAG = "ctp3.1 "
4848
4949print ('Setting environment variables' )
5050os .environ ['MSSQL_SA_PASSWORD' ] = PASSWORD
@@ -53,7 +53,6 @@ def executeCmd (cmd):
5353os .environ ['KNOX_PASSWORD' ] = PASSWORD
5454os .environ ['DOCKER_USERNAME' ]= DOCKER_USERNAME
5555os .environ ['DOCKER_PASSWORD' ]= DOCKER_PASSWORD
56- os .environ ['DOCKER_IMAGE_POLICY' ]= "IfNotPresent"
5756os .environ ['ACCEPT_EULA' ]= "Yes"
5857
5958print ("Set azure context to subcription: " + SUBSCRIPTION_ID )
@@ -72,20 +71,22 @@ def executeCmd (cmd):
7271executeCmd (command )
7372
7473print ("Creating SQL Big Data cluster:" + CLUSTER_NAME )
75- command = "mssqlctl cluster config init --src aks-dev-test.json --target custom.json --force"
74+ command = "mssqlctl bdc config init --src aks-dev-test --target custom --force"
7675executeCmd (command )
7776
78- command = "mssqlctl cluster config section set -c custom.json -j " "metadata.name=" + CLUSTER_NAME + ""
77+ command = "mssqlctl bdc config section set -c custom -j " "metadata.name=" + CLUSTER_NAME + ""
7978executeCmd (command )
8079
81- command = "mssqlctl cluster config section set -c custom.json -j " "$.spec.controlPlane.spec.docker.registry=" + DOCKER_REGISTRY + ""
80+ command = "mssqlctl bdc config section set -c custom -j " "$.spec.controlPlane.spec.docker.registry=" + DOCKER_REGISTRY + ""
8281executeCmd (command )
83- command = "mssqlctl cluster config section set -c custom.json -j " "$.spec.controlPlane.spec.docker.repository=" + DOCKER_REPOSITORY + ""
82+
83+ command = "mssqlctl bdc config section set -c custom -j " "$.spec.controlPlane.spec.docker.repository=" + DOCKER_REPOSITORY + ""
8484executeCmd (command )
85- command = "mssqlctl cluster config section set -c custom.json -j " "$.spec.controlPlane.spec.docker.imageTag=" + DOCKER_IMAGE_TAG + ""
85+
86+ command = "mssqlctl bdc config section set -c custom -j " "$.spec.controlPlane.spec.docker.imageTag=" + DOCKER_IMAGE_TAG + ""
8687executeCmd (command )
8788
88- command = "mssqlctl cluster create -c custom.json --accept-eula yes"
89+ command = "mssqlctl bdc create -c custom --accept-eula yes"
8990executeCmd (command )
9091
9192print ("" )
0 commit comments