Azure / Azure/azure-quickstart-templates
No route registered for '/MSDeploy' when using Linux azure web app
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
[serverFarms with Kind=Linux](https://github.com/Azure/azure-quickstart-templates/blob/ae28deceb911332d20a04a3424d3094352ed7ad9/application-workloads/umbraco/umbraco-webapp-simple/azuredeploy.json#L204)
### Issue Details
From above I got the infomations: Linux serverFarm can have a MsDeploy website extension. but when I actually run in my side,
throw out the error **No route registered for '/MSDeploy'**.
### what I just needed:
Linux azure web app + simple zip file deploy in ARM template. as someone said, MsDeploy for windows azure web app only ? and how to achieve my goal ?
### what I have
**webZipUri** is a simple 'hello world' python flask app in azure storage account with public access.
#### my server farm bicep
```
param appServicePlanName string
param location string
var appServiceSkuName = 'B1'
resource appServicePlan 'Microsoft.Web/serverfarms@2022-03-01' = {
name: appServicePlanName
location: location
sku: {
name: appServiceSkuName
capacity: 1
}
kind: 'linux'
properties: {
reserved: true
}
}
output appServicePlanId string = appServicePlan.id
```
#### my site and extension bicep
```
param appServiceName string
param appServicePlanId string
param location string
param webZipUri string
resource appService 'Microsoft.Web/sites@2022-09-01' = {
name: appServiceName
location: location
properties: {
serverFarmId: appServicePlanId
siteConfig: {
appSettings: [
{
name: 'SCM_DO_BUILD_DURING_DEPLOYMENT'
value: 'true'
}
{
name: 'WEBSITE_RUN_FROM_PACKAGE'
value: '1'
}
]
linuxFxVersion: 'PYTHON|3.9'
}
}
}
resource appServiceMsDeploy 'Microsoft.Web/sites/extensions@2022-03-01' = {
name: 'MSDeploy'
parent: appService
properties: {
packageUri: webZipUri
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the referenced azuredeploy.json server farm definition at line 204, then inspect the Bicep Microsoft.Web/sites and Microsoft.Web/sites/extensions resources shown in the report. Reproduce the deployment with a Linux plan and the MSDeploy extension. Done means the template’s Linux zip deployment succeeds without the '/MSDeploy' route error, or the limitation and supported configuration are documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100