Commit 5b1ac82e authored by Aryaan Singh's avatar Aryaan Singh
Browse files

Modify Data Seeding Docker Env names

parent eb53407a
Pipeline #59633 passed with stages
in 54 seconds
......@@ -6,9 +6,9 @@ services:
dockerfile: ./data_seeding_agent/Dockerfile
image: msosdu.azurecr.io/data-seeding-agent:$VERSION
environment:
TENANT_ID: $TENANT_ID
PRINCIPAL_ID: $PRINCIPAL_ID
PRINCIPAL_SECRET: $PRINCIPAL_SECRET
PARTITION_NAME_ARRAY: $PARTITION_NAME_ARRAY # comma separated list of partitions
ARM_TENANT_ID: $ARM_TENANT_ID
ARM_CLIENT_ID: $ARM_CLIENT_ID
ARM_CLIENT_SECRET: $ARM_CLIENT_SECRET
PARTITIONS: $PARTITIONS # comma separated list of partitions
RESOURCE_GROUP_NAME: $RESOURCE_GROUP_NAME
VERSION: $VERSION
\ No newline at end of file
#!/bin/bash
# This logs the Azure CLI in using the configured service principal.
az login --service-principal -u $PRINCIPAL_ID -p $PRINCIPAL_SECRET --tenant $TENANT_ID
az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $ARM_TENANT_ID
# The Legal_COO.json file needs to be loaded into the Data Partition Storage Account,
# in the container legal-service-azure-configuration.
ENV_VAULT=$(az keyvault list --resource-group $RESOURCE_GROUP_NAME --query [].name -otsv)
IFS=',' read -r -a partitions <<< ${PARTITION_NAME_ARRAY}
IFS=',' read -r -a partitions <<< ${PARTITIONS}
for index in "${!partitions[@]}"
do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment