microsoftgraph / microsoftgraph/entra-powershell

🪲 Several Add cmdlets for Agent Identity Blueprints don't handle adding new values to multi-value properties

Open
#1,587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Roadmap ToTriage
Dominant language
PowerShell
Stars
213
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

  • Make sure you can reproduce this issue using the latest released version of Microsoft.Entra or Microsoft.Entra.Beta.
  • Please search the existing issues to see if there has been a similar issue filed.

Describe the bug

Several Add cmdlets for Agent Identity Blueprints don't handle adding new values to multi-value properties, nor do they handle replacing existing property values. This includes at least:

  1. Add-EntraBetaInheritablePermissionsToAgentIdentityBlueprint
  2. Add-EntraBetaScopeToAgentIdentityBlueprint

To Reproduce

Steps to reproduce the behavior:

  1. Execute Invoke‑EntraBetaAgentIdInteractive or manually create an AIB and populate one or both of the above properties
  2. Run the Add cmdlet
  3. Error will be thrown stating a value for that property already exists

Expected behavior

Either A) automatically append the new value to the property, B) ask the user if they want to append/replace, or C) offer-append and/or -replace modifiers to allow the user to update the property after some values have already been added (without having to manually remove the existing values).

Debug Output

⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.

Debug Output I'm filing this from my testing notes and didn't take a debug output during my tests, but I can go back and get one if needed.

Module Version

1.2.0 (Beta)

Environment Data

Same as comment in Debug Output section.

Screenshots

N/A

Additional context

N/A

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the failure with Add-EntraBetaInheritablePermissionsToAgentIdentityBlueprint and Add-EntraBetaScopeToAgentIdentityBlueprint after an Agent Identity Blueprint already has values. Inspect how these cmdlets update multi-value properties and clarify whether append, replace, prompting, or explicit modifiers is intended; done means adding or replacing values no longer fails when values already exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.