Automation Account should disable public network access

High Azure General automation-no-public-access

Applies to

  • Microsoft.Automation/automationAccounts

What CGPulse checks

A resource passes this rule when publicNetworkAccess must equal false. Anything else is reported as a finding with the evaluated property value attached as evidence.

How to fix it

Disable public network access to prevent unauthorized internet exposure. In Azure Portal: Automation Account > Networking > set Public network access to Disabled. See: https://learn.microsoft.com/en-us/azure/automation/how-to/private-link-security

Careful: Disabling public access blocks all non-private-endpoint traffic including hybrid worker communication. Ensure private endpoints are configured first

CLI

az automation account update --ids "{id}" --set properties.publicNetworkAccess=false

Terraform

resource "azurerm_automation_account" "{name}" {
  name                          = "{name}"
  resource_group_name           = "{rg}"
  location                      = var.location
  sku_name                      = "Basic"
  public_network_access_enabled = false
}

Compliance frameworks

Is your environment compliant with this rule?

CGPulse checks it — and 621 others — against your Azure and AWS accounts with read-only access.

Run a free scan

Related Azure rules

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.