How do you figure out the native equivalent of a c...
# azure
b
How do you figure out the native equivalent of a classic resource?
Like for a Function, is this the right equivalent?
m
I think the WebAppFunction is the function itself if you want to declare it in your infrastructure code which is probably not what you want. Personnaly I provision the Function App with IaC and deploy the functions themsleves with the appliation deployment. A Function App is jsut a WebApp of a special kind. You have an example here : https://github.com/TechWatching/AzureFunctionSQLBindings/blob/main/eng/infra/Components/Function.cs
An interesting way to find the good resource is to use https://www.pulumi.com/ai/ Because Azure native is a native provider, what you can also do is to check Micrcosoft official documentation for ARM / Bicep. For instance, the code for Fucntion App between Bicep and Pulumi is simiar as you can see here => https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-bicep?tabs=CLI So each time you don't know exactly which resource type is the right you can check the Micrcosoft ARM API reference documentation which list all the resources in ARM / Bicep / Terraform (AzAPI provider not AzureRM) here