Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.81k forks source link

functionapp: slots have rouge functions associated #4690

Open ghost opened 6 years ago

ghost commented 6 years ago

Cmdlet(s)

Remove-AzureRMWebAppSlot New-AzureRmWebAppSlot

PowerShell Version

5.1.14393.1715

Module Version

3.5.0

OS Version

10.0.14393.1715

Description

After first removing a Slot and then recreating it, one would expect that there are no functions. However, old functions still exist under the freshly minted Slot.

Script/Steps for Reproduction

Run the following Cmdlets to reproduce the issue.

Remove-AzureRMWebAppSlot -ResourceGroupName $resourceGroupName -Name $webAppName -Slot $slotName -Force -ErrorAction SilentlyContinue
New-AzureRmWebAppSlot -ResourceGroupName $resourceGroupName -Name $webAppName -Slot $slotName
cormacpayne commented 6 years ago

@aspaan Hey Aspaan, would you mind taking a look at this issue?

Francisco-Gamino commented 4 years ago

Hello @panchagnula -- I am reassigning this issue back to you as this code path in on web apps.

cc: @anirudhgarg @eamonoreilly @anthonychu

panchagnula commented 4 years ago

@Francisco-Gamino the issue was assigned to you change the implementation to work for slots, the current implementation will not work for slots, that's the reason functionapp has its own creates without sharing code with webapps. Webapps code will not support functions, please consider as a new task to create. Thanks!

Francisco-Gamino commented 3 years ago

Moving this to Backlog. We will consider this when adding support for slots in Az.Functions. cc: @stefanushinardi