Thread
#azure
    j

    jolly-baker-26598

    2 months ago
    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
    {
        "$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

    2 months ago
    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

    2 months ago
    probably but I was just trying to take advantage of a tool Pulumi suggested for a resource that already exists
    c

    clean-truck-93285

    1 month ago
    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.