Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code does not often deploy to the web app #23

Open
jometzg opened this issue May 23, 2023 · 0 comments
Open

Code does not often deploy to the web app #23

jometzg opened this issue May 23, 2023 · 0 comments

Comments

@jometzg
Copy link

jometzg commented May 23, 2023

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

the deployment PowerShell fails when deploying the code to the web app with authentication issues

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful

It seems that basic authentication needs to be enabled on the web app when deployed into different environments (appears to be more reliable on Visual Studio subscriprions) Added this section to the ARM template and it deploys more reliably

{
        "type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
        "apiVersion": "2022-03-01",
        "name": "[concat(parameters('webAppName'), '/scm')]",
        "location": "[resourceGroup().location]",
        "dependsOn": [
            "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
        ],
        "properties": {
            "allow": "true"
        }
    },
    {
        "type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
        "apiVersion": "2022-03-01",
        "name": "[concat(parameters('webAppName'), '/ftp')]",
        "location": "[resourceGroup().location]",
        "dependsOn": [
            "[resourceId('Microsoft.Web/sites', parameters('webAppName'))]"
        ],
        "properties": {
            "allow": "true"
        }
    },

Thanks! We'll be in touch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant