File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 11# [ Purview-ADB-Lineage-Solution-Accelerator (PALSA)] ( https://github.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator )
22
3- Build from scratch
3+ ## Deploy option 1: Build from scratch
44```
55git clone https://github.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator.git
66cd ./Purview-ADB-Lineage-Solution-Accelerator/deployment/infra/
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33az config set extension.dynamic_install_allow_preview=true
4- rg=${rg:- " Purview-ADB-Lineage-Solution-Accelerator" } # resource_group
5- purviewlocation=SoutheastAsia
6- if ! az group exists --resource-group $rg ; then
7- az group create --location $purviewlocation --resource-group $rg
8- fi
94
10- service_principal=${service_principal:- " Purview-ADB-Lineage-Solution-Accelerator" }
11- subscription=$( curl https://raw.githubusercontent.com/davidkhala/azure-utils/refs/heads/main/cli/context.sh | bash -s subscription)
12- credentialFile=" .credential.json"
13-
14- if ! [ -f $credentialFile ]; then
15- # create service principal
16- az ad sp create-for-rbac --name $service_principal --role Reader --scopes " /subscriptions/$subscription " --query " {appId:appId, password:password}" > $credentialFile
17- fi
5+ curl https://raw.githubusercontent.com/davidkhala/Microsoft/refs/heads/main/purview/lineage/palsa/common.sh -O
6+ source ./common.sh
7+ rm ./common.sh
188
199echo " export rg=$rg " > settings.sh
2010echo " export purviewlocation=$purviewlocation " > settings.sh
2111echo " export prefix=\"\" " > settings.sh
2212
2313echo " export tenantid=$( curl https://raw.githubusercontent.com/davidkhala/azure-utils/refs/heads/main/cli/context.sh | bash -s tenant) " > settings.sh
2414
25- echo " export clientid=$( jq -r " .appId " $credentialFile ) " > settings.sh # Azure Service Principal secret ID
15+ echo " export clientid=$clientid " > settings.sh # Azure Service Principal secret ID
2616
27- echo " export clientsecret=$( jq -r " .password " $credentialFile ) " > settings.sh # Azure Service Principal secret value
17+ echo " export clientsecret=$clientsecret " > settings.sh # Azure Service Principal secret value
You can’t perform that action at this time.
0 commit comments