Hii Does any body have sample code snippet to add...
# getting-started
w
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
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
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
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
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
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
Doesn’t
ResourceId
work?
w
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
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.