https://pulumi.com logo
#dotnet
Title
l

limited-carpenter-34991

05/28/2020, 11:58 AM
Does anyone know, how a client secret from a service principal can be created ?
Copy code
var servicePrincipal = new ServicePrincipal("sp-superUser", new ServicePrincipalArgs
{
  ApplicationId = application.ApplicationId,
});
t

tall-librarian-49374

05/28/2020, 2:03 PM
I believe it’s
ServicePrincipalPassword
as shown here https://github.com/pulumi/examples/blob/master/azure-cs-aks/AksStack.cs#L88
l

limited-carpenter-34991

05/28/2020, 2:09 PM
Ok thx, i will check this.
I created a new ServicePrincipalPassword object with the reference to the created serviceprincipal, but no client secret is been created.
I used the code from the example https://github.com/pulumi/examples/blob/master/azure-cs-aks/AksStack.cs#L88. But it doesn't create the client secret for the service prinicpal.
problem fixed. applicationPassword is the right one for it