melodic-rain-98270
03/16/2023, 7:23 AMazure-native:web/v20181101:WebAppSlot (slotResource):
error: autorest/azure: Service returned an error. Status=<nil> <nil>
which is not helpful at all. The pulumi github issues with similar errors say to search the Azure logs for that resource, but the problem is that the resource does not exist on Azure since the creation failed.
The provisioning script for the WebAppSlot looks like this (TypeScript):
const slotResource = new web.v20181101.WebAppSlot(
"slotResource",
{
name: siteResource.name,
resourceGroupName: resourceGroupVar.name,
location: locationParam,
slot: pulumi.interpolate`${siteResource.name}-deployment`,
serverFarmId: appServicePlan?.name ?? serverFarmIdParam,
},
{
dependsOn: dependencies,
}
);
resourceGroupVar is used in the WebApp, so that works.
siteResource is the WebApp itself, and the resource exist. It is also added to the dependencies list (which WebAppSlot relies depends on).
locationParam is the same as for the WebApp.
slot is uncertain if it works or not. The intention is to dynamically create the slot naming based on the WebApp name.
serverFarmId is the same logic as for the WebApp.
Are there any "next steps" for troubleshooting this in a systematic or coherent way, that allows me to read the specific error message in more detail and work from there?melodic-tomato-39005
03/16/2023, 7:50 AMmelodic-rain-98270
03/16/2023, 8:31 AMmelodic-tomato-39005
03/16/2023, 8:33 AMnil
error message, either at https://github.com/pulumi/pulumi-azure-native/issues if you use the native Azure provider or at https://github.com/pulumi/pulumi-azure/issues if you use the classic one.melodic-rain-98270
03/16/2023, 8:57 AM