Skip to content

Unable to Find Function App with Multi-Subscription SPN #144

Closed

Description

@nerddtvg

It seems when the service principal has multiple subscriptions available, the function app is not found if it is not in the default subscription.

The action should search all subscriptions, support specifying a subscription ID, or have the documentation state the limitation and workaround with az acount set --subscription.

Activity

  1. patelchandni commented on Aug 12, 2022

    @patelchandni
    Collaborator

    Drew (@nerddtvg) Did you create service principle using the recommended steps in README?

  2. nerddtvg commented on Aug 12, 2022

    @nerddtvg
    Author

    Chandni Patel (@patelchandni) These are existing service principals that have defined subscriptionId values in the JSON already as required by other tasks that also only search the default subscription. I can't change that value. Hence why I think it would be ideal if this task (and those others) allowed us to specify a subscription ID or search across all available subscriptions if that is provided. The simplest way is specifying the subscription as an optional parameter, otherwise searching across all subscriptions could end up with duplicates or ARM API request quota issues.

    Or it could be mentioned in the documentation that using az account set --subscription as a command prior to running this task, you can specify something different. Just for completeness sake.

  3. locked and limited conversation to collaborators on Aug 22, 2022
  4. converted this issue into a discussion #152 on Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions