pulumi / pulumi-azure-native

Azure Native Provider
Apache License 2.0
126 stars 33 forks source link

Microsoft.Web/staticSites/config seems missing from Azure Native registry #2326

Closed trylvis closed 7 months ago

trylvis commented 1 year ago

Hello!

Issue details

Under azure-native.web, for staticSite, there seem to be no resource for using "Microsoft.Web/staticSites/config", so one can not apply appSettings to the staticSite using Pulumi, as you can with with Bicep/Arm/Terraform:

https://learn.microsoft.com/en-us/azure/templates/microsoft.web/2022-03-01/staticsites/config-appsettings?pivots=deployment-language-bicep

I guess what is missing is something like "azure-native.web.staticSiteConfig" or "azure-native.web.staticSiteConfigAppSettings"

In my example I want to set IP restrictions by default on the Azure Static Web Apps we deploy, which seems not to be possible using Pulumi and the pulumi-azure-native provider.

Affected area/feature

thomas11 commented 1 year ago

Hi @trylvis, thank you for raising this. The Azure API is a little confusing in this area.

I wonder if WebAppApplicationSettings might be what you're looking for. In the Azure API spec, it has the path Microsoft.Web/staticSites/{name}/config/appsettings and the properties match. There's also an example CreateOrUpdateStaticSiteAppSettings.json.

Please let me know if I misunderstood.

furier commented 1 year ago

as you can with with Bicep/Arm/Terraform

I could not find any way to do so in any of the listed providers... I created an issue here regarding this: https://github.com/Azure/azure-rest-api-specs/issues/24152

thomas11 commented 7 months ago

After a second look, I still believe that WebAppApplicationSettings is the resource to use for app settings. Since I haven't received a response to my previous message, I'll go ahead and close this issue, but feel free to re-open if I misunderstood.