Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user-assigned identity credential options to Bicep configuration #12265

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

shenglol
Copy link
Contributor

@shenglol shenglol commented Oct 24, 2023

The PR adds the following Bicep configuration section to support authentication using user-assigned identities:

{
  "cloud": {
    "currentProfile": "AzureCloud",
+   "credentialOptions": {
+      "managedIdentity": {
+        "type": "SystemAssigned | UserAssigned",
+        "clientId": "User-assigned identity cliend ID",
+        "resourceId": "User-assigned identity resource ID"
+      }
+    }
  }
}

Fixes #12185.

Microsoft Reviewers: Open in CodeFlow

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2023

Test this change out locally with the following install scripts (Action run 6635351575)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 6635351575
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 6635351575"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 6635351575
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 6635351575"

@github-actions
Copy link
Contributor

Test Results

     132 files  ±  0       132 suites  ±0   4h 2m 28s ⏱️ - 8m 38s
10 669 tests +  9  10 669 ✔️ +  9  0 💤 ±0  0 ±0 
51 563 runs  +36  51 563 ✔️ +36  0 💤 ±0  0 ±0 

Results for commit ee2de39. ± Comparison against base commit aeef173.

@shenglol shenglol merged commit b1c243d into main Oct 25, 2023
47 checks passed
@shenglol shenglol deleted the shenglol/user-assigned-identity branch October 25, 2023 03:21
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.

Update bicepconfig to support user-assigned identity auth settings
2 participants