Last deployment - Could not retrieve deployments | What could be the problem?

Marjan 20 Reputation points
2025-01-22T08:33:57.1066667+00:00

It is my first time to set and deploy Blazor app on azure through CI/CD.

Deployment Center:

Settings:
I'm signed in, Repository name is there

Logs:

Status(Success(Active)) Message(OneDeploy)

However, on 'Overview' -> 'Deployment Center' I got error 'Could not retrieve deployments'.

User's image

CI file:
name: .NET Core

on: [push]

env:

AZURE_WEBAPP_NAME: APPLICATIONNAME # set this to your application's name

AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root

DOTNET_VERSION: '6.0' # set this to the dot net version to use

jobs:

build:

runs-on: ubuntu-latest

steps:

  # Checkout the repo

  - uses: actions/checkout@main

  # Login to Azure

  - uses: azure/login@v1

    with:

      creds: ${{ secrets.AZURE_CREDENTIALS }}

  # Setup .NET Core SDK

  - name: Setup .NET Core

    uses: actions/setup-dotnet@v3

    with:

      dotnet-version: ${{ env.DOTNET_VERSION }} 


  

  # Run dotnet build and publish

  - name: dotnet build and publish

    run: |

      dotnet restore

      dotnet build --configuration Release

      dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/'


      

  # Deploy to Azure Web Apps

  - name: 'Run Azure webapp deploy action using Azure Credentials'

    uses: azure/webapps-deploy@v3

    with: 

      app-name: ${{ env.AZURE_WEBAPP_NAME }}

      package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/'  # Make sure this matches the output of the publish step

      slot-name: production

  # Logout from Azure

  - name: Logout

    run: |

      az logout
Hosting:  
![Untitled](/api/attachments/6ba07229-cfb2-4f8c-ab84-33659100f9d9?platform=QnA)



Question 1: In the overview, there is a 'Default Domain' link. Why, when I click on the link, does it by default show the .NET Microsoft Azure welcome app? Question 2: In the '/wwwroot/' path, my entire project is present, including: ProjectName/ProjectName.sln. Isn't it supposed to only contain the compiled version, such as 'ProjectName.exe'? Question 3: The 'Web App:Name ' is different from the 'ProjectName' is that causing a problem? Thank you in advance, Maryan

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

1 answer

Sort by: Most helpful
  1. Suresh Chikkam 0 Reputation points Microsoft Vendor
    2025-01-29T06:56:15.48+00:00

    Hi Marjan, Greetings!

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Default Domain Showing Azure Welcome Page: This usually happens if the deployment didn't succeed, the app is not running correctly, or the published files are not in the right location. Try restarting the Web App and checking deployment logs in GitHub Actions.

    Entire Project in /wwwroot/: dotnet publish command is placing the full project instead of just the compiled output. check the workflow publishes to a separate directory (e.g., ${{ runner.temp }}/publish) and deploys only that folder.

    Different Web App Name vs. Project Name: The names don’t need to match. Just check the GitHub Actions workflow correctly references the Azure Web App name (AZURE_WEBAPP_NAME) as listed in the Azure portal.

    Pipeline status:

    User's image

    Deployment status:

    User's image

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

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.