Skip to content
Discussion options

You must be logged in to vote

To add a nic to the backend address pool you need to modify the Microsoft.Network/networkInterfaces resource and not the actual load balancer. Here's an example snippet on what this could look like.

resource internalNic 'Microsoft.Network/networkInterfaces@2021-05-01' = {
  name: internalNicName
  location: location
  properties: {
    ipConfigurations: [
      {
        name: 'ipconfig1'
        properties: {
          privateIPAddress: internalNicIP
          privateIPAllocationMethod: 'Static'
          subnet: {
            id: externalSubnetId
          }
          loadBalancerBackendAddressPools: [
            {
              id: externalLBBackendPool
            }
          ]
     …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petitess
Comment options

Answer selected by petitess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8074 on August 23, 2022 10:42.