Hi! `pulumi.output(azure.core.getClientConfig({}))...
# general
t
Hi!
pulumi.output(azure.core.getClientConfig({})).apply(c => servicePrincipalObjectId)
is empty when I run pulumi on my dev pc. Is there a way to get the current user ID? I need to use it as
objectId
for permissions.
r
Just a hunch since I haven't used the Azure integration, but maybe you could set the principal credentials in the Pulumi config as described here: https://pulumi.io/quickstart/azure/setup.html And then access it via
new pulumi.Config("azure").require("clientId")
t
I actually have a
clientId
now, but it's not the same thing (the Guid is different from whay I see in the portal)
c
@tall-librarian-49374 Azure is terrible when it comes to those GUIDs. This especially always gets me when programmatically allowing access for SPNs to Key Vault. There is a GUID one must use that isn't shown in the portal, but only via the API.
t
I actually took a guid from the portal and it works. Object ID of my user in AD. I just can't find it in pulumi.