Skip to content

Commit 72f708f

Browse files
author
cloudmelon
committed
add params
1 parent 734d22c commit 72f708f

File tree

4 files changed

+27
-22
lines changed

4 files changed

+27
-22
lines changed

samples/features/sql-big-data-cluster/deployment/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Using the sample Python script in **offline** folder, you will push the necessar
1717

1818
## __[Deploy SQL Server big data clusters (BDC) with Azure Kubernetes service (AKS) private cluster](private-aks/)__
1919

20-
Using the sample Python script in **private-aks** folder, you will Deploy SQL Server big data cluster in private mode with Azure Kubernetes service (AKS) private cluster.
20+
Using the sample Python script in **private-aks** folder, you will Deploy SQL Server big data cluster in in your private network with Azure Kubernetes service (AKS) private cluster.
2121

samples/features/sql-big-data-cluster/deployment/private-aks/README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,9 @@ This repository contains 3 bash scripts :
1212

1313
You can run those scripts on the following client envionrment with Linux OS or WSL/WSL2.
1414

15-
The following table lists common big data cluster tools and how to install them:
16-
17-
| Tool | Required | Description | Installation |
18-
|---|---|---|---|
19-
| `python` | Yes | Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Many parts of big data clusters for SQL Server use python. | [Install python](#python)|
20-
| `azdata` | Yes | Command-line tool for installing and managing a big data cluster. | [Install](deploy-install-azdata.md) |
21-
| `kubectl`<sup>1</sup> | Yes | Command-line tool for monitoring the underlying Kubernetes cluster ([More info](https://kubernetes.io/docs/tasks/tools/install-kubectl/)). | [Windows](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-with-powershell-from-psgallery) \| [Linux](https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-using-native-package-management) |
22-
| **Azure Data Studio** | Yes | Cross-platform graphical tool for querying SQL Server. | [Install](https://aka.ms/getazuredatastudio) |
23-
| **Data Virtualization extension** | Yes | Extension for Azure Data Studio that provides a Data Virtualization wizard. | [Install](../azure-data-studio/data-virtualization-extension.md) |
24-
| **Azure CLI**<sup>2</sup> | For AKS | Modern command-line interface for managing Azure services. Used with AKS big data cluster deployments ([More info](https://docs.microsoft.com/cli/azure/?view=azure-cli-latest)). | [Install](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest) |
25-
| **mssql-cli** | Optional | Modern command-line interface for querying SQL Server ([More info](../tools/mssql-cli.md)). | [Windows](https://github.com/dbcli/mssql-cli/blob/master/doc/installation/windows.md) \| [Linux](https://github.com/dbcli/mssql-cli/blob/master/doc/installation/linux.md) |
26-
| **sqlcmd** | For some scripts | Legacy command-line tool for querying SQL Server ([More info](https://docs.microsoft.com/sql/tools/sqlcmd-utility?view=sql-server-ver15)). You might need to install the Microsoft ODBC Driver 11 for SQL Server before installing the SQLCMD package. | [Windows](https://www.microsoft.com/download/details.aspx?id=36433) \| [Linux](../linux/sql-server-linux-setup-tools.md) |
27-
| `curl` <sup>3</sup> | For some scripts | Command-line tool for transferring data with URLs. | [Windows](https://curl.haxx.se/windows/) \| Linux: install curl package |
28-
| `oc` | Required for Red Hat OpenShift and Azure Redhat OpenShift deployments. |`oc` is the Open Shift command line interface (CLI). | [Installing the CLI](https://docs.openshift.com/container-platform/4.4/cli_reference/openshift_cli/getting-started-cli.html#installing-the-cli)
15+
The following table link listed common big data cluster tools and how to install them:
2916

17+
https://docs.microsoft.com/en-us/sql/big-data-cluster/deploy-big-data-tools?view=sql-server-ver15
3018

3119

3220
## Instructions

samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-private-aks-udr.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
while true; do
55
read -s -p "Your Azure Subscription: " subscription
66
echo
7-
read -s -p "Your service principles ID: " sp_id
8-
echo
9-
read -s -p "Your service principles Password: " sp_pwd
10-
echo
117
read -s -p "Your Resource Group Name: " resourcegroup
128
echo
139
read -s -p "In which region you're deploying " region
14-
10+
echo
11+
read -s -p "Your service principles ID: " sp_id
12+
echo
13+
read -s -p "Your service principles Password: " sp_pwd
1514
done
1615

1716
#Define a set of environment variables to be used in resource creations.

samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-private-aks.sh

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
#!/bin/bash
22
#Define a set of environment variables to be used in resource creations.
33
#
4-
export REGION_NAME=northeurope
5-
export RESOURCE_GROUP=private-bdc-aks-rg
4+
5+
#!/bin/bash
6+
#Get Subscription ID and service principles as input. It is used as default for controller, SQL Server Master instance (sa account) and Knox.
7+
#
8+
while true; do
9+
read -s -p "Your Azure Subscription: " subscription
10+
echo
11+
read -s -p "Your Resource Group Name: " resourcegroup
12+
echo
13+
read -s -p "In which region you're deploying " region
14+
echo
15+
done
16+
17+
#Define a set of environment variables to be used in resource creations.
18+
export SUBID=$subscription
19+
20+
export REGION_NAME=$region
21+
export RESOURCE_GROUP=$resourcegroup
622
export SUBNET_NAME=aks-subnet
723
export VNET_NAME=bdc-vnet
824
export AKS_NAME=bdcaksprivatecluster
925

26+
#Set Azure subscription current in use
27+
az account set --subscription $subscription
1028

1129
#Create Azure Resource Group
1230
az group create -n $RESOURCE_GROUP -l $REGION_NAME

0 commit comments

Comments
 (0)