Deploy a static HTML site to an Azure AppService using Azure Pipelines

Sivilla, John 5 Reputation points
2024-04-18T15:18:48.2466667+00:00

Hi,

I am trying a accomplish a very simple task : Deploy a static HTML web site, which I have in Azure Repos to an Azure App Service.

I am new to pipelines, but I cannot find any documentation on the web to do this, and trying to figure out how to do this through the DevOps interface seems to be very counter intuitive.

Can you point me to a resource that provides simple step-by-step instructions on how to do this simple task?

Thanks you

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2024-04-18T15:43:53.98+00:00

    Create a Static Web App directly from the Azure portal and set the Deployment details option to Azure DevOps. This will create a pipeline automatically for you


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2024-05-14T15:38:13.5066667+00:00

    @Sivilla, John The error message "Invalid authentication scheme for Azure Resource Manager service connection: PublishProfile" usually occurs when you are trying to use a Publish Profile to authenticate with Azure Resource Manager in Azure DevOps, but the authentication scheme is not supported.

    To resolve this issue, you can try the following steps:

    1. Go to your Azure DevOps project and select the "Service connections" option from the "Project settings" menu.
    2. Select the Azure Resource Manager service connection that you are using for your deployment.
    3. Check the authentication scheme that is being used. If it is set to "Publish Profile", change it to "Service principal (automatic)".
    4. Save the changes and try your deployment again.

    If the issue persists, you can try creating a new Azure Resource Manager service connection with the correct authentication scheme. To do this, follow these steps:

    1. Go to your Azure DevOps project and select the "Service connections" option from the "Project settings" menu.
    2. Select the "New service connection" button and choose "Azure Resource Manager".
    3. Follow the prompts to create a new service connection with the correct authentication scheme.
    4. Use the new service connection for your deployment.

  3. Sivilla, John 5 Reputation points
    2024-05-22T19:09:51.1133333+00:00

    Hi and thank you for your support.

    I cannot change the authentication scheme.. there is no option for this in the Service Connections Page.

    I did however, try to create another service connection but ran into this error:

    Failed to create an app in Microsoft Entra. Error: Insufficient privileges to complete the operation in Microsoft Graph Ensure that the user has permissions to create a Microsoft Entra Application.

    You can create service connections manually Learn more

    I have no idea what this error means. I have access to both the DevOps and AppService so don't know why I get this error.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.