Crayon
Crayon is an Automatic Provider. Sync is two-way. Work 365 imports customer tenants, subscriptions and agreements from your Crayon organization, and sends subscription changes back. Changes are sent synchronously, so there is no order tracking.
Provider setup
| Setting | Where | Purpose |
|---|---|---|
| Endpoint URL | Provider | Crayon API base URL |
| Application ID, Application Secret | Connector | Crayon API client credentials |
| Username, Password | Connector | Crayon API user |
organizationId | Provider property | The Crayon organization whose customers and subscriptions are synced. Selected from the organizations your Crayon user can access. |
currencyCode, countryCode | Provider property | Currency and country for imported subscriptions |
Test connectivity loads the customer list. If no organization is selected it fails with "Organization has not selected in the configuration. Please select the Organization and try again." Crayon doesn't support domain or address verification.
Customers
Import. All customer tenants in the organization are imported as Provider Accounts.
Create. Crayon needs an invoice profile before it will create a customer, so Work 365 creates both:
- It reads an address from your Crayon organization. The organization must have one, or customer creation fails.
- It creates an invoice profile named after the account, using the account's address as the delivery address.
- It creates the customer tenant: Microsoft as publisher, a direct reseller tenant, the domain prefix (the part of the domain before the first dot), culture, language, contact and address.
- The tenant ID is stored on the Provider Account. The admin user (
user@domain) and password are returned.
Errors are shown as "Customer not created, {reason}".
Agreements
- Import: for each customer, Work 365 reads the latest Microsoft Cloud Agreement and the latest Microsoft Customer Agreement.
- Accept: Work 365 posts the agreement to the customer tenant. If Crayon doesn't confirm, it fails with "Agreement was not created successfully."
Subscriptions
Subscriptions are imported per customer. Pending subscriptions are skipped, and add-ons are imported as child subscriptions of their base subscription. A failure on one customer is logged and skipped, and the rest continue.
How provisioning works
- LCLs are grouped by subscription and processed oldest first by Effective Date.
- Changes that originated in Crayon (Order Source = Provider) are set to Not Applicable.
- A Part Number is required. Without one the LCL is skipped.
- Provider Account, Friendly Name and Provider Subscription Id must be set, or the LCL fails. Add the value and set the state to Awaiting Provisioning to retry. <confirm: how Provider Subscription Id is populated before a create>
- The change is sent to Crayon and the LCL is Provisioned immediately.
- If an LCL fails, later LCLs for that subscription aren't processed.
Create
| Subscription type | Behavior |
|---|---|
| Standard | Created in Crayon. The Provider Subscription Id and order ID are stored. |
| Azure Plan | The Part Number must contain a colon (:). Otherwise it fails with "Azure Plan Offer ID is not in correct format." The organization is attached to the order. |
| Add-on | See below. |
Add-ons. Add-ons are created under their base subscription:
- The base subscription must already be synced and have a numeric Provider Subscription Id. If not: "Cannot create add-on subscription … without it's base subscription. Sync the base subscription first and change the state to 'Awaiting Provisioning' to retry the sync."
- Work 365 checks Crayon offers the add-on for that parent. For NCE it checks the add-on's prerequisite SKUs include the parent's part number. For legacy subscriptions it checks the parent's add-on offers.
- If Crayon doesn't offer it: "Cannot create add-on subscription … Parent subscription does not contain add-ons in crayon."
- Otherwise the add-on is added to the parent with its quantity and offer ID (the part number, in upper case).
Update
| Subscription | Behavior |
|---|---|
| Standard | The subscription is updated in Crayon from the Work 365 subscription (quantity, auto-renew and other details), and its status is set to Active. |
| Add-on | Fails: "Cannot update add-on subscription." |
| Azure | Fails: "Cannot update quantity on an Azure subscription." |
Activate and Deactivate
| Change | Standard | Azure Plan |
|---|---|---|
| Activate | Status set to Active | Not supported |
| Deactivate | Status set to Deleted | Not supported |
For Azure Plan, the LCL fails with a message asking you to make the change in Crayon and set the LCL to Not Applicable.
Not supported
Pause and Resume aren't handled. <confirm: resulting LCL status>
Not synced
Provider invoices, unbilled usage and non-recurring items. Usage can be imported through mapping files.
Troubleshooting
| Message | Cause | Fix |
|---|---|---|
| Organization has not selected in the configuration… | No organizationId on the provider | Select the organization |
| Customer not created, … | Crayon rejected the customer, or the organization has no address | Fix the cause shown; make sure the Crayon organization has an address |
| Provider Subscription Id does not exist for Subscription… | Missing ID | Add it, retry |
| Cannot create add-on subscription … without it's base subscription | Base subscription not synced | Sync it, retry |
| Cannot create add-on subscription … does not contain add-ons in crayon | Crayon doesn't offer this add-on for the parent | Check the offer in Crayon |
| Error occured while provisioning add-on subscription [id] | Appears for any create failure, not only add-ons | Read the message that follows |
| Cannot update add-on subscription. / Cannot update quantity on an Azure subscription. | Unsupported update | Change it in Crayon, set the LCL to Not Applicable |
| Azure Plan Offer ID is not in correct format. | Part Number has no : | Correct the Part Number |
Updated about 1 month ago
