-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure CC deployment artifacts: don't provide base URL parameters
- Loading branch information
1 parent
000dc57
commit 070d0cc
Showing
5 changed files
with
203 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"containerGroupName": { | ||
"value": "" | ||
}, | ||
"location": { | ||
"value": "" | ||
}, | ||
"identity": { | ||
"value": "" | ||
}, | ||
"vaultName": { | ||
"value": "" | ||
}, | ||
"operatorKeySecretName": { | ||
"value": "" | ||
}, | ||
"deploymentEnvironment": { | ||
"value": "" | ||
}, | ||
"coreBaseUrl": { | ||
"value": "" | ||
}, | ||
"optoutBaseUrl": { | ||
"value": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"containerGroupName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Name for the container group" | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Location for the container group" | ||
} | ||
}, | ||
"identity": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "ManagedIdentity to launch the container" | ||
} | ||
}, | ||
"vaultName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Vault name" | ||
} | ||
}, | ||
"operatorKeySecretName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Operator key secret name" | ||
} | ||
}, | ||
"deploymentEnvironment": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Deployment environment" | ||
} | ||
}, | ||
"coreBaseUrl": { | ||
"type": "string", | ||
"defaultValue": "", | ||
"metadata": { | ||
"description": "UID2 core base url override" | ||
} | ||
}, | ||
"optoutBaseUrl": { | ||
"type": "string", | ||
"defaultValue": "", | ||
"metadata": { | ||
"description": "UID2 optout base url override" | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"apiVersion": "2023-05-01", | ||
"name": "[parameters('containerGroupName')]", | ||
"location": "[parameters('location')]", | ||
"identity": { | ||
"type": "userAssigned", | ||
"userAssignedIdentities": { | ||
"[resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/',parameters('identity'))]": {} | ||
} | ||
}, | ||
"properties": { | ||
"confidentialComputeProperties": { | ||
"ccePolicy": "" | ||
}, | ||
"containers": [ | ||
{ | ||
"name": "skr", | ||
"properties": { | ||
"image": "mcr.microsoft.com/aci/skr:2.3", | ||
"command": [ | ||
"/skr.sh" | ||
], | ||
"ports": [ | ||
{ | ||
"port": 9000 | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 1 | ||
} | ||
}, | ||
"environmentVariables": [ | ||
{ | ||
"name": "Port", | ||
"value": "9000" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "uid2-operator", | ||
"properties": { | ||
"image": "IMAGE_PLACEHOLDER", | ||
"ports": [ | ||
{ | ||
"port": 8080, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 4, | ||
"memoryInGB": 16 | ||
} | ||
}, | ||
"environmentVariables": [ | ||
{ | ||
"name": "VAULT_NAME", | ||
"value": "[parameters('vaultName')]" | ||
}, | ||
{ | ||
"name": "OPERATOR_KEY_SECRET_NAME", | ||
"value": "[parameters('operatorKeySecretName')]" | ||
}, | ||
{ | ||
"name": "DEPLOYMENT_ENVIRONMENT", | ||
"value": "[parameters('deploymentEnvironment')]" | ||
}, | ||
{ | ||
"name": "CORE_BASE_URL", | ||
"value": "[parameters('coreBaseUrl')]" | ||
}, | ||
{ | ||
"name": "OPTOUT_BASE_URL", | ||
"value": "[parameters('optoutBaseUrl')]" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"sku": "Confidential", | ||
"osType": "Linux", | ||
"restartPolicy": "Never", | ||
"ipAddress": { | ||
"type": "Public", | ||
"ports": [ | ||
{ | ||
"port": "8080", | ||
"protocol": "TCP" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"containerIPv4Address": { | ||
"type": "string", | ||
"value": "[reference(resourceId('Microsoft.ContainerInstance/containerGroups', parameters('containerGroupName'))).ipAddress.ip]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters