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
az container create \ | |
-g $RG \ | |
-n your-aci-name \ | |
--image $ACR_NAME.azurecr.io/your-image-name-in-acr:version \ | |
--registry-login-server $ACR_NAME.azurecr.io \ | |
--registry-username $(az keyvault secret show --vault-name $AKV_NAME --name $ACR_NAME-pull-usr --query value -o tsv) \ | |
--registry-password $(az keyvault secret show --vault-name $AKV_NAME --name $ACR_NAME-pull-pwd --query value -o tsv) \ | |
--dns-name-label your-aci-fqdn \ | |
--query "{FQDN:ipAddress.fqdn}" \ | |
--output table |
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
# CREATING A NEW KEY VAULT | |
az keyvault create -g $RG --name $AKV_NAME | |
# CREATING A SERVICE PRINCIPAL AND STORING IT (USER AND PASSWORD) INTO AKV | |
az keyvault secret set \ | |
--vault-name $AKV_NAME \ | |
--name $ACR_NAME-pull-pwd \ | |
--value $(az ad sp create-for-rbac \ | |
--name $ACR_NAME-pull \ | |
--scopes $(az acr show --name $ACR_NAME --query id --output tsv) \ |
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
# BUILDS A NEW IMAGE BY LEVERAGING ACR TASKS | |
az acr build --registry $ACR_NAME --image your-image-name-in-acr:version . |
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
# IF THERE IS NO ACR ALREADY CREATED, EXECUTE THIS STEP. | |
# IF YOU ALREADY HAVE AN ACR YOU'D LIKE TO USE, SKIP THIS STEP. | |
az acr create -n $ACR_NAME -g $RG --sku Standard --admin-enabled true |
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
# GLOBAL VARIABLES | |
ACR_NAME=your acr name | |
RG=your resource group | |
RG_ACI=your additional resource group | |
LOCATION=your location | |
AKV_NAME=your key vault name | |
# GETS USER LOGGED IN AZURE TENANT | |
az login |
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
{ | |
"Inputs": { | |
"WebServiceInput0": [ | |
{ | |
"AGE": 59, | |
"SEX": 2, | |
"BMI": 32.1, | |
"BP": 101, | |
"S1": 157, | |
"S2": 93.2, |
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
{ | |
"jsonSchemaSemanticVersion": "1.0.0", | |
"imports": [], | |
"manifestName": "clickstream", | |
"explanation": "CDM standard entities", | |
"entities": [ | |
{ | |
"type": "LocalEntity", | |
"entityName": "Comments", | |
"entityPath": "Comments.cdm.json/Comments" |
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
{ | |
"$schema": "../schema.cdm.json", | |
"jsonSchemaSemanticVersion": "1.0.0", | |
"imports": [ | |
{ | |
"corpusPath": "/foundations.cdm.json" | |
}, | |
{ | |
"corpusPath": "/meanings.cdm.json" | |
} |
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
$appgw = Set-AzApplicationGateway ` | |
-ApplicationGateway $appgw |
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
$appgw = Add-AzApplicationGatewayRequestRoutingRule ` | |
-ApplicationGateway $appgw ` | |
-Name "apim-api-external-rule" ` | |
-RuleType PathBasedRouting ` | |
-HttpListener $listener ` | |
-BackendAddressPool $Pool ` | |
-BackendHttpSettings $poolSettings ` | |
-UrlPathMap $pathMap |
NewerOlder