Class ServicePrincipal | Azure SDK for Net
Jessica Wood
Published Feb 16, 2026
Service Principal that is used to get an OAuth2 token
Inheritance
ServicePrincipal
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.HDInsight.dll
Syntax
public class ServicePrincipal : Microsoft.Azure.Management.HDInsight.Models.Principal Constructors
ServicePrincipal(Guid, Guid, Byte[], String)
Initializes a new instance of the ServicePrincipal class.
Declaration
public ServicePrincipal (Guid applicationId, Guid aadTenantId, byte[] certificateFileBytes, string certificatePassword); Parameters
| Guid applicationId Application id of the service principal. |
| Guid aadTenantId AAD tenant id of the service principal |
| Byte[] certificateFileBytes certificate file bytes associated with service principal. |
| String certificatePassword certificate password associated with service principal. |
Properties
AADTenantId
Gets AAD tenant id of the service principal
Declaration
public Guid AADTenantId { get; } Property Value
ApplicationId
Gets Application id of the service principal
Declaration
public Guid ApplicationId { get; } Property Value
CertificateFileBytes
Gets certificate file bytes associated with service principal
Declaration
public byte[] CertificateFileBytes { get; } Property Value
CertificatePassword
Gets certificate password associated with service principal
Declaration
public string CertificatePassword { get; } Property Value
ResourceUri
Gets Resource uri of the service principal
Declaration
public Uri ResourceUri { get; }