共用方式為


ServicePrincipalBase Constructors

Definition

Overloads

ServicePrincipalBase()

Initializes a new instance of the ServicePrincipalBase class.

ServicePrincipalBase(String, Nullable<Boolean>, IList<KeyCredential>, IList<PasswordCredential>, String, IList<String>)

Initializes a new instance of the ServicePrincipalBase class.

ServicePrincipalBase()

Initializes a new instance of the ServicePrincipalBase class.

public ServicePrincipalBase ();
Public Sub New ()

Applies to

ServicePrincipalBase(String, Nullable<Boolean>, IList<KeyCredential>, IList<PasswordCredential>, String, IList<String>)

Initializes a new instance of the ServicePrincipalBase class.

public ServicePrincipalBase (string accountEnabled = default, bool? appRoleAssignmentRequired = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> keyCredentials = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> passwordCredentials = default, string servicePrincipalType = default, System.Collections.Generic.IList<string> tags = default);
new Microsoft.Azure.Graph.RBAC.Models.ServicePrincipalBase : string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Graph.RBAC.Models.ServicePrincipalBase
Public Sub New (Optional accountEnabled As String = Nothing, Optional appRoleAssignmentRequired As Nullable(Of Boolean) = Nothing, Optional keyCredentials As IList(Of KeyCredential) = Nothing, Optional passwordCredentials As IList(Of PasswordCredential) = Nothing, Optional servicePrincipalType As String = Nothing, Optional tags As IList(Of String) = Nothing)

Parameters

accountEnabled
String

whether or not the service principal account is enabled

appRoleAssignmentRequired
Nullable<Boolean>

Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.

keyCredentials
IList<KeyCredential>

The collection of key credentials associated with the service principal.

passwordCredentials
IList<PasswordCredential>

The collection of password credentials associated with the service principal.

servicePrincipalType
String

the type of the service principal

tags
IList<String>

Optional list of tags that you can apply to your service principals. Not nullable.

Applies to