Example
This section outlines how to import the tenant subscriptions of a customer tenant.
Assumptions
-
The customer tenant has the following tenant subscriptions in the Microsoft cloud:
- Office 365 Business Premium (5 licenses)
- Exchange Online Advanced Threat Protection (5 licenses)
- Exchange Online Archiving for Exchange Online (5 licenses)
- Office 365 Extra File Storage (10 gigabytes)
All the tenant subscriptions have monthly billing frequency.
- The customer tenant does not have a customer account in CloudBlue Commerce.
- The identifier of the required Microsoft 365 application instance is 10.
- The Microsoft 365 application instance and its Microsoft 365 service plans belongs to the provider.
-
The standard Microsoft 365 service plan Office 365 Business Premium exists under the provider account. Its identifier is 100. The service plan includes the following resource rates:
- Office 365 Business Premium (the resource rate identifier is 1001)
- Exchange Online Advanced Threat Protection (the resource rate identifier is 1002)
- Exchange Online Archiving for Exchange Online (the resource rate identifier is 1003)
- Office 365 Extra File Storage (the resource rate identifier is 1004)
Billing Period of the Microsoft 365 service plan is set to Monthly.
- The initial domain of the customer tenant is customer.onmicrosoft.com.
- The initial domain of the partner tenant is provider.onmicrosoft.com.
Import Procedure
- Execute the
readCSPAccounts.py --vendor-id 1 --csp-app-instance-id 10 --account-domain-list "customer.onmicrosoft.com"
command. Thecustomers_provider.onmicrosoft.com.csv
andimportSubs_provider.onmicrosoft.com.csv
files will be created. -
Open the
importSubs_provider.onmicrosoft.com.csv
file and check the following:- The OSAServicePlanId field contains the identifier of the Office 365 Business Premium service plan.
- The ResourceRateLimits field contains the correct resource rate identifiers and limits (1001-5,1002-5,1003-5,1004-10).
- In CloudBlue Commerce under the provider account, create a customer account using the information from the
customers_provider.onmicrosoft.com.csv
file. After creating the account, write down its identifier. - Specify the identifier of the created customer account in the
importSubs_provider.onmicrosoft.com.csv
file in the OSACustomerID field. - In the Provider Control Panel, stop Microsoft 365 synchronization by canceling all the Synchronization with Office 365 Portal tasks.
- Execute the
importSubsCSP.py --csp-app-instance-id 10 --file importSubs_provider.onmicrosoft.com.csv
command. The customer account will be subscribed to the Office 365 Business Premium service plan. - After running the script, Microsoft 365 import tasks will be scheduled in the task manager. Wait for them to be processed.
- In the Provider Control Panel, start Microsoft 365 synchronization by running all the Synchronization with Office 365 Portal tasks.
- Validate the limits of the subscription in CloudBlue Commerce. The limits of the Office 365 Business Premium, Exchange Online Advanced Threat Protection, Exchange Online Archiving for Exchange Online, and Office 365 Extra File Storage license resources must be set to 5, 5, 5, and 10. The limits of the other license resources must be set to 0.