Azure / Azure/Azure-Functions

Environment variable WEBSITE_OWNER_NAME changed in Azure Functions on Consumption Flex plan

Open
#2,593 9 comments 0 reactions 0 assignees View on GitHub
Needs: Attention :wave:
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

#### Is your question related to a specific version? If so, please specify:
Tested on Node.js 20x on Consumpltion Flex plan

#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)
Node.js, but most likely other languages too

#### Question
It seems that WEBSITE_OWNER_NAME environment variable format changed on the new Consumption Flex plan. The new format is something like this:
`+flex-99ddf98v18fee2c3d86cb4d0f37573099297d5124520437bfa4ee00d9fc8ff8e-webspace`
comparing to the format on the old Consumption plan:
`+-webspace-Linux`

Since the variable is not publicly documented it's expected to change, but still it was the only way to get resource group from within the function (without fetching it from other sources).

The question is: should we expect to have the new format also in the old Consumption plan (not Flex)? If yes, will users have some other way to obtain resource group within the function as also the WEBSITE_RESOURCE_GROUP is missing in both Consumption and Consumption Flex plans?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.