Skip to content

Commit 514020d

Browse files
committed
backup before switch
1 parent 329633e commit 514020d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

purview/lineage/palsa/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cd -
1212
```
1313

1414
## Deploy option 2: Connect with existing
15-
1. Run `./standalone.sh deploy`
15+
1. Run `./standalone.sh deploy-connector`
1616
2. Add the service principal `Purview-ADB-Lineage-Solution-Accelerator` to the `Data Curator` role in your Purview resource.
1717
- `Data Map` > `Domains` > select the Purview instance > `Role assignments`
1818
3. Install necessary types into your Purview instance

purview/lineage/palsa/standalone.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@ fi
1010

1111
purviewName=$(curl https://raw.githubusercontent.com/davidkhala/azure-utils/refs/heads/main/cli/purview.sh | bash -s name)
1212

13-
deploy() {
13+
deploymentName=newdeploymenttemp
14+
15+
deploy-connector() {
1416
curl https://raw.githubusercontent.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator/refs/heads/release/2.3/deployment/infra/newdeploymenttemp.json -O
1517

16-
az deployment group create --resource-group $rg --template-file "./newdeploymenttemp.json" --parameters purviewName=$purviewName prefixName= clientid=$clientid clientsecret=$clientsecret resourceTagValues={} --output none
18+
az deployment group create --resource-group $rg --name $deploymentName --template-file "./newdeploymenttemp.json" --parameters purviewName=$purviewName prefixName= clientid=$clientid clientsecret=$clientsecret resourceTagValues={} --output none
1719
# if failure, clean up by `az deployment group delete --name newdeploymenttemp --resource-group $rg`
1820
rm newdeploymenttemp.json
21+
22+
}
23+
24+
deploy-stats() {
25+
az deployment group show --name $deploymentName --resource-group $rg
1926
}
2027

2128
# Install necessary types into your Purview instance
@@ -28,7 +35,7 @@ config-purview() {
2835
acc_purview_token=$(curl $login_endpoint --data "resource=https://purview.azure.net&client_id=$clientid&client_secret=$clientsecret&grant_type=client_credentials" -H Metadata:true -s | jq -r '.access_token')
2936

3037
curl https://raw.githubusercontent.com/microsoft/Purview-ADB-Lineage-Solution-Accelerator/refs/heads/release/2.3/deployment/infra/Custom_Types.json -O
31-
38+
3239
curl -s -X POST $purview_endpoint/catalog/api/atlas/v2/types/typedefs -H "Authorization: Bearer $acc_purview_token" -H "Content-Type: application/json" -d @Custom_Types.json
3340
# TODO troubleshoot error
3441
# {"requestId":"d1fb3a39-9016-44c0-9a7a-8164419d4188","errorCode":"ATLAS-400-00-01A","errorMessage":"invalid parameters: invalid payload, expect schemaAttributes in purview_custom_connector_generic_column should be list of string, but found: data_type"}

0 commit comments

Comments
 (0)