question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for assigning a managed identity on ContainerGroup creation

See original GitHub issue

using (IAzure azure).ContainerGroups.Define()... and so on does not give me the ability to assign a user-defined managed service identity to the container group / container instance.

The REST request mus then look like this:

{
   "identity": {
      "type" = "UserAssigned",
      "userAssignedIdentities": {
         "/subscriptions/.../resourceGroups.../providers/Microsoft.ManagedIdentity/userAssignedIdentities/..." = {}
      }
   },
   "properties": {
      ...
   }
}

Please add support for .WithUserAssignedIdentity(string resourceId) or something like this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ChenTanyicommented, Apr 27, 2020

@clericc You can use the Inner object as workaround if it is not provided in fluent API.

aci.Inner.Identity.Type = ResourceIdentityType.UserAssigned;
aci.Inner.Identity.UserAssignedIdentities = new Dictionary...

aci.update().apply()

Or even use the inner create function

azure.ContainerGroups.Inner.CreateOrUpdateAsync();
0reactions
msftbot[bot]commented, Oct 11, 2021

Hi @jwefers, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable managed identity in container group - Azure
To set the identities on a new or existing container group, use the Azure CLI, a Resource Manager template, a YAML file, or...
Read more >
Managed identities in Azure Container Apps
A user-assigned identity is a standalone Azure resource that can be assigned to your container app and other resources. A container app can...
Read more >
Managed Identities with Azure Container Instance — Golang
In short, Managed Identities for Azure Resources, provides Azure services with an identity in Azure AD. You can use the identity to authenticate ......
Read more >
Managed Identity with Azure Container Instances using .NET ...
Managed identities enable you to use Azure AD to authenticate to services, rather than specify credentials like ClientId and Secret in your code ......
Read more >
How To Set Azure Container Instance Managed Service ...
Managed Service Identity Arguments --assign-identity : Space-separated list of assigned identities. Assigned identities are either user assigned ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found