Hello <#CRVK66N5U|> We are using @pulumi/azure-na...
# azure
m
Hello #CRVK66N5U We are using @pulumi/azure-native.network.ApplicationGateway and difining httpListeners inside the ApplicationGateway, since frontendIPConfiguration adds circular dependcy on ApplicationGateway , we get below error which says we are trying to use the resouce which is not created or availabl yet, and we are not allowed to define httpListeners separately and bind later too. Looking for any help regarding this. Below is the error (Note have replaced the actual subscription_id with {subscription_id} in the below error to avoid sharing {subscription_id} ) azure-nativenetworkApplicationGateway (applicationgatewaypulumi): error: Code="InvalidResourceReference" Message="Resource /subscriptions/{subscription_id}/resourceGroups/N00100_WESTEUROPE/providers/Microsoft.Network/applicationGateways/APPLICATIONGATEWAYPULUMI referenced by resource /subscriptions/{subscription_id}/resourceGroups/N00100_westeurope/providers/Microsoft.Network/applicationGateways/applicationgatewaypulumif04def58 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." Details= [ { "code": "NotFound", "message": "Resource /subscriptions/{subscription_id}/resourceGroups/N00100_WESTEUROPE/providers/Microsoft.Network/applicationGateways/APPLICATIONGATEWAYPULUMI not found." } ] Below is the code to define httpListeners inside ApplicationGateway httpListeners: [{ name: listenerName, frontendIPConfiguration: { id: pulumi.interpolate`/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${resourceGroup.name}/providers/Microsoft.Network/applicationGateways/${APPLICATION_GATEWAY_NAME}/frontendIPConfigurations/${frontendIpConfigurationName}`, }, frontendPort: { id: pulumi.interpolate`/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${resourceGroup.name}/providers/Microsoft.Network/applicationGateways/${APPLICATION_GATEWAY_NAME}/frontendPorts/${frontendPortName}`, }, protocol: "Http", }]