Azure / azure-libraries-for-net

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

[BUG] Create azure function deployment slot is wrong. #1130

Open qcnguyen opened 4 years ago

qcnguyen commented 4 years ago

Describe the bug consider the fluent code : var parent = await azure.AppServices.FunctionApps.GetByResourceGroupAsync("ResGrp", "MyFunction"); var preliveSlot = await parent.DeploymentSlots.Define("prelive").WithConfigurationFromParent().CreateAsync();

the above code will generate a slot with the exact same WEBSITE_CONTENTSHARE value, and the newly created "prelive" slot also has the existing function from production slot.

Expected behavior we expect a new clean slot, no existing function, with different WEBSITE_CONTENTSHARE value. Just like what we did with Azure Portal

Thanks

weidongxu-microsoft commented 3 years ago

This SDK is in maintenance mode. Next generation of .NET SDK will be available here https://azure.github.io/azure-sdk/releases/latest/mgmt/dotnet.html