IWithIdentity<ParentT>.ForServicePrincipal Method

Definition

Overloads

ForServicePrincipal(IServicePrincipal)

Specifies the Active Directory service principal this access policy is for.

ForServicePrincipal(String)

Specifies the Active Directory service principal this access policy is for.

ForServicePrincipal(IServicePrincipal)

Specifies the Active Directory service principal this access policy is for.

public Microsoft.Azure.Management.KeyVault.Fluent.AccessPolicy.Definition.IWithAttach<ParentT> ForServicePrincipal (Microsoft.Azure.Management.Graph.RBAC.Fluent.IServicePrincipal servicePrincipal);
abstract member ForServicePrincipal : Microsoft.Azure.Management.Graph.RBAC.Fluent.IServicePrincipal -> Microsoft.Azure.Management.KeyVault.Fluent.AccessPolicy.Definition.IWithAttach<'ParentT>
Public Function ForServicePrincipal (servicePrincipal As IServicePrincipal) As IWithAttach(Of ParentT)

Parameters

servicePrincipal
IServicePrincipal

The AD service principal object.

Returns

Applies to

ForServicePrincipal(String)

Specifies the Active Directory service principal this access policy is for.

public Microsoft.Azure.Management.KeyVault.Fluent.AccessPolicy.Definition.IWithAttach<ParentT> ForServicePrincipal (string servicePrincipalName);
abstract member ForServicePrincipal : string -> Microsoft.Azure.Management.KeyVault.Fluent.AccessPolicy.Definition.IWithAttach<'ParentT>
Public Function ForServicePrincipal (servicePrincipalName As String) As IWithAttach(Of ParentT)

Parameters

servicePrincipalName
String

The service principal name of the AD user.

Returns

Applies to