Skip to content

Conversation

@NirajC-Microsoft
Copy link
Contributor

Purpose

This pull request updates how the createdBy tag parameter is set in the infra/main.bicep and infra/main_custom.bicep files. The main change is to improve the logic for determining the value of the createdBy tag, making it more robust in cases where userPrincipalName may not be present.

Tagging logic improvements:

  • Updated the createdBy parameter to check for the existence of userPrincipalName in the deployer() object. If present, it uses the username part of userPrincipalName; otherwise, it falls back to using objectId. This makes the tagging more reliable and avoids empty values when userPrincipalName is not available. (infra/main.bicep, [1]; infra/main_custom.bicep, [2]
  • ...

Does this introduce a breaking change?

  • Yes
  • No

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install
  • Test the code

What to Check

Verify that the following are valid

  • ...

Other Information

@Roopan-Microsoft Roopan-Microsoft merged commit b127dcc into main Sep 23, 2025
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants