Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform for Service Bus uses deprecated resource type azurerm_servicebus_namespace_network_rule_set #3783

Closed
SvenAelterman opened this issue Nov 7, 2023 · 1 comment · Fixed by #3858
Assignees
Labels
bug Something isn't working

Comments

@SvenAelterman
Copy link
Collaborator

Describe the bug

When deploying TRE core (e.g., with make deploy-core), I observed this warning from Terraform:

| Warning: Deprecated Resource

│ with azurerm_servicebus_namespace_network_rule_set.servicebus_network_rule_set,
│ on servicebus.tf line 78, in resource "azurerm_servicebus_namespace_network_rule_set" "servicebus_network_rule_set":
│ 78: resource "azurerm_servicebus_namespace_network_rule_set" "servicebus_network_rule_set" {

│ The azurerm_servicebus_namespace_network_rule_set resource is deprecated and will be removed in version 4.0 of the AzureRM provider. Please use network_rule_set inside the azurerm_servicebus_namespace resource instead.

Azure TRE release version (e.g. v0.14.0 or main): v0.15.2

@SvenAelterman SvenAelterman added the bug Something isn't working label Nov 7, 2023
@marrobi
Copy link
Member

marrobi commented Feb 27, 2024

seup_local_debugging.sh also needs updating to use network_rule_set...

Line 43:

echo "Adding local IP Address to ${SERVICE_BUS_NAMESPACE}."
if az servicebus namespace network-rule-set list \
  --resource-group "${RESOURCE_GROUP_NAME}" \
  --namespace-name "${SERVICE_BUS_NAMESPACE}" \
  -o json | grep -q "${IPADDR}" ; then
  echo "IP Address ${IPADDR} already exists in ${SERVICE_BUS_NAMESPACE}. Skipping..."
else
  az servicebus namespace network-rule-set ip-rule add \
    --resource-group "${RESOURCE_GROUP_NAME}" \
    --namespace-name "${SERVICE_BUS_NAMESPACE}" \
    --ip-rule ip-address="${IPADDR}" action=Allow
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants