'"Operation Time Out" error when create Azure App Service Environment V3 with Pulumi

I wanna create some resources in Azure with Pulumi. One of these resources is App Service Environment V3. Normally, when I create this resource from the Azure portal, takes time about 5-6 hours. In my code, I change the default CustomTimeouts to 10h. But till I received this error.

Just for information, when I run again Pulumi up I received the error that this resource exists.

enter image description here

My code is:

app_service_environment = web.AppServiceEnvironment('app_service_environment',
                                                    args=web.AppServiceEnvironmentArgs(
                                                        resource_group_name=resource_group_name,
                                                        virtual_network=web.VirtualNetworkProfileArgs(
                                                            id=mysubnet,
                                                            subnet='subnet_ase_ip',
                                                        ),
                                                        kind='ASEV3',
                                                        location=location_name,
                                                        name=get_resource_name(resource_name='ase'),
                                                        # dns_suffix=private_dns_zone_name,
                                                        internal_load_balancing_mode='0',
                                                        tags=tags_group,
                                                    ),
                                                    opts=ResourceOptions(
                                                        custom_timeouts=CustomTimeouts(create='10h')),
                                                    )


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source