https://pulumi.com logo
Title
w

witty-honey-13693

11/20/2021, 2:09 PM
Hii Does any body have sample code snippet to add a Backend in the APIM for Azure Resource? This link only explains about Service Fabric and Custom URL but not the Azure Resource https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/backend/ Thanks in advance.
s

steep-sunset-89396

11/21/2021, 11:01 AM
Hey @witty-honey-13693 have you had a look at our examples repo? I found this https://github.com/pulumi/examples/tree/master/classic-azure-ts-api-management
w

witty-honey-13693

11/21/2021, 10:36 PM
Hi @steep-sunset-89396 Good Morning The sample code in examples solution only creates APIM, API, APIOperation, Policy, Product, user, Subscription But iam looking for Named Value & Backend which creates an automatic authentication between APIM and Function. I have gone through the examples solution, but i cant find one. This is the library AzureNative.ApiManagement.Backend
s

steep-sunset-89396

11/21/2021, 10:52 PM
How about the component own documentation? There's an example at the top. https://www.pulumi.com/registry/packages/azure-native/api-docs/apimanagement/backend/
w

witty-honey-13693

11/21/2021, 11:30 PM
Hi @steep-sunset-89396 Thats the one i referred in the chat. We have three ways to create the backend. As far as i understood Only two methods were mentioned in the pulumi documentation. Proxy & Service Fabric Iam looking for Azure Resource.
s

steep-sunset-89396

11/21/2021, 11:42 PM
One of the possible reason the Azure resource is missing is because the Azure Cloud API doesn't describe this method yet. And as the Azure Native provider is generated through the Azure Cloud API, then it would explain why this method is missing.
Maybe @tall-librarian-49374 might be able to shine some light here ?
t

tall-librarian-49374

11/22/2021, 8:52 AM
Doesn’t
ResourceId
work?
w

witty-honey-13693

11/22/2021, 10:24 AM
Hi @tall-librarian-49374 Iam getting some 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"}]
t

tall-librarian-49374

11/22/2021, 12:10 PM
One way to troubleshoot issues like this is to either find an ARM template examples that does what you want, or make a change in the portal, then export the ARM template and see the property values.