Azure / Azure/azure-powershell
Why is 'Publish-AzWebApp' recorded as 'OneDeploy' on Dedicated (App Service) plan?
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
According to [Cmdlet reference](https://learn.microsoft.com/en-us/powershell/module/az.websites/publish-azwebapp?view=azps-14.1.0), 'Publish-AzWebApp' cmdlet deploys an app using zipdeploy.
And, according to [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies?tabs=linux#one-deploy), One deploy is the only deployment technology supported for apps on a Flex Consumption plan.
I use Dedicated (App Service) plan.
However, when I deploy an app using Publish-AzWebApp, Deployments REST API () shows `OneDeploy` at 'deployer'.
In the past, when I deployed the same app using Publish-AzWebApp, Deployments REST API showed `Push-Deployer` at 'deployer'.
I'm sure of this because I've got the screen capture.
Why is zipdeploy using 'Publish-AzWebApp' recorded as 'OneDeploy' on Dedicated (App Service) plan?
### Script or Debug output
```PowerShell
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.1.1 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script 3.4.1 Az.Websites {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBa…
```
### Error output
```PowerShell
```
Contributor guide
Research direction
Start with the Publish-AzWebApp cmdlet in the Az.Websites module and compare its deployment request with the Deployments REST API's deployer value for a Dedicated plan. Reproduce the behavior with the listed PowerShell and Az.Websites versions, then establish whether OneDeploy is expected and document the explanation or required correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100