Azure Service Principal with Fortanix Confidential Computing Manager

1.0 Introduction

The purpose of this article is to describe how to set up an Azure Service Principal cluster as worker nodes in Fortanix Confidential Computing Manager (CCM).

1.1 Prerequisites

Ensure that you meet the following requirements:

  • You need to have an active Azure subscription.
  • You must have the latest Azure CLI.

2.0 Creating the Azure Service Principal Cluster

Perform the following steps to create the Azure Service Principal:

  1. Run the following command to create an application:
    az ad app create --display-name myApp
  2. Run the following command to create a Service Principal:
    az ad sp create --id <APP_ID>
  3. Run the following command to create a resource group:
    az group create -n myResourceGroup -l eastus
  4. Run the following commands to create the custom role for managing the deployments in the Fortanix CCM:
    az role definition create --role-definition '{
                "Name": "Manage deployment",
                "Description": "All permissions needed to run CCM managed deployments",
                "Actions": [
                "DataActions": [],
                "NotDataActions": [],
                "AssignableScopes": ["/subscriptions/<SUBSCRIPTION_ID>"]
  5. Run the following command to assign the role to the application:
    az role assignment create --role "Manage deployment" --assignee <APP_ID> --scope /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>
    • <APP_ID> refer to the Application ID of the target application.
    • <SUBSCRIPTION_ID> refers to the subscription ID for the Azure subscription.
    • <RESOUCE_GROUP> refers to the resource group where the application is deployed.
    Wait for a few minutes for the role assignment to be completed.
  6. Run the following command to reset the credentials of the application:
    az ad sp credential reset --id <APP_ID>


Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful