I'm trying to figure out how to connect pulumi_azure.compute.LinuxVirtualMachineScaleSet
instance to a backend pool of pulumi_azure.network.ApplicationGateway
using Python.
Looking at documentation of pulumi_azure.compute.LinuxVirtualMachineScaleSet
( https://www.pulumi.com/docs/reference/pkg/azure/compute/linuxvirtualmachinescaleset )
it seems that the chain of necessary links would be:
- step 1 - create
LinuxVirtualMachineScaleSetNetworkInterfaceIpConfiguration
instance with appropriateapplicationGatewayBackendAddressPoolIds
set - step 2 - create
LinuxVirtualMachineScaleSetNetworkInterface
instance with network interface ip configuration from step 1 - step 3 - create
LinuxVirtualMachineScaleSet
with network_interface from step 2
However while this is what documentation says
LinuxVirtualMachineScaleSetNetworkInterfaceIpConfiguration
and
LinuxVirtualMachineScaleSetNetworkInterface
are not defined in pulumi_azure.compute
(version 3.17.0
, newest as of this writing).
Looking at code samples in both documentation and pulumi_azure.compute's source code, the only way to set network_interfaces argument to LinuxVirtualMachineScaleSet
is to provide it with a list of dictionaries, e.g.
network_interfaces=[{
"name": "example",
"primary": True,
"ip_configurations": [{
"name": "internal",
"primary": True,
"subnet_id": ....
}],
"network_security_group_id": ...
}],
So what would be the correct way to associate scaling set with application gateway's backend pool?