Can someone help me with <https://www.pulumi.com/d...
# azure
l
Can someone help me with https://www.pulumi.com/docs/reference/pkg/dotnet/Pulumi.Azure/Pulumi.Azure.ApiManagement.Backend.html
Copy code
apimanagement.BackendClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ValidationError" Message="One or more fields contain incorrect values:" Details=[{"code":"ValidationError","message":"Value should represent absolute http URL","target":"resourceId"}]
I create the backend with
Copy code
var backend = new Backend($"{namePlaceHolder}", new BackendArgs
        {
            ApiManagementName = apiManagementService.Name,
            ResourceGroupName = resourceGroup,
            Protocol = "http",
            ResourceId = functionApp.Id,
            
            Description = "functionApp Backend",
            Title = "functionAppBackend",
            Url = "<https://backendname2644/>"
        });
r
@limited-carpenter-34991 Appending "https://management.azure.com" solved the issue, but I still didn't manage to associate it with an api. Did you manage to do it?
l
I can create a backend but the type is not an azure resource reference and it is a little bit confusing that inside an azure resource backend type the service url is required too, because inside the azure portal in api management the service url is disabled when you choose the azure resource type for a backend. @rhythmic-vegetable-87369 any ideas ?
r
Same issue here. Unless it is a http end point, I'm unable to reach it through the backend as well.