From bf53cf1be03388fe164283c5cff05e8b209bfc79 Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Thu, 21 Nov 2024 11:24:34 -0800 Subject: [PATCH] Copied portal quickstart in having account use MSI and use public network access --- quickstart/101-azure-automation/main.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickstart/101-azure-automation/main.tf b/quickstart/101-azure-automation/main.tf index 978a3f2e0..f090db161 100644 --- a/quickstart/101-azure-automation/main.tf +++ b/quickstart/101-azure-automation/main.tf @@ -20,4 +20,10 @@ resource "azurerm_automation_account" "example" { resource_group_name = azurerm_resource_group.rg.name location = azurerm_resource_group.rg.location sku_name = "Basic" + identity { + type = "UserAssigned" + identity_ids = [azurerm_user_assigned_identity.example.id] + } + + public_network_access_enabled = true } \ No newline at end of file