https://pulumi.com logo
Title
l

limited-carpenter-34991

06/15/2020, 12:52 PM
Can someone help me with https://www.pulumi.com/docs/reference/pkg/dotnet/Pulumi.Azure/Pulumi.Azure.ApiManagement.Backend.html
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
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

rhythmic-vegetable-87369

06/18/2020, 7:28 AM
@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

limited-carpenter-34991

06/18/2020, 10:34 AM
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

rhythmic-vegetable-87369

06/21/2020, 3:33 AM
Same issue here. Unless it is a http end point, I'm unable to reach it through the backend as well.