Skip to content

Support for profile value either in stack credentials or git actions input #534

@naveendharnamoni

Description

@naveendharnamoni

we are facing below issue related to azure stack login.

az cloud register: '2019-03-01-hybrid' is not a valid value for '--profile'. Allowed values: latest.

Following is our workflow:

      - name: run powershell scipt
        shell: pwsh
        run: Install-Module -Name Az -Repository PSGallery -Force

      - name: Login to Azure Stack
        uses: azure/login@v2
        with:
          creds: ${{ secrets.AZURE_STACK_CREDENTIALS }}
          environment: 'AzureStack'
          enable-AzPSSession: true

This behavior breaks our existing GitHub Actions workflows and scripts that rely on the '2019-03-01-hybrid' profile, which was previously supported.

Upon investigation, we found that the latest Azure CLI version only allows latest as a valid value for the --profile parameter.

Impact:
This change blocks our deployment pipelines that depend on hybrid cloud configurations. We would appreciate guidance on how to proceed or whether support for this profile can be reinstated.

Environment:
OS: Ubuntu 22.04
GitHub Actions runner: (self-hosted based on ubuntu-latest)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions