Skip to content

[BUG]Network, delete option for PublicIpAddress doesn't work #25475

Open
@XiaofeiCao

Description

@XiaofeiCao

Hi team,

We specified the delete option for PublicIpAddress. Later we associated the IP address to a Network Interface and attached it to the VM. When we delete the VM, PublicIpAddress doesn't get deleted.

From the response of the PublicIpAddress creation, seems delete option is not set:
Request(there's "deleteOption": "Delete"):

{
  "location" : "eastus",
  "sku" : {
    "name" : "Standard"
  },
  "properties" : {
    "publicIPAllocationMethod" : "Static",
    "publicIPAddressVersion" : "IPv4",
    "idleTimeoutInMinutes" : 10,
    "deleteOption" : "Delete"
  }
}

Response(there's no delete option property):

{
  "name" : "pip02749cd0",
  "id" : "/subscriptions/REDACTED/resourceGroups/javacsmrg76219/providers/Microsoft.Network/publicIPAddresses/pip02749cd0",
  "etag" : "W/\"11e20b95-4418-4996-81ec-92aa112bae2f\"",
  "location" : "eastus",
  "properties" : {
    "provisioningState" : "Updating",
    "resourceGuid" : "65ab4357-e2f7-48da-b237-7886fcb91d64",
    "publicIPAddressVersion" : "IPv4",
    "publicIPAllocationMethod" : "Static",
    "idleTimeoutInMinutes" : 10,
    "ipTags" : [ ],
    "ddosSettings" : {
      "protectionMode" : "VirtualNetworkInherited"
    }
  },
  "type" : "Microsoft.Network/publicIPAddresses",
  "sku" : {
    "name" : "Standard",
    "tier" : "Regional"
  }
}

cc @weidongxu-microsoft

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compute - VMNetworkService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions