Closed akkirao closed 5 years ago
manifest class azuremanager::eastus::loadbalancer::puppetloadbalancer inherits azuremanager {
azure_load_balancer {'puppetlb':
ensure => present,
location => 'eastus',
resource_group_name => 'PUPPET-RG',
properties => {
backendAddressPools => [{
name => 'test',
properties => {
backendIPConfigurations =>[ {
id => "/subscriptions/xxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/networkInterfaces/puppet-nic/ipconfigurations/puppet-nic-ipconfig",
properties => {
subnet => {
properties => {
interfaceEndpoints => [{
properties => {
networkInterfaces => [{
id => "/subscriptions/xxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/networkInterfaces/puppet-nic",
properties => {
virtualMachine => {
id => "/subscriptions/xxx/resourceGroups/PUPPET-RG/providers/Microsoft.Compute/virtualMachines/testvm",
},
}
}],
}
}],
}
},
},
}],
},
}],
frontendIPConfigurations => [ {
name => 'LoadBalancerFrontEnd',
properties => {
publicIPAddress => {
name => 'testip',
id => "/subscriptions/xxxxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/publicIPAddresses/testip",
properties => {
publicIPAllocationMethod => 'Dynamic',
}
}
}
}],
probes => [{
name => 'testlbprobe',
properties => {
intervalInSeconds => '5',
port => '80',
protocol => 'TCP',
}
}],
loadBalancingRules => [ {
name => 'test-lb-rule',
properties => {
backendAddressPool => {
id => "/subscriptions/xxxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/loadBalancers/puppetlb/backendAddressPools/test",
},
backendPort => '999',
frontendIPConfiguration => {
id => "/subscriptions/xxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/loadBalancers/puppetlb/frontendIPConfigurations/LoadBalancerFrontEnd",
},
frontendPort => '999',
protocol => 'TCP',
probe => {
id => "/subscriptions/xxx/resourceGroups/PUPPET-RG/providers/Microsoft.Network/loadBalancers/puppetlb/probes/testlbprobe",
},
}
}],
}
}
}
What you expected to happen?
need to attach nic or vms to backend pool
What happened?
Its creating just name of the backendpool but not adding nic or vms
How to reproduce it?
Anything else we need to know?
Versions:
Logs: