Add `--credential` parameter to `bicep publish`.
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Is your feature request related to a problem? Please describe.**
Related to #5753.
`bicep publish` behaves the same way as the insert resource function when signed in with different credentials in Azure CLI, Azure PowerShell and VSCode Azure extension. It will try to use the first credential based on my `credentialPrecedence`.
**Describe the solution you'd like**
I would like to see a `--credential` parameter added to `bicep publish` that allows me to specify the credentials to use without having to logout or change the `credentialPrecedence`.
Example:
`bicep publish storage.bicep --target br:mymodules.azurecr.io/modules/storage:v1 --credential azurecli`
Contributor guide
Research direction
Start at the bicep publish command and trace how credentialPrecedence selects credentials across Azure CLI, Azure PowerShell, and the VSCode Azure extension. Done means publish accepts the requested credential through --credential and uses it without requiring logout or changing credentialPrecedence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell, vscode
- Domain
- authentication, cli, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100