Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

C# Functions Not working after upload to Slot.

Open rawlukMike opened this issue 9 years ago • 3 comments

Steps: Create deployment slot from Powershell (or maybe other way too did not check yet). Deploy Working .Zip package through Powershell:

$apiUrl="https://$functionAppName-$functionDeploySlotName.scm.azurewebsites.net/api/zip/site/wwwroot"
Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -Method PUT -InFile $zipFilePath -ContentType "multipart/form-data"

Checked on Kudu All files are 100% fine. Javascript Function is picked up and working OK. C# is giving 404 Swap Slots ... deploy->production C# and Javascript Working 100% fine on Main (production) Swap Slots ... production->deploy C# is giving 404

Error popping up (don't know if connected):

We are not able to get the key swaggerdocumentationkey. Please check the runtime logs for any errors or try again later. Session Id: f32a3f07e9874f35967c2361a97f4add

and (which is NOT TRUE host.json is empty!!!):

Value for id has been explicitly set in host.json, which may cause unexpected behavior when using deployment slots.

rawlukMike avatar Aug 24 '17 13:08 rawlukMike

@panchagnula can you look at this one, at least the part about the incorrect host.json message?

davidebbo avatar Nov 06 '17 21:11 davidebbo

@mattchenderson , i am guessing you have assigned to me, for the UX part of the host.json fix, i believe we have a separate fix for the host.json message, that was being worked by the re-work of the slots UI. Adding @btardif & @ehamai to help with this.

panchagnula avatar Feb 15 '19 19:02 panchagnula

@andimarc can you take a look?

btardif avatar Feb 15 '19 20:02 btardif