Azure Billing Credentials
Billing Account Information Required
To ensure you can fully access and use our product, we require you to provide your Azure billing account information. This step is mandatory for using Cross4Cloud (C4C) or any C4C services related to Azure and must be completed before proceeding with the setup. Completing this step unlocks access to our product and its related features.
Please follow the instructions below to ensure you can use our services properly.
1. Subscription Adding
If you don't have a subscription for your Azure account, you need to first add a subscription. You can follow the steps below. However, if you already have a subscription, you can skip this section.
-
Go to Azure Portal and log in to your account.
-
Go to the search bar and look for Subscriptions, then choose Subscriptions under Services.
Show the instructions with images
- Click on the Add button located at the top.
Show the instructions with images
- Choose the offer that suits you and proceed.
Show the instructions with images
- After selecting the appropriate offer, follow the steps on the page directed by Azure. After creating your profile, complete the process by verifying your identity with card authentication.
2. App Registration
-
Go to Azure Portal and log in to your account.
-
Go to the search bar and look for App registrations, then choose App registrations under Services.
Show the instructions with images
- Click New Registration on the top.
Show the instructions with images
-
Fill up the given inputs (name and supported account types) and click Register.
noteYou can choose a proper Supported Account Type as your need.
warningKeep the name information you will need it later.
Show the instructions with images
-
You will be navigated to a page that contains your Application (client) ID and Directory (tenant) ID.
CRITICAL STEPKeep your Application (Client) ID and Directory (Tenant) ID accessible, as you will need them as credentials for performing operations in our console.
Show the instructions with images
- Click Certificates & Secrets from the Manage section in the left-hand menu.
Show the instructions with images
-
Create a client secret by clicking on the New client secret button. After providing a description for your client secret, proceed to click the Add button. Choosing the longest possible duration for the "expires" option is important.
CRITICAL STEPAfter clicking the Add button, you will see your Value on the same page. Copy it and keep it accessible, as you will need it as a credential for operations in our console.
Show the instructions with images
3. Getting Subscription ID
- Go to the search bar and search for Subscriptions, then click Subscriptions under Services.
Show the instructions with images
-
After opening the page, copy your Subscription ID somewhere accessible for future reference.
CRITICAL STEPMake sure to copy your Subscription ID and keep it accessible, as you will need it as a credential for operations in our console.
Show the instructions with images
4. Adding C4C Custom Role
Now, we need to create the role that contains the necessary permissions.
We can do this in two ways: the first is with a file, and the second is with a code block.
The file method includes performing the necessary actions along with a file we will provide you.
The code block method, on the other hand, involves pasting the code into the relevant location under the same section.
You can proceed by selecting your preference.
- File
- Code
If you wish to proceed with this method, please follow the steps below.
- Go to the search bar and search for Subscriptions, then click Subscriptions under Services.
Show the instructions with images
- Click on your related Subscription Name.
Show the instructions with images
- Click on Access Control (IAM) from the left-hand menu, then click on the Add button above, and select Add custom role.
Show the instructions with images
- Select the Start from JSON option, for the Baseline Permissions.
Download this file, for the relevant permissions.
In some cases, the file may not download directly. To avoid this issue:
-
Right-click on the this file link.
-
Select Save link as... from the context menu.
-
Choose a location where you can easily access the file for further steps.
This ensures the file is saved properly for later use.
- Click the Select a file section and locate and select the file you downloaded in the previous step on your computer.
Show the instructions with images
- Click JSON tab from the top, then click the Edit button.
Show the instructions with images
- In the pasted code block, locate the expression /subscriptions/{YOUR_SUBSCRIPTION_ID} and replace YOUR_SUBSCRIPTION_ID with the subscription ID we asked you to save earlier.
Show the instructions with images
- After editing the code, click on the Save button.
Show the instructions with images
- Click Review + create tab from the top then click the Create button located at the bottom left of the page.
Show the instructions with images
You should have received a system message indicating that the role has been successfully created.
If you wish to proceed with this method, please follow the steps below.
-
Go to the search bar and search for Subscriptions, then click Subscriptions under Services.
-
Click on your related Subscription Name.
Show the instructions with images
- Click on Access Control (IAM) from the left-hand menu, then click on the Add button above, and select Add custom role.
Show the instructions with images
- Click the JSON tab.Then you will see the Edit button right of the page.
Show the instructions with images
-
Delete the existing code and paste the code below in its place.
Show the code block.
{
"properties": {
"roleName": "C4C Custom Role Billing",
"description": "",
"assignableScopes": [
"/subscriptions/{YOUR_SUBSCRIPTION_ID}"
],
"permissions": [
{
"actions": [
"Microsoft.Authorization/permissions/read",
"Microsoft.Authorization/roleAssignments/read"
],
"notActions": [],
"dataActions": [],
"notDataActions": []
}
]
}
} -
In the pasted code block, locate the expression /subscriptions/{YOUR_SUBSCRIPTION_ID} and replace YOUR_SUBSCRIPTION_ID with the subscription ID we asked you to save earlier.
Show the instructions with images
- After editing the code, click on the Save button.
Show the instructions with images
- Click the Review + create first, and then click the Create button.
Show the instructions with images
You should have received a system message indicating that the role has been successfully created.
5. Role Assignment
In this step, you will assign the necessary roles to the app you registered earlier. To ensure proper permissions, assign the following roles:
- Cost Management Reader
- C4C Custom Role
These roles are essential for enabling the app to access required resources and perform specific tasks. To assign these roles to the app, follow the instructions below.
- Cost Management Reader
- C4C Custom Role
- Click Access Control (IAM) in the left menu under your subscription, then click the Add button at the top of the page and select Add role assignment.
Show the instructions with images
- Click Job function roles under the Role tab.
Show the instructions with images
- Search for the Cost Management Reader and select it.
Show the instructions with images
- You should be navigated to the Members tab. In that section click +Select members.
Show the instructions with images
- Search for the name of your app which we registered at App Registration. Then click Select button.
Show the instructions with images
- Afterward click Next button, which located bottom of the page. You must be navigated to Conditions tab.
Show the instructions with images
- For getting the required permissions, please select 'Allow user to assign all roles' option for What user can do section.
Show the instructions with images
- Click Review + assign button.
Show the instructions with images
You must get an notification that says Added Role assignment.
- Click Access Control (IAM) in the left menu under your subscription, then click the Add button at the top of the page and select Add role assignment.
Show the instructions with images
- Click Job function roles under the Role tab.
Show the instructions with images
- Then search for the role (C4C Custom Role Billing) that we cerated earlier and select it from the list. Afterward click Next button.
Show the instructions with images
- You should be navigated to the Members tab. In that section click +Select members.
Show the instructions with images
- Search for the name of your app which we registered at App Registration. Then click Select button.
Show the instructions with images
- Afterward click Next button, which located bottom of the page. You must be navigated to Conditions tab.
Show the instructions with images
- For getting the required permissions, please select 'Allow user to assign all roles' option for What user can do section.
Show the instructions with images
- Click Review + assign button.
Show the instructions with images
You must get an notification that says Added Role assignment.
Make sure that both the Cost Management Reader and C4C Custom Role for Billing are assigned correctly.