Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Azure AD API #360
Comments
|
I've written code to create an AD App, AD ServicePrincipal and assign ARM RBAC Roles to the SP. If you want to take a look and/or borrow code: https://github.com/colemickens/azkube/blob/master/util/ad.go The Azure SDK for Go can handle the role assignment, but the AD side interacts with the Graph API and we don't have an ADAL library for Go, so I implemented the Graph API calls "manually" using |
axw
commented
Jul 19, 2016
|
@colemickens Thanks very much, I will take a look. |
ahmetb
added
the
question
label
Jul 28, 2016
garimakhulbe
added
the
resource-management
label
Aug 11, 2016
moritzheiber
commented
Jan 14, 2017
|
This is pretty essential, especially for tools trying to support a completely "Infrastructure as Code" approach. Is there any work being done on it? |
axw
commented
Jan 15, 2017
|
@moritzheiber I ended up hand-crafting just the bits I needed. I've licensed it the same as the azure-sdk-for-go code, feel free to use it if it's useful: https://github.com/juju/juju/tree/staging/provider/azure/internal/ad. It was a while ago that I wrote it now, but IIRC the only reason why I couldn't just auto-generate it was because of the difference in result structures from the AD API (i.e. see refs to "odata.error" in https://github.com/juju/juju/blob/staging/provider/azure/internal/ad/client.go) |
|
Howdy folks, We're scheduled to add the Graph API in the next monthly release. We have a couple of related issues tracking the concerns brought up in this thread: Because there are more immediately actionable requests in those items, I'm going to close this issue in favor of the others. If folks think there is unresolved discussion unique to this thread, feel free to re-open. |
marstr
closed this
Feb 15, 2017
axw
commented
Feb 15, 2017
|
Thanks for the update, @marstr. |
axw commentedJul 19, 2016
We (Juju) would like to automate the process of creating an application/service principal in Active Directory. Essentially we want to replicate the process described at https://azure.microsoft.com/en-us/documentation/articles/resource-group-authenticate-service-principal-cli/, in Go.