Login failed with Error: Using auth-type: SERVICE_PRINCIPAL. Not all values are present. Ensure 'client-id' and 'tenant-id' are supplied.. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
on: push: branches: - ASPServer env: DOTNET_CORE_VERSION: 7.0.x CONTAINER_APP_NAME: myapp.server.asplinuxapi-container-app CONTAINER_APP_ENVIRONMENT_NAME: managedEnv20250921173428 RESOURCE_GROUP: managedEnv20250921173428ResourceGroup CONTAINER_REGISTRY_NAME: registry20250921174445 CONTAINER_REGISTRY_LOGIN_SERVER: registry20250921174445.azurecr.io jobs: BuildAndDeployContainerApp: runs-on: ubuntu-latest steps: - name: Checkout source code uses: actions/checkout@v4 - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.DOTNET_CORE_VERSION }} - name: Azure login uses: azure/login@v1 with: creds: ${{ secrets.managedEnv20250921173428_SPN }} - name: Container App deploy uses: azure/container-apps-deploy-action@v1 with: appSourcePath: ${{ github.workspace }} acrName: ${{ env.CONTAINER_REGISTRY_NAME }} acrUsername: ${{ secrets.registry20250921174445_USERNAME_5028 }} acrPassword: ${{ secrets.registry20250921174445_PASSWORD_5028 }} imageToBuild: ${{ env.CONTAINER_REGISTRY_LOGIN_SERVER }}/${{ env.CONTAINER_APP_NAME }}:${{ github.sha }} containerAppName: ${{ env.CONTAINER_APP_NAME }} containerAppEnvironment: ${{ env.CONTAINER_APP_ENVIRONMENT_NAME }} resourceGroup: ${{ env.RESOURCE_GROUP }}
Login failed with Error: Using auth-type: SERVICE_PRINCIPAL. Not all values are present. Ensure 'client-id' and 'tenant-id' are supplied.. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
on: push: branches: - ASPServer env: DOTNET_CORE_VERSION: 7.0.x CONTAINER_APP_NAME: myapp.server.asplinuxapi-container-app CONTAINER_APP_ENVIRONMENT_NAME: managedEnv20250921173428 RESOURCE_GROUP: managedEnv20250921173428ResourceGroup CONTAINER_REGISTRY_NAME: registry20250921174445 CONTAINER_REGISTRY_LOGIN_SERVER: registry20250921174445.azurecr.io jobs: BuildAndDeployContainerApp: runs-on: ubuntu-latest steps: - name: Checkout source code uses: actions/checkout@v4 - name: Setup .NET SDK uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.DOTNET_CORE_VERSION }} - name: Azure login uses: azure/login@v1 with: creds: ${{ secrets.managedEnv20250921173428_SPN }} - name: Container App deploy uses: azure/container-apps-deploy-action@v1 with: appSourcePath: ${{ github.workspace }} acrName: ${{ env.CONTAINER_REGISTRY_NAME }} acrUsername: ${{ secrets.registry20250921174445_USERNAME_5028 }} acrPassword: ${{ secrets.registry20250921174445_PASSWORD_5028 }} imageToBuild: ${{ env.CONTAINER_REGISTRY_LOGIN_SERVER }}/${{ env.CONTAINER_APP_NAME }}:${{ github.sha }} containerAppName: ${{ env.CONTAINER_APP_NAME }} containerAppEnvironment: ${{ env.CONTAINER_APP_ENVIRONMENT_NAME }} resourceGroup: ${{ env.RESOURCE_GROUP }}