https://pulumi.com logo
#general
Title
# general
d

delightful-dawn-43855

11/21/2019, 10:33 PM
I've been trying pulumi (C#) to deploy to Azure, really easy to get going and it's been a pleasure so far. Microsofts recently released Azure functions premium plan (4:th of november), to my surprise I was able to create the resource in pulumi right away(!), but i'm missing one important property in the PlanArgs, MaximumElasticWorkerCount, i'm guessing it should go in the properties section? This is really "icing on the cake" considering that it's been newly released and all, but would appreciate an indication on when it can be available.
Copy code
Kind = "Elastic",
				Sku = new PlanSkuArgs
				{
					Tier = "ElasticPremium",
					Size = "EP1",
					Capacity = 1
				}
				//properties for "maximumElasticWorkerCount": 2 doesn't exist yet
t

tall-carpet-41250

11/21/2019, 11:28 PM
This is derived from the terraform template.
Terraform provider for azurerm has not updated FunctionApp if that’s what you’re using vs the AppService Plan.
t

tall-librarian-49374

11/22/2019, 6:23 AM
Hey @delightful-dawn-43855 great to hear about your positive experience. I think the property is there: https://github.com/pulumi/pulumi-azure/blob/20427a392004c0a1fff5b2ebc8c314bffe85a686/sdk/dotnet/Appservice/Plan.cs#L160
Not sure why you had troubles using it?
@tall-carpet-41250 this property in on the plan, not on the function app itself
t

tall-carpet-41250

11/22/2019, 6:49 AM
@tall-librarian-49374 I believe the Appservice plan is only for the dedicated plan and what @delightful-dawn-43855 is referencing is the Functionapp Premium Plan. Unless I’m mistaken. 🙂
t

tall-librarian-49374

11/22/2019, 6:53 AM
App Service Plan is many things depending on its properties
App Service, or Consumption, or Premium
I don’t see that shape in the terraform resource.
sku { tier = “ElasticPremium” size = “EP1" }
??
Had to dig it out of the test cases.
@tall-librarian-49374 🙇 This has been informative.
t

tall-librarian-49374

11/22/2019, 7:06 AM
yes, that's the one
I thought we had an example but I can't find it
I think I'll add it
👍 1
d

delightful-dawn-43855

11/22/2019, 8:29 AM
thanks for all the feedback, I see it now. I generated ARM-templates from the azure portal and had those side by side, realized now that I was looking for it inside the "properties" section, where it were in the ARM-template... thanks guys!
t

tall-librarian-49374

11/22/2019, 8:44 AM
ARM doesn't match TF/Pulumi one-on-one
d

delightful-dawn-43855

11/22/2019, 9:53 AM
Yep, I know that now! 🙂 Thanks for all the help, keep up the good work! Should give some cred till @broad-dog-22463 as well, he inspired me (and some co-workers) to start with pulumi after he did a short talk at Activesolution:s office two months ago, that was really useful!
❤️ 2