https://pulumi.com logo
Title
b

bright-quill-34162

09/30/2020, 8:40 PM
I think there's a parsing error with any string that contains "/" Here is my code:
var functionApp0 = new AzureNextGen.Web.Latest.WebAppFunction("AddDeploymentsByIoTHubName", new AzureNextGen.Web.Latest.WebAppFunctionArgs
        {
            FunctionName = "AddDeploymentsByIoTHubName",
            Name = $"c2e-{env}-funcapp-iep/AddDeploymentsByIoTHubName",
            ResourceGroupName = resourceGroup.Name,
        });
And here is the error, I've tried several different ways to escape that "/"... error: cannot check existence of resource /subscriptions/<subscription>/resourceGroups/c2e-dev-shared-resources/providers/Microsoft.Web/sites/c2e-dev-funcapp-iep*%2F*AddDeploymentsByIoTHubName/functions/AddDeploymentsByIoTHubName: autorest/azure: error response cannot be parsed: "" error: EOF: autorest/azure: error response cannot be parsed: "" error: EOF
t

tall-librarian-49374

09/30/2020, 8:56 PM
We should add a better validation message but this is not allowed
(name is the web app name in this case)
b

bright-quill-34162

09/30/2020, 9:01 PM
ok, so it will build the full path string later, i'll give that a shot, thanks!
t

tall-librarian-49374

09/30/2020, 9:04 PM
I have no idea what
WebAppFunction
does. Do you know?
I never had to use this resource -
WebApp
itself was always enough.
b

bright-quill-34162

09/30/2020, 9:05 PM
i was hoping it would add an actual function to the function app? In the end, this is not how we build out our function app anyway, but I'm just trying to learn how all these resources relate.
t

tall-librarian-49374

10/01/2020, 6:35 AM
I don’t think it does that. Functions are discovered from
function.json
files that you upload in the code archive.
(or corresponding .NET bindings)