Skip to content

context.Subscription.Id mismatch #44

@sherzberg

Description

@sherzberg

I am trying to use the context.Subscription.Id for some of our business logic and logging but have run across what I think is a mismatch in the value and what is shown in the Azure Portal. Using this in my inbound policy:

<set-variable name="debugSubscriptionId" value="@(context.Subscription.Id)" />

I see this in the trace:

Screenshot from 2021-03-02 21-15-04

And this is what the Azure Portal shows:

Screenshot from 2021-03-02 21-17-11

Should the context.Subscription.Id be the /subscriptions/70d926fe..... value? Is anyone using this in a similar way?

I realize maybe Azure support would probably be a better place to put this, but I thought I would start here first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions