https://pulumi.com logo
#azure
Title
# azure
j

jolly-baker-26598

07/28/2022, 9:39 PM
Hello, I tried to use the ARM conversion tool but it failed. it said my code was valid but it couldn't convert it. I generated the template from an existing resource in the portal so I would expect it to be be valid. Any ideas what's wrong? Here's the template
Copy code
{
    "$schema": "<https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#>",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "staticSites_Feedbapp_name": {
            "defaultValue": "Feedbapp",
            "type": "String"
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Web/staticSites",
            "apiVersion": "2022-03-01",
            "name": "[parameters('staticSites_Feedbapp_name')]",
            "location": "Central US",
            "tags": {},
            "sku": {
                "name": "Free",
                "tier": "Free"
            },
            "properties": {
                "repositoryUrl": <repo url>,
                "branch": "main",
                "stagingEnvironmentPolicy": "Enabled",
                "allowConfigFileUpdates": true,
                "provider": "GitHub",
                "enterpriseGradeCdnStatus": "Disabled"
            }
        }
    ]
}
g

gorgeous-accountant-60580

07/28/2022, 9:41 PM
Would it be an option to just reimplement this? Seems like a straight forward thing to create: https://www.pulumi.com/registry/packages/azure-native/api-docs/web/staticsite/
j

jolly-baker-26598

07/28/2022, 9:57 PM
probably but I was just trying to take advantage of a tool Pulumi suggested for a resource that already exists
c

clean-truck-93285

07/29/2022, 1:15 PM
Yeah I have never gotten the ARM conversion tool to work. I feel like it falls over on anything other than a resource group. I stopped trying long ago because it less headache to just make the template than troubleshoot the conversion.
6 Views