File tree Expand file tree Collapse file tree 3 files changed +5
-13
lines changed
samples/features/sql-big-data-cluster/deployment/private-aks/scripts Expand file tree Collapse file tree 3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# Get password as input. It is used as default for controller, SQL Server Master instance (sa account) and Knox.
4
-
4
+ #
5
5
while true ; do
6
6
read -s -p " Create Admin username for Big Data Cluster: " bdcadmin
7
7
echo
@@ -30,16 +30,14 @@ azdata bdc config replace -c private-bdc-aks /bdc.json -j "$.spec.resources.gate
30
30
azdata bdc config replace -c private-bdc-aks /bdc.json -j " $.spec.resources.appproxy.spec.endpoints[0].serviceType=NodePort"
31
31
32
32
# In case you're deploying BDC in HA mode ( aks-dev-test-ha profile ) please also use the following command
33
- # azdata bdc config replace -c private-bdc-aks /bdc.json -j "$.spec.resources.master.spec.endpoints[1].serviceType= NodePort"
34
-
35
-
33
+ # azdata bdc config replace -c private-bdc-aks /bdc.json -j "$.spec.resources.master.spec.endpoints[1].serviceType=NodePort"
36
34
export AZDATA_USERNAME=$bdcadmin
37
35
export AZDATA_PASSWORD=$password
38
36
39
37
azdata bdc create --config-profile private-bdc-aks --accept-eula yes
40
38
41
39
# Login and get endpoint list for the cluster.
42
-
40
+ #
43
41
azdata login -n mssql-cluster
44
42
45
43
azdata bdc endpoint list --output table
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
2
# Get Subscription ID and service principles as input. It is used as default for controller, SQL Server Master instance (sa account) and Knox.
4
-
3
+ #
5
4
while true ; do
6
5
read -s -p " Your Azure Subscription: " subscription
7
6
echo
@@ -16,7 +15,6 @@ while true; do
16
15
done
17
16
18
17
# Define a set of environment variables to be used in resource creations.
19
-
20
18
export SUBID=$subscription
21
19
22
20
export REGION_NAME=$region
@@ -89,13 +87,11 @@ az network route-table route create -g $RESOURCE_GROUP --name $FWROUTE_NAME_INTE
89
87
90
88
91
89
# Add FW Network Rules
92
-
93
90
az network firewall network-rule create -g $RESOURCE_GROUP -f $FWNAME --collection-name ' aksfwnr' -n ' apiudp' --protocols ' UDP' --source-addresses ' *' --destination-addresses " AzureCloud.$REGION_NAME " --destination-ports 1194 --action allow --priority 100
94
91
az network firewall network-rule create -g $RESOURCE_GROUP -f $FWNAME --collection-name ' aksfwnr' -n ' apitcp' --protocols ' TCP' --source-addresses ' *' --destination-addresses " AzureCloud.$REGION_NAME " --destination-ports 9000
95
92
az network firewall network-rule create -g $RESOURCE_GROUP -f $FWNAME --collection-name ' aksfwnr' -n ' time' --protocols ' UDP' --source-addresses ' *' --destination-fqdns ' ntp.ubuntu.com' --destination-ports 123
96
93
97
94
# Add FW Application Rules
98
-
99
95
az network firewall application-rule create -g $RESOURCE_GROUP -f $FWNAME --collection-name ' aksfwar' -n ' fqdn' --source-addresses ' *' --protocols ' http=80' ' https=443' --fqdn-tags " AzureKubernetesService" --action allow --priority 100
100
96
101
97
# Associate User defined route table (UDR) to AKS cluster where deployed BDC previsouly
@@ -106,7 +102,6 @@ az network vnet subnet update -g $RESOURCE_GROUP --vnet-name $VNET_NAME --name $
106
102
107
103
108
104
# Create SP and Assign Permission to Virtual Network
109
-
110
105
az ad sp create-for-rbac -n " bdcaks-sp" --skip-assignment
111
106
112
107
export APPID=$sp_id
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
-
3
2
# Define a set of environment variables to be used in resource creations.
4
-
3
+ #
5
4
export REGION_NAME=northeurope
6
5
export RESOURCE_GROUP=private-bdc-aks-rg
7
6
export SUBNET_NAME=aks-subnet
You can’t perform that action at this time.
0 commit comments