Skip to content

Commit

Permalink
AML NSG fixes (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
marrobi authored Oct 21, 2022
1 parent 79397a9 commit 4d0e25d
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 37 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ENHANCEMENTS:
* `tre` CLI: added `raw` output option, improved `airlock-requests` handling, more consistent exit codes on error, added examples to CLI README.md

BUG FIXES:
* Fix issues with AML workspace service deployment ([#2768](https://github.com/microsoft/AzureTRE/pull/2768))

COMPONENTS:

Expand Down
4 changes: 2 additions & 2 deletions templates/workspace_services/azureml/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: tre-service-azureml
version: 0.5.1
version: 0.5.6
description: "An Azure TRE service for Azure Machine Learning"
registry: azuretre
dockerfile: Dockerfile.tmpl
Expand Down Expand Up @@ -95,7 +95,7 @@ outputs:

mixins:
- terraform:
clientVersion: 1.2.6
clientVersion: 1.3.3

install:
- terraform:
Expand Down
64 changes: 33 additions & 31 deletions templates/workspace_services/azureml/terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset

Expand All @@ -10,7 +9,7 @@ eval "$(jq -r '@sh "nsg_name=\(.nsg_name) resource_group_name=\(.resource_group_
if NSG_RULE=$(az network nsg rule show -g "${resource_group_name?}" --nsg-name "${nsg_name?}" --name "${nsg_rule_name?}" -o json); then
NSG_RULE_PRIORITY=$(echo "$NSG_RULE" | jq '.priority')
else
NSG_RULE_MAX_PRIORITY=$(az network nsg rule list -g "${resource_group_name?}" --nsg-name "${resource_group_name?}" --query "not_null(max_by([?direction=='${direction?}' && access=='Allow'],&priority).priority) || '100'" -o json)
NSG_RULE_MAX_PRIORITY=$(az network nsg rule list -g "${resource_group_name?}" --nsg-name "${nsg_name?}" --query "not_null(max_by([?direction=='${direction?}' && access=='Allow'],&priority).priority) || '100'" -o json)
# without $(()) command fails
# shellcheck disable=SC2004
NSG_RULE_PRIORITY=$(($NSG_RULE_MAX_PRIORITY + 1))
Expand Down
4 changes: 2 additions & 2 deletions templates/workspace_services/azureml/terraform/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.5.0"
version = "=3.27.0"
}
azapi = {
source = "Azure/azapi"
version = "=0.3.0"
version = "=1.0.0"
}
external = {
source = "hashicorp/external"
Expand Down

0 comments on commit 4d0e25d

Please sign in to comment.