Skip to content

Comments

Add unique_string function#653

Merged
ms-henglu merged 8 commits intoAzure:mainfrom
smokedlinq:unique_string
May 9, 2025
Merged

Add unique_string function#653
ms-henglu merged 8 commits intoAzure:mainfrom
smokedlinq:unique_string

Conversation

@smokedlinq
Copy link
Contributor

This adds the ARM function uniqueString so that the community can migrate from existing ARM/BICEP based deployments that utilize the function to create resources.

The golang version was converted from a C#/PowerShell utility I wrote a few years ago.

The values can be verified with a simple bicep configuration such as:

output value string = uniqueString('/subscriptions/00000000-0000-0000-0000-000000000000', 'resource-id')

P.S. Without a spreadable tfsdk type for a list of strings, an array seemed to be the most appropriate approach as the parameter.

@smokedlinq smokedlinq marked this pull request as ready for review October 25, 2024 00:06
@ms-henglu ms-henglu requested a review from magodo November 13, 2024 05:28
@magodo magodo requested a review from ms-henglu March 4, 2025 23:30
@ms-henglu ms-henglu added this to the v2.4.0 milestone Mar 6, 2025
@ms-henglu ms-henglu merged commit a782a5b into Azure:main May 9, 2025
10 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.

3 participants