by noodlesUK · 1y ago · 0 comments
The deep integration with AD (now Entra) was the strongest selling point for Azure, but it’s also by far the biggest issue with the platform IMO.
There’s also just no consistency in the platform - the CLI for instance has totally different flags and names depending on which sub command you’re using. It’s like this everywhere in Azure.
For all of AWS's faults, one of the reason I really like them is how consistent everything is. There were so many instances where I could correctly guess the right command for the AWS CLI based on how other services worked, I could never do that with GCP or Azure.
I would love to read an article about how AWS ensures this kind of consistency. Given how Azure and GCP both messed this up, it's clearly not a trivial problem (even though it may seem like one)
* focusing on resources and operations on resources
* using consistent and expected naming schemes, pluralization, etc.
it also helps that the sdks and clis are very raw wrappers around this, such that if you know what it looks like in the sdk then it will look similar in the cli.
So the doco and the UI ends up littered with things like:
PrincipalId (ClientId)
There’s at least six of those and I honestly can’t remember which pairs with which or what the difference is… which I’m sure is security-critical… somehow.For single tenants this might seem confusing, because you have both for a single app.
But if you were to have multi-tenants apps, each tenant would have their own Enterprise App instance, all referencing the same App Registration.
appId is for App Registrations.
objectId is for Enterprise Application Registrations.
clientId will be same as appId. It is used in the context of authentication, where it is the id of the object as client.
“EnterpriseAppId” and “AppRegistationId” would make sense.
ObjectId is meaningless nonsense. Everything is an object! Everything has an Id! This tells you nothing specific.
ClientId again is the id of the client, which does not have to be an app registration specifically.
I do agree it can be very confusing
They also have a lot of different resources, such as Graph API, Entra ID.
Manage identities are simpler, since they are Azure constructions, so they work more or less like a IAM role. But then you try to use them with Entra ID APIs and things fall apart.