Does anyone know, how a client secret from a servi...
# dotnet
l
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
I believe it’s
ServicePrincipalPassword
as shown here https://github.com/pulumi/examples/blob/master/azure-cs-aks/AksStack.cs#L88
l
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