To create and use Azure services, you first need to sign up. If you’ve never tried or paid for Azure before, you can sign up for the Azure free account.
-
In a web browser, go to https://azure.microsoft.com/free.
-
Follow the online instructions.
-
Make sure the Azure account has permission to manage applications in Azure Active Directory (Azure AD). Any of the following Azure AD roles include the required permissions:
- Application administrator
- Application developer
- Cloud application administrator
Step 2: Register an application
- Search for and select Azure Active Directory.
- Under Manage, select App registrations > New registration.
- Enter a display name for your app registration, and note it down, leave all other fields as default.
- Once your app registration has been created, you should see it's "Overview"
pane, where you can see an
ARM_CLIENT_IDvalue shown as "Application (client) ID" and anARM_TENANT_IDvalue shown as "Directory (tenant) ID". We'll use both as part of the credentials for the cluster deployment later.
From the "Overview" pane, you can add a client secret to your app registration, and that will give us a couple additional credentials we need for your CNDI cluster deployment.
- Select "Certificates & secrets" > "Client secrets" > "New client secret".
- Add a description for your client secret.
- Select an expiration for the secret or specify a custom lifetime.
- Client secret lifetime is limited to two years (24 months) or less. You can't specify a custom lifetime longer than 24 months.
- Select "Add".
- Record the secret's value for use in your client application code. This secret value is never displayed again after you leave this page.
Step 4: Set up Access Control (IAM)
The app registration represents the identity of the application that will request resources from Azure cloud, so the next steps are to define which resources that app registration can access.
-
Sign in to the Azure portal.
-
Go to your "Subscriptions".
-
Select the Subscription you want to use CNDI within.
-
Click Access control (IAM).
- Click "Add +" > "Add custom role".
- To create a custom role, begin by assigning a name and description to the role.
- Next, proceed to the JSON tab and click "edit" to update the JSON to include
"actions"as follows:
{
"properties": {
"roleName": "cndi-min-role",
"description": "minimum permissions required for deploying a CNDI cluster to AKS",
"assignableScopes": [
"/subscriptions/<subscription-id>"
],
"permissions": [
{
"actions": [
"Microsoft.ContainerService/managedClusters/write",
"Microsoft.ContainerService/managedClusters/delete",
"Microsoft.ContainerService/managedClusters/read",
"Microsoft.ContainerService/managedClusters/listClusterUserCredential/action",
"Microsoft.Resources/subscriptions/resourceGroups/write",
"Microsoft.Resources/subscriptions/resourceGroups/delete",
"Microsoft.Resources/subscriptions/resourceGroups/read",
"Microsoft.Network/virtualNetworks/write",
"Microsoft.Network/virtualNetworks/read",
"Microsoft.Network/virtualNetworks/delete",
"Microsoft.Network/virtualNetworks/subnets/delete",
"Microsoft.Network/virtualNetworks/subnets/write",
"Microsoft.Network/virtualNetworks/subnets/read",
"Microsoft.Network/virtualNetworks/subnets/join/action",
"Microsoft.Network/dnszones/A/write",
"Microsoft.Network/dnszones/A/read",
"Microsoft.Network/dnszones/A/delete",
"Microsoft.Network/dnszones/TXT/write",
"Microsoft.Network/dnszones/TXT/read",
"Microsoft.Network/dnszones/TXT/delete",
"Microsoft.Network/dnszones/read"
]
}
]
}
}-
Finally Click "Review + Create" to create the custom role. Note: you can use this custom role for multiple app registrations down the line.
-
After creating the new custom role, we want to assign it to our app registration. To do this, return to the Access control (IAM) page and click "Add +" > "Add role assignment".
- Filter through "Job function roles" to locate the custom role you created by name.
- On the "Members" tab Select the "User, group, or service principal".
-
Then click "Select members" and search for the app registration you created earlier.
-
Click "Select" to add the app to the Members list, then click "Next".
- On the "Review + assign" tab, review the role assignment settings.
- Click "Review + assign" to assign the custom role.
In the end you should have all the credentials for a cluster deployment on azure
-
ARM_SUBSCRIPTION_ID from subscription overview
If you have any additional questions that are not covered in this FAQ, please feel free to reach out to us for further assistance.














