Public IP should use Standard SKU

Medium Azure General publicip-public-standard-sku

Applies to

  • Microsoft.Network/publicIPAddresses

What CGPulse checks

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

How to fix it

Upgrade to Standard SKU for zone redundancy and better security defaults (may require recreation). In Azure Portal: create new Standard SKU Public IP and migrate. See: https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-upgrade-portal

CLI

az network public-ip show --ids "{id}" --query "sku.name" -o tsv

Bicep

param location string = resourceGroup().location

resource newPip 'Microsoft.Network/publicIPAddresses@2023-11-01' = {{
  name: '{name}-standard'
  location: location
  sku: {{ name: 'Standard', tier: 'Regional' }}
  properties: {{
    publicIPAllocationMethod: 'Static'
  }}
}}
// TODO: Associate the new PIP with the resource that used the old Basic PIP, then delete the old one

Terraform

# Public IP SKU cannot be changed in-place; create new Standard SKU
resource "azurerm_public_ip" "{name}" {
  name                = "{name}"
  resource_group_name = "{rg}"
  location            = var.location
  allocation_method   = "Static"
  sku                 = "Standard"
}

Compliance frameworks

Vendor documentation

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.