diff --git a/samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py b/samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py index bb1d56a4..d4405e13 100644 --- a/samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py +++ b/samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py @@ -1,7 +1,7 @@ # # Prerequisites: # -# 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 ) +# 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) # # Run `az login` at least once BEFORE running this script # @@ -44,7 +44,7 @@ CONTROLLER_USERNAME=input("Provide username to be used for Controller user - Pre # DOCKER_REGISTRY="private-repo.microsoft.com" DOCKER_REPOSITORY="mssql-private-preview" -DOCKER_IMAGE_TAG="ctp3.0" +DOCKER_IMAGE_TAG="ctp3.1" print ('Setting environment variables') os.environ['MSSQL_SA_PASSWORD'] = PASSWORD @@ -53,7 +53,6 @@ os.environ['CONTROLLER_PASSWORD'] = PASSWORD os.environ['KNOX_PASSWORD'] = PASSWORD os.environ['DOCKER_USERNAME']=DOCKER_USERNAME os.environ['DOCKER_PASSWORD']=DOCKER_PASSWORD -os.environ['DOCKER_IMAGE_POLICY']="IfNotPresent" os.environ['ACCEPT_EULA']="Yes" print ("Set azure context to subcription: "+SUBSCRIPTION_ID) @@ -72,20 +71,22 @@ command = "az aks get-credentials --overwrite-existing --name "+CLUSTER_NAME+" - executeCmd (command) print("Creating SQL Big Data cluster:" +CLUSTER_NAME) -command="mssqlctl cluster config init --src aks-dev-test.json --target custom.json --force" +command="mssqlctl bdc config init --src aks-dev-test --target custom --force" executeCmd (command) -command="mssqlctl cluster config section set -c custom.json -j ""metadata.name=" + CLUSTER_NAME + "" +command="mssqlctl bdc config section set -c custom -j ""metadata.name=" + CLUSTER_NAME + "" executeCmd (command) -command="mssqlctl cluster config section set -c custom.json -j ""$.spec.controlPlane.spec.docker.registry=" + DOCKER_REGISTRY + "" -executeCmd (command) -command="mssqlctl cluster config section set -c custom.json -j ""$.spec.controlPlane.spec.docker.repository=" + DOCKER_REPOSITORY + "" -executeCmd (command) -command="mssqlctl cluster config section set -c custom.json -j ""$.spec.controlPlane.spec.docker.imageTag=" + DOCKER_IMAGE_TAG + "" +command="mssqlctl bdc config section set -c custom -j ""$.spec.controlPlane.spec.docker.registry=" + DOCKER_REGISTRY + "" executeCmd (command) -command="mssqlctl cluster create -c custom.json --accept-eula yes" +command="mssqlctl bdc config section set -c custom -j ""$.spec.controlPlane.spec.docker.repository=" + DOCKER_REPOSITORY + "" +executeCmd (command) + +command="mssqlctl bdc config section set -c custom -j ""$.spec.controlPlane.spec.docker.imageTag=" + DOCKER_IMAGE_TAG + "" +executeCmd (command) + +command="mssqlctl bdc create -c custom --accept-eula yes" executeCmd (command) print("")