Skip to content

Commit 329633e

Browse files
committed
fix Build from scratch option
1 parent 27e3541 commit 329633e

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

purview/lineage/palsa/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
```
55
git clone https://github.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator.git
66
cd ./Purview-ADB-Lineage-Solution-Accelerator/deployment/infra/
Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
11
#!/bin/bash
22
set -e
33
az 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

199
echo "export rg=$rg" > settings.sh
2010
echo "export purviewlocation=$purviewlocation" > settings.sh
2111
echo "export prefix=\"\"" > settings.sh
2212

2313
echo "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

0 commit comments

Comments
 (0)