Skip to main content
Skyhigh Security

Service Principal with a Secret Key and Azure API Integration

Azure Service Principals are an authentication mechanism for Azure instances. An Azure Service Principal is an identity created under Azure Active Directory to work with apps using role-based access controls. For example, when applications, hosted services, or automated tools need to access or modify resources, you can create a service principal and use it to authenticate.

Roles assigned to the service principal allow you to restrict access to resources, so you can control the resources and the level at which they are accessed. You should always use service principals with automated tools rather than allowing the tools to log in with a user identity.

IMPORTANT: Before you begin, contact Support to enable the Azure Service Principal for your tenant.

Configure an Application Registration in the Azure Portal

  1. Log in to the Azure portal at https://portal.azure.com/.
  2. Go to Home > App registrations and click New registration.
  3. Under Redirect URI select Select a platform and enter your Skyhigh CASB environment:  
    1. PROD: https://www.myshn.net/shndash/extensions/offlinedlp_ret.jsp
    2. EUPROD: https://www.myshn.eu/shndash/extensions/offlinedlp_ret.jsp
    3. CAPROD: https://www.myshn.ca/shndash/extensions/offlinedlp_ret.jsp
      azure_service1.png
  4. To create a new application, click Register.
  5. Confirm the new application's properties are configured correctly, as per Step 3.
  6. Copy the Application (Client) ID and Tenant ID for future reference.
    azure_service2.png
  7. In the Client secrets tab, click New client secret.
    azure_service3.png
  8. Copy the Secret Value for future reference.
    azure_service4.png
  9. Now add the new service principal to existing subscriptions. This gives the service principal access to the resources within those subscriptions.
    azure_service5.png
  10. Go to Subscription.
  11. Click Access Control (IAM) on the left side bar, then the Role assignments tab.
    azure_service6.png
  12. Click Add then click Add role assignment.
    azure_service7.png
  13. Click Next.
    azure_service8.png
  14. Select members and click Select
    azure_service9.png
  15. Click Review and assign.
    azure_service11.png

Follow the same steps for any other subscriptions you may have.

Create Azure Service Instance Using Service Principal in Skyhigh CASB

  1. In Skyhigh CASB go to Settings > Service Management
  2. Select your Azure instance or create a new one.  
  3. When you provide API credentials, enter the Client ID, Client Secret, and Tenant ID you saved from the previous steps. 
  • Was this article helpful?