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

SettingWherePurpose
Endpoint URLProviderCrayon API base URL
Application ID, Application SecretConnectorCrayon API client credentials
Username, PasswordConnectorCrayon API user
organizationIdProvider propertyThe Crayon organization whose customers and subscriptions are synced. Selected from the organizations your Crayon user can access.
currencyCode, countryCodeProvider propertyCurrency 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:

  1. It reads an address from your Crayon organization. The organization must have one, or customer creation fails.
  2. It creates an invoice profile named after the account, using the account's address as the delivery address.
  3. 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.
  4. 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

  1. LCLs are grouped by subscription and processed oldest first by Effective Date.
  2. Changes that originated in Crayon (Order Source = Provider) are set to Not Applicable.
  3. A Part Number is required. Without one the LCL is skipped.
  4. 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>
  5. The change is sent to Crayon and the LCL is Provisioned immediately.
  6. If an LCL fails, later LCLs for that subscription aren't processed.

Create

Subscription typeBehavior
StandardCreated in Crayon. The Provider Subscription Id and order ID are stored.
Azure PlanThe 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-onSee below.

Add-ons. Add-ons are created under their base subscription:

  1. 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."
  2. 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.
  3. If Crayon doesn't offer it: "Cannot create add-on subscription … Parent subscription does not contain add-ons in crayon."
  4. Otherwise the add-on is added to the parent with its quantity and offer ID (the part number, in upper case).

Update

SubscriptionBehavior
StandardThe subscription is updated in Crayon from the Work 365 subscription (quantity, auto-renew and other details), and its status is set to Active.
Add-onFails: "Cannot update add-on subscription."
AzureFails: "Cannot update quantity on an Azure subscription."

Activate and Deactivate

ChangeStandardAzure Plan
ActivateStatus set to ActiveNot supported
DeactivateStatus set to DeletedNot 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

MessageCauseFix
Organization has not selected in the configuration…No organizationId on the providerSelect the organization
Customer not created, …Crayon rejected the customer, or the organization has no addressFix the cause shown; make sure the Crayon organization has an address
Provider Subscription Id does not exist for Subscription…Missing IDAdd it, retry
Cannot create add-on subscription … without it's base subscriptionBase subscription not syncedSync it, retry
Cannot create add-on subscription … does not contain add-ons in crayonCrayon doesn't offer this add-on for the parentCheck the offer in Crayon
Error occured while provisioning add-on subscription [id]Appears for any create failure, not only add-onsRead the message that follows
Cannot update add-on subscription. / Cannot update quantity on an Azure subscription.Unsupported updateChange 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

Did this page help you?