Skip to content

Commit

Permalink
Update Azure Script (#400)
Browse files Browse the repository at this point in the history
Signed-off-by: AbdullahAlShaad <[email protected]>
  • Loading branch information
AbdullahAlShaad authored Oct 31, 2024
1 parent b731258 commit 51d7de2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,19 @@ az_cli() {

ACCESS_KEY=$(az storage account keys list --account-name ${STORAGE_ACCOUNT_NAME} | jq -r '.[0].value')

CLUSTER_ID=$(kubectl get ns kube-system -o=jsonpath='{.metadata.uid}')
UTC_TIME=$(date -u +"%Y-%m-%dT%H:%M:%S.%NZ")

#call the webhook here
resp=$(curl -X POST https://appscode."$ACE_PLATFORM"/marketplace/api/v1/marketplaces/azure/notification/resource?secret=${API_SECRET} \
-H "Content-Type: application/json" \
-d '{
"eventType": "BIND",
"eventTime": "'${UTC_TIME}'",
"applicationId": "/subscriptions/'${AZURE_SUBSCRIPTION_ID}'/resourceGroups/'${RESOURCE_GROUP}'/providers/Microsoft.Solutions/applications/'${APPLICATION_NAME}'",
"bindingInfo": {
"installerID": "'${INSTALLER_ID}'",
"clusterId": "'${CLUSTER_ID}'",
"options": {
"infra": {
"dns": {
Expand Down

0 comments on commit 51d7de2

Please sign in to comment.