Skip to content

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

Description

@jesakowi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions