microsoftgraph / microsoftgraph/msgraph-bicep-types

Generate a default value for the group's uniqueName property

Open
#143 1 comment 0 reactions 1 assignee View on GitHub

@dkershaw10 is already working on this.

Since Jun 17, 2024.

enhancement graph-platform triaged
Dominant language
TypeScript
Stars
80
Forks
15
Avg merge
1h 21m
Merged PRs (30d)
3

Description

Is your feature request related to a problem? Please describe.
In Bicep, fetching an existing resource is done based on the resource's unique name property. However, when trying to fetch an existing group from Graph that wasn't provisioned using Bicep, then chances are it doesn't have a uniqueName. Provisioning a uniqueName isn't always straightforward. I can imagine there are many companies, like ours, with a lot of teams that do their own Bicep deployments and only have read access. If their central team is not filling the uniqueName value, leaving a lot of unused potential on the table.

Describe the solution you'd like
If not set, the system should generate a default value for uniqueName so that the group can be referenced from a Bicep file.

Additional context
One proposal is to create a new naming policy rule in Group Settings for uniqueName that if set allows the system to set a default value (if a value is not supplied by the caller). It would be based on a rule that contains some templating to make the name human readable (maybe using the group's displayName and description and maybe AI :)), and provide uniqueness - maybe through a date-time suffix.

Filed on behalf of a customer.

See #141

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.