Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Updating the azure script (#2425)
Browse files Browse the repository at this point in the history
* Making changes for Dave

* Update azurescript.sh
  • Loading branch information
ngosset committed Oct 26, 2020
1 parent ac04e8d commit e5bacfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/azurescript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ SP_APP_ID=$(az ad sp show --id http://$SERVICE_PRINCIPAL_NAME --query appId --ou
#in general, this Container instance resource creation is slow and can take minutes even when it does succeed
sleep 120
# To query the log analytics workspace for container logs query ContainerEvent_CL and ContainerInstanceLog_CL tables
az container create --resource-group $RG_NAME --name $VIRUS_SCANNER_NAME --image ${ACR_NAME}.azurecr.io/${VIRUS_SCANNER_IMAGE_NAME}:latest --dns-name-label $VIRUS_SCANNER_NAME --ports 3310 --registry-login-server ${ACR_NAME}.azurecr.io --registry-password $SP_PASSWD --registry-username $SP_APP_ID --log-analytics-workspace $(az monitor log-analytics workspace show --resource-group $LOG_RG --subscription $LOG_SUBSCRIPTION --workspace-name $LOG_ANALYTICS --query customerId --output tsv) --log-analytics-workspace-key $(az monitor log-analytics workspace get-shared-keys --resource-group $LOG_RG --subscription $LOG_SUBSCRIPTION --workspace-name $LOG_ANALYTICS --query primarySharedKey --output tsv)
az container create --resource-group $RG_NAME --name $VIRUS_SCANNER_NAME --memory 3.5 --os-type Linux --image ${ACR_NAME}.azurecr.io/${VIRUS_SCANNER_IMAGE_NAME}:latest --dns-name-label $VIRUS_SCANNER_NAME --ports 3310 --registry-login-server ${ACR_NAME}.azurecr.io --registry-password $SP_PASSWD --registry-username $SP_APP_ID --log-analytics-workspace $(az monitor log-analytics workspace show --resource-group $LOG_RG --subscription $LOG_SUBSCRIPTION --workspace-name $LOG_ANALYTICS --query customerId --output tsv) --log-analytics-workspace-key $(az monitor log-analytics workspace get-shared-keys --resource-group $LOG_RG --subscription $LOG_SUBSCRIPTION --workspace-name $LOG_ANALYTICS --query primarySharedKey --output tsv)
## Create Content Moderator - Azure Cognitive Services
az cognitiveservices account create --name $COGNITIVE_NAME --resource-group $RG_NAME --kind ContentModerator --sku F0 --location canadacentral --yes
Expand Down

0 comments on commit e5bacfe

Please sign in to comment.