Task List
|
Task # |
Task |
Performed by |
|---|---|---|
|
1 |
Prepare Azure for use with CI Sync |
Azure Admin |
|
2 |
Add Azure as a Source System using the CI Sync SaaS UI |
CI Sync Admin |
|
3 |
Check status of new Azure Source System connection |
CI Sync Admin |
|
4 |
Perform Updates in ServiceNow (if required) |
ServiceNow Admin |
Task 1: Prepare Azure for use with CI Sync
This task explains how to prepare Azure for use with your customer specific instance of CI Sync.
Doing this allows your CI Sync SaaS Agent to authenticate to your Azure so you can run CI Sync jobs between Azure and your CMDB.
Context Notes
The CI Sync Connector for Azure supports authentication using an Entra ID App Registration with Client Secret. Please contact your Syncfish representative to discuss support for other authentication methods if required.
-
In the Azure Portal, navigate to Microsoft Entra ID -> App Registrations and click New Registration
-
On the Register an application form complete as follows:
-
Enter the Name (Note: Syncfish recommend using “CI Sync SaaS Connector for Azure”)
-
Under Supported account types select “Accounts in this organizational directory only ({Your Domain/Tenant Name} only - Single tenant)”
-
Click Register
-
-
Using the left-hand menu, navigate and select Certificates & secrets. Select “Client secrets (0)” in the middle of the form and then click the “New client secret” button.
-
Enter a unique Description for the secret associated with this CI Sync Connector for Azure App Registration (e.g. “CI Sync SaaS Agent Connector for Azure Client Secret”).
-
Then, select a suitable Expires duration based on your organisational policy. Finally click the Add button
Guidance Note
It is recommended you set a reminder prior to the expiry date of the Secret (i.e. a reminder to regenerate and update the Secret in the Azure Source System configuration settings in the CI Sync Web UI).
-
The form now displays the generated secret value (shown in the Value field). Use the copy option to make a copy of the value in the Value field.
Data Capture Note
-
The Value is only available while you remain on this screen. You must make a copy of the Value before leaving this form.
-
Make sure you copy the “Value” and NOT the “Secret ID”.
Make sure the secret is stored securely and in a way that can be shared with the CI Sync Admin so they can use it when the follow the instructions later in this page.
-
Return to the Overview page for the App Registration. Use the copy option to make a copy of the “Application (client) ID” GUID value and the “Directory (tenant) ID” GUID value.
Data Capture Summary
As a reminder, you should have captured the following information when completing the above steps.
-
The Secret Value (from Step 6 above). This is the Client Secret value.
-
The Application (client) ID (from Step 7 above).
-
The Directory (tenant) ID (also from Step 7 above).
Make sure any secrets or sensitive information is stored securely and in a way that can be shared with the CI Sync Admin.
The above information will be needed by the CI Sync Admin when they follow the instructions in Task 2 further below.
Now proceed with the remaining steps below.
Context Note
The above instructions result in new App Registration being created (i.e. the App Registration used by CI Sync to authenticate to Azure in order to read Azure resources during a sync job).
The subsequent steps (below) are used to grant permissions to the App Registration (i.e. to grant CI Sync permissions to read those Azure Resources you intend to synchronize from Azure to the CMDB).
Depending on your Azure design, the subsequent steps may need to be repeated for each Azure Subscription you want CI Sync to read from. By granting read access to a given Azure Subscription (or multiple Azure Subscriptions) you can synchronize all supported resource types within the Subscription.
-
In the Azure Portal, navigate to Subscriptions and select/click into the particular Azure Subscription you wish to grant CI Sync access via the App Registration object created above.
-
Select Access control (IAM) from the left hand menu, click the Add button and then select Add role assignment from the drop down menu.
-
On the Role tab, select the Reader role and click the Next button.
-
On the Members tab, click the “+ Select members” link, then use the Filter/Select box enter as sufficient amount of text to locate the App Registration created earlier (the one that represents the CI Sync Agent Connector for Azure), then the Select button (to select the App Registration) and finally the Next button.
-
On the Review + assign tab, click the Review + assign button.
You have now granted the App Registration object for CI Sync read permissions to an Azure Subscription which will allow you to use the CI Sync Web UI to schedule synchronization jobs using that same Azure Subscription as a synchronization source.
Task 2: Add Azure as a Source System using the CI Sync SaaS UI
-
Login to your CI Sync SaaS instance at https://YourCo.syncfish.app
-
In the CI Sync UI, navigate to Settings > Connections.
-
Find the “SaaS Agent” sub-heading under the Source Connections section. If you don’t see “SaaS Agent” it means your CI Sync instance hasn’t been configured for this feature. Please contact your Sync representative to discuss.
-
On the right hand side of the form, click the +Add button.
-
The New Connection form now appears. Use the Connection Type drop down list to select the source system you wish to add (in this case Microsoft Azure).
-
Update the fields using these instructions
-
Connection name
-
This is a friendly name that represents the source system connection.
-
The name you enter here will appear when you create a new sync job and are selecting from the available source system list.
-
Note: Syncfish recommend using a textual suffix on the connection name if for any reason you have setup multiple CI Sync Connections to Azure.
-
-
Alias: Please ignore this field (it is not used for the CI Sync Cloud Agent and is being deprecated).
-
Environments
-
Select from the available choices Production, Test, or Production/Test (the latter being both).
-
The selection you make for this field affects which source systems appear when you create a new sync job (i.e. when you are selecting the source system list based on the “Environment” you have chosen for the sync job). See this page for more details on creating a CI Sync job: Run a Small Initial Sync Job (then run more).
-
FYI: CI Sync allows a source system to be both Production/Test because CI Sync only reads from a source system (it doesn’t write to it). Destination systems can only be Test or Production (not both).
-
-
Directory (tenant) ID
-
Paste the Azure/Entra Directory (tenant) ID captured by your Azure Admin in Task 1 above.
-
-
Application (client) ID
-
Paste the App Registration Application (client) ID captured by your Azure Admin in Task 1 above.
-
-
Client Secret Value
-
Paste the Client Secret Value captured by your Azure Admin in Task 1 above.
-
-
Then click the Consent to update fields checkbox.
-
Finally click the Create connection button.
-
You will be returned to the main settings screen and your new source system connection will appear in the list as shown below.
Task 3: Check status of new Azure Source System connection
-
To check the status of the newly added Azure Source System connection click the green Check Status link. This will test whether your CI Sync Azure connection can successfully reach and authenticate to the Azure Entra ID defined in the connection itself.
-
If the connection is successful, you will see a green dot next to the source connection name.
-
To test again in the future, you can click the green Refresh Status button.
-
If the test is unsuccessful, you will see a red dot next to the source connection name and an error message underneath. If you need assistance resolving an error, please contact Syncfish support.
This means you are ready to run a sync job using the new source connection using these high-level instructions: Run a Small Initial Sync Job (then run more).
Task 4: Perform Updates in ServiceNow (if required)
Guidance Note
Syncfish recommend the person setting up the source system described in this guide discusses this particular task with their ServiceNow system administrator.
A ServiceNow administrator will need to perform these steps.
Syncfish recommend following these instructions in your non-production ServiceNow environment for testing synchronization jobs.
Only once exhaustive testing in non-production is complete, repeat this process in your ServiceNow production environment.
In this section your ServiceNow SME will assess various updates to ServiceNow to support this CI Sync connector:
-
Task 4a: Assess if the CMDB CI Class Models plug-in is required
-
Task 4b: Assess if additional permissions are required
-
Task 4c: (Optional though recommended) Assess your ServiceNow CI forms and update to include additional Related Lists
Task 4a: Assess if the CMDB CI Class Models plug-in is required
Context
A number of record sets (asset types/resource types) available to sync using the Azure Connector rely upon CMDB CI Classes that are only available via the CMDB CI Class Models plug-in.
You therefore need to install the CMDB CI Class Models plug-in to your ServiceNow instance.
If you already have the plug-in you may want to upgrade it to the latest version (as ServiceNow occasionally updates the plug-in to include extra CI Classes/tables).
|
Source System |
Specific Record Sets that require the CMDB CI Class Models plug-in |
|
Azure |
|
Instructions
Follow these steps to add this plug-in (and similar steps to locate it and upgrade it if required):
-
Assess the use/inclusion of this plug-in within your ServiceNow (ensure you are comfortable installing this plug-in).
-
Search for Plugins via the ServiceNow navigation menu.
-
Locate the CMDB CI Class Models plug-in.
-
Click Add -> Install and follow the instructions provided.
Task 4b: Assess if additional permissions are required
Use Case #1 - If you are planning to use CI Sync to write Azure Tags to the CMDB
Context
CI Sync writes Azure Tags to the cmdb_key_value table in ServiceNow.
The standard/out-of-the-box roles provided by ServiceNow (and recommended by Syncfish during S3 - Configure ServiceNow for CI Sync) do not provide access to the cmdb_key_value table. Therefore, the CI Sync Integration User account created during S3 - Configure ServiceNow for CI Sync requires additional permissions to write to the cmdb_key_value table.
Syncfish provides a ServiceNow updateset to prepare your ServiceNow instance for CI Sync. The updateset does the following:
-
Creates a read/write ACL on the cmdb_key_value table.
-
Applies the ACL on the cmdb_key_value table and assigns the ACL to the ServiceNow role called “Asset” (which is one of the roles granted to the CI Sync Integration Account created during S3 - Configure ServiceNow for CI Sync).
Instructions
Follow these steps to apply the updateset provided by Syncfish:
-
Download the update set from Syncfish at the below URL:
https://downloads.syncfish.app/servicenow/cisync-cmdb-key-value.xml -
Login to your ServiceNow instance with Admin permissions.
-
Open a browser and navigate to your ServiceNow instance
-
In the left nav menu search for “Retrieved Update Sets” and click to open
-
Right click on the column heading row and select “Import XML”
-
Select “Choose File”
-
Select the downloaded file “cisync-cmdb-key-value.xml”
-
Click to open the Update Set
-
Click “Preview Update Set”
-
If there are no preview errors, Click “Close”.
-
Click “Commit Update Set”.
-
Your ServiceNow instance is now ready to receive Tag data from Azure via sync jobs from CI Sync.
Use Case #2 - If you are planning to use CI Sync to create Application Service Mapping relationships in ServiceNow
Context
CI Sync needs additional permissions to create/update Application Service relationships in ServiceNow.
The ServiceNow out-of-the-box role described in the instructions below provides the required permissions and therefore this role needs to be applied to your CI Sync Integration User if you intended to use CI Sync’s Application Service Mapping feature.
Please contact Syncfish if a custom role is preferred over this out-of-the-box role.
Instructions
-
Navigate to the cisync user account (e.g. “cisync.integration” or the name you used earlier in this page).
-
Select the Roles tab and click the Edit… button
-
Filter/Select the roles below and click the Save button
-
app_service_admin
-
-
Click Save. Then use the “Roles” tab to check the above role has been applied.
Task 4c: (Optional though recommended) Assess your ServiceNow CI forms and update to include additional Related Lists
Context
CI Sync populates various child tables (related lists) associated with parent CIs. The following table shows the Related Lists (per CI Class) populated by the CI Sync Azure Connector.
|
CI Class |
Related List
|
Related List Name as it appears in the ServiceNow UI when adding it to a CI Form |
|
Subscription |
Key Values (Tags) |
Key Value → Configuration Item |
|
Resource Group |
Key Values (Tags) |
Key Value → Configuration Item |
|
Cosmosdb (Mongodb) |
Key Values (Tags) |
Key Value → Configuration Item |
|
DNS Zone |
Key Values (Tags) |
Key Value → Configuration Item |
|
Frontdoor |
Key Values (Tags) |
Key Value → Configuration Item |
|
Load Balancer |
Key Values (Tags) |
Key Value → Configuration Item |
|
NAT Gateway |
Key Values (Tags) |
Key Value → Configuration Item |
|
Network Security Group |
Key Values (Tags) |
Key Value → Configuration Item |
|
Private DNS Zone |
Key Values (Tags) |
Key Value → Configuration Item |
|
Private Endpoint |
Key Values (Tags) |
Key Value → Configuration Item |
|
Public IP Address |
Key Values (Tags) |
Key Value → Configuration Item |
|
Virtual Network |
Key Values (Tags) |
Key Value → Configuration Item |
|
Virtual Machine |
Key Values (Tags) |
Key Value → Configuration Item |
|
Virtual Machine Scale Set |
Key Values (Tags) |
Key Value → Configuration Item |
|
Storage Account |
Key Values (Tags) |
Key Value → Configuration Item |
|
Application Service |
Key Values (Tags) |
Key Value → Configuration Item |
|
Application Service Plan |
Key Values (Tags) |
Key Value → Configuration Item |
|
CDN Profile |
Key Values (Tags) |
Key Value → Configuration Item |
|
Kubernetes Service |
Key Values (Tags) |
Key Value → Configuration Item |
|
Logic App |
Key Values (Tags) |
Key Value → Configuration Item |
|
Event Hub |
Key Values (Tags) |
Key Value → Configuration Item |
|
Application Gateway |
Key Values (Tags) |
Key Value → Configuration Item |
|
Key Vault |
Key Values (Tags) |
Key Value → Configuration Item |
|
API Management Service |
Key Values (Tags) |
Key Value → Configuration Item |
CI Sync populates a number of additional relationships/related record sets for Azure. Please contact Syncfish support for further information on exposing these additional records in the ServiceNow UI.
-
A-Records (as related records of DNS Records)
-
CNAMEs (as related records of DNS Zones)
-
Frontends/Cloud Load Balancer IP Addresses (as related records of Frontdoors)
-
A-Records (as related records of Private DNS Records)
-
CNAMEs (as related records of Private DNS Records)
-
Subnets (as related records of Virtual Networks)
-
Subnets (as related records of Virtual Machines)
-
Storage Account Endpoints (as related records of Storage Accounts)
-
CDN Endpoints (as related records of CDN Profiles)
-
Backend IP Addresses (as related records of Application Gateways)
-
Routing Rules (as related records of Application Gateways)
Instructions
Below are the steps to modify a ServiceNow CI form to expose a new Related List.
-
Login to your ServiceNow instance with Admin permissions.
-
Navigate to any CI in the relevant CI Class (i.e. one/all of those listed in the table in the Context section above). For example, navigate to a Windows Server CI).
-
Right-click in the heading area of the form, then click Configure and then Related Lists from the sub-menus.
-
Identify the Related List you want to expose on the CI form using the table in the Context section above.
-
Find the Related List in the left hand column which lists all Available Related Lists.
-
Click the Related List and then click add (the selection arrow) to move the item to the Selected column and then click Save.
-
Repeat for each additional CI Class listed in the table in the Context section above.