Skip to content

loadBalancerBackendAddresses : Could not find member 'location' on object of type 'LoadBalancerBackendAddressPoolProperties' #14284

@MatthewBettonMaif

Description

@MatthewBettonMaif

When we try to create a new 'LoadBalancerBackendAddressPool' we can not specify 'location' property while this property exists in specifications : loadBalancer.json

Expected behavior

Load balancer Backend Address Pool well created.

Current behavior

No 'LoadBalancerBackendAddressPool' created

Error message :

{
  "error": {
    "code": "InvalidRequestFormat",
    "message": "Cannot parse the request.",
    "details": [
      {
        "code": "InvalidJson",
        "message": "Could not find member 'location' on object of type 'LoadBalancerBackendAddressPoolProperties'. Path 'properties.location', line 3, position 15."
      }
    ]
  }
}

Steps to reproduce

curl -i -X PUT \
   -H 'Accept: application/json' \
   -H 'Content-Type: application/json;charset=UTF-8' \
   -H 'Authorization: Bearer XXX' \
   --data-binary @data.json \
  'https://management.azure.com/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/loadBalancers/lb-vm-tests/backendAddressPools/lb-backend-vm-tests-362de5f?api-version=2020-11-01'

Status 200 with following data.json content :

{
  "properties": {
    "loadBalancerBackendAddresses": [
      {
        "name": "rg-test_nic-vm-tests-362de5fpublicIp",
        "properties": {
          "networkInterfaceIPConfiguration": {
            "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/networkInterfaces/nic-vm-tests-362de5f/ipConfigurations/publicIp"
          }
        }
      }
    ],
    "backendIPConfigurations": [
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/networkInterfaces/nic-vm-tests-362de5f/ipConfigurations/publicIp"
      }
    ],
    "loadBalancingRules": [
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/loadBalancers/lb-vm-tests/loadBalancingRules/lb-rule-1"
      },
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/loadBalancers/lb-vm-tests/loadBalancingRules/lb-rule-0"
      }
    ]
  }
}

Status 400 with following data-with-location.json content :

{
  "properties": {
    "location": "francecentral",
    "loadBalancerBackendAddresses": [
      {
        "name": "rg-test_nic-vm-tests-362de5fpublicIp",
        "properties": {
          "networkInterfaceIPConfiguration": {
            "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/networkInterfaces/nic-vm-tests-362de5f/ipConfigurations/publicIp"
          }
        }
      }
    ],
    "backendIPConfigurations": [
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/networkInterfaces/nic-vm-tests-362de5f/ipConfigurations/publicIp"
      }
    ],
    "loadBalancingRules": [
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/loadBalancers/lb-vm-tests/loadBalancingRules/lb-rule-1"
      },
      {
        "id": "/subscriptions/00000-00000/resourceGroups/rg-test/providers/Microsoft.Network/loadBalancers/lb-vm-tests/loadBalancingRules/lb-rule-0"
      }
    ]
  }
}

Error 400

{
  "error": {
    "code": "InvalidRequestFormat",
    "message": "Cannot parse the request.",
    "details": [
      {
        "code": "InvalidJson",
        "message": "Could not find member 'location' on object of type 'LoadBalancerBackendAddressPoolProperties'. Path 'properties.location', line 3, position 15."
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Network - Load BalancerService AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions