Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Deployment action is selecting the wrong subscription

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, github-actions, javascript
Domain
cloud, devops

Research direction

Reproduce the workflow using an Azure container registry in GLOBAL-SUBSCRIPTION and a Function container app in DEMO-SUBCRIPTION. Start with the Azure/functions-container-action@v1 inputs and the debug request to /subscriptions/; trace how the subscription is selected. Done means the action targets the app subscription while using the separate registry, or clearly documents that co-location is required.

Written by the indexing model from the issue text.

Description

need-to-triage

I have the following set up in Azure

  • A 'global' subscription i.e. GLOBAL-SUBSCRIPTION

    • My Azure container registry belongs to the GLOBAL-SUBSCRIPTION
  • A 'per-environment' subscription e.g. a 'demo' subscription DEMO-SUBCRIPTION

    • My hosted Azure Function container app belongs to the DEMO-SUBSCRIPTION
  • I have defined the Azure/functions-container-action@v1 in a workflow so that it will take the image from the above registry and run it on the function app, but it keeps failing with Resource xxx doesn't exist.

  • In the debug logs, the call to /subscriptions/ is using the GLOBAL-SUBSCRIPTION id above, not the app-specific one
    Image

  • Double-checking, I regenerated the service principal and pointed to the resource group containing the container app:
    Image
    But the action still tries to GET using the other subscription above.

There doesn't seem to be a way to make this distinction, unless I'm doing something wrong?
Is the current assumption that both registry and container app need to be co-located within the same subscription?

Dominant language
JavaScript
Stars
29
Forks
20
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/functions-container-action

All issues in Azure/functions-container-action

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.