Skip to content

Commit

Permalink
Updates to Terraform private networking
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneochotny committed Dec 1, 2021
1 parent 113ccf0 commit 695fe6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ resource "azurerm_storage_account_network_rules" "firewall" {
count = var.enable_private_endpoints == true ? 1 : 0
storage_account_id = azurerm_storage_account.datalake.id
default_action = "Deny"
bypass = [ "AzureServices" ]
bypass = [ "None" ]

private_link_access {
endpoint_resource_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}/resourcegroups/${var.resource_group_name}/providers/Microsoft.Synapse/workspaces/*"
Expand Down
1 change: 1 addition & 0 deletions deploySynapse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ sqlcmd -U ${synapseAnalyticsSQLAdmin} -P ${synapseAnalyticsSQLAdminPassword} -S
if [ "$privateEndpointsEnabled" == "true" ]; then
echo "Restoring firewall rules..."
az storage account update --name ${datalakeName} --resource-group ${resourceGroup} --default-action Deny --only-show-errors -o none
az resource update --name pocsynapseanalytics-7no --resource-group PoC-Synapse-Analytics-V2 --resource-type Microsoft.Synapse/workspaces --set Properties.publicNetworkAccess="Disabled" --only-show-errors -o none
az synapse workspace firewall-rule delete --name AllowAllWindowsAzureIps --resource-group ${resourceGroup} --workspace-name ${synapseAnalyticsWorkspaceName} --only-show-errors -o none --yes
fi

Expand Down

0 comments on commit 695fe6a

Please sign in to comment.