microsoftgraph / microsoftgraph/entra-powershell
🪲 Several Add cmdlets for Agent Identity Blueprints don't handle adding new values to multi-value properties
Nobody has claimed this yet.
- 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.EntraorMicrosoft.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:
- Add-EntraBetaInheritablePermissionsToAgentIdentityBlueprint
- Add-EntraBetaScopeToAgentIdentityBlueprint
To Reproduce
Steps to reproduce the behavior:
- Execute Invoke‑EntraBetaAgentIdInteractive or manually create an AIB and populate one or both of the above properties
- Run the Add cmdlet
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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