https://pulumi.com logo
#general
Title
# general
c

cuddly-yacht-60692

03/25/2024, 8:52 PM
There's some missing code in the docs here. The second code block is identical to the first and doesn't show how to delegate the subnet. (The same is true across languages.) Would someone mind helping, please? Thanks!
Ah. I worked it out!
Copy code
subnet_app = network.Subnet('subnetApp',
                            resource_group_name=resource_group.name,
                            virtual_network_name=virtual_network.name,
                            address_prefix='10.0.1.0/24',  # Second subnet, for the web app
                            delegations=[network.DelegationArgs(
                                name='delegation', service_name='Microsoft.Web/serverFarms')]
It'd be great if someone could update the docs, please? Thanks!