From 79469a16ab5a89d1bd13b06bc50e640458964f8d Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 24 Nov 2021 21:02:33 +0800 Subject: [PATCH] add lines --- deploy/k8s/helm/allrelated.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/deploy/k8s/helm/allrelated.sh b/deploy/k8s/helm/allrelated.sh index 937fc6803..29d9c0dc2 100644 --- a/deploy/k8s/helm/allrelated.sh +++ b/deploy/k8s/helm/allrelated.sh @@ -214,3 +214,31 @@ az acr login --name $ACR_NAME echo "Completed AKS Setup" date +####################### +# Post the following JSON payload to the endpoint, sending a valid Basic Access Token +# https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints?api-version=5.1-preview.2 + +{ + "authorization": { + "scheme": "ServicePrincipal", + "parameters": { + "loginServer": ".azurecr.io", + "servicePrincipalId": "", + "tenantId": "", + "serviceprincipalkey": "" + } + }, + "description": "", + "name": "Name of Connection", + "type": "dockerregistry", + "url": "https://.azurecr.io", + "isShared": false, + "owner": "library", + "data": { + "registryId": "/subscriptions//resourceGroups//providers/Microsoft.ContainerRegistry/registries/", + "registrytype": "ACR", + "spnObjectId": "", + "subscriptionId": "", + "subscriptionName": "" + } +} \ No newline at end of file