Azure / azure-libraries-for-net

Azure libraries for .Net
MIT License
379 stars 192 forks source link

Storage account error while provisioning Azure Function #334

Open irwinwilliams opened 6 years ago

irwinwilliams commented 6 years ago

While trying to create a new Azure Function, on an existing storage account, I get this error

Error converting value "Standard_LRS" to type 'Microsoft.Azure.Management.Storage.Fluent.Models.SkuName'. Path 'sku.name', line 1, position 39.

I'm running this code,

var websiteApp =
                    azure.AppServices.FunctionApps.Define(newName)
                    .WithRegion("East US")
                    .WithExistingResourceGroup(resourceGroup)
                    .WithExistingStorageAccount(storageAccount)
                    .WithAppSetting("WEBSITE_USE_ZIP", functionUrlZip)
                    .WithAppSetting("TimerInterval", schedule)
irwinwilliams commented 6 years ago

This was actually working before. And then it stopped. What makes things weirder is that I have a console project, invoking the same code and it works. Web app (a function, actually) gets provisioned. If I run the code in a web site, it fails with the error above.

irwinwilliams commented 6 years ago

Nothing new on this? @jianghaolu