Skip to content

Commit e9f3ff7

Browse files
Updates for CTP3.1
1 parent 58d30bd commit e9f3ff7

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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
#
4545
DOCKER_REGISTRY="private-repo.microsoft.com"
4646
DOCKER_REPOSITORY="mssql-private-preview"
47-
DOCKER_IMAGE_TAG="ctp3.0"
47+
DOCKER_IMAGE_TAG="ctp3.1"
4848

4949
print ('Setting environment variables')
5050
os.environ['MSSQL_SA_PASSWORD'] = PASSWORD
@@ -53,7 +53,6 @@ def executeCmd (cmd):
5353
os.environ['KNOX_PASSWORD'] = PASSWORD
5454
os.environ['DOCKER_USERNAME']=DOCKER_USERNAME
5555
os.environ['DOCKER_PASSWORD']=DOCKER_PASSWORD
56-
os.environ['DOCKER_IMAGE_POLICY']="IfNotPresent"
5756
os.environ['ACCEPT_EULA']="Yes"
5857

5958
print ("Set azure context to subcription: "+SUBSCRIPTION_ID)
@@ -72,20 +71,22 @@ def executeCmd (cmd):
7271
executeCmd (command)
7372

7473
print("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"
7675
executeCmd (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 + ""
7978
executeCmd (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 + ""
8281
executeCmd (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 + ""
8484
executeCmd (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 + ""
8687
executeCmd (command)
8788

88-
command="mssqlctl cluster create -c custom.json --accept-eula yes"
89+
command="mssqlctl bdc create -c custom --accept-eula yes"
8990
executeCmd (command)
9091

9192
print("")

0 commit comments

Comments
 (0)