<h2>Set up access to Microsoft Azure billing and usage data</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Set up access to Microsoft Azure billing and usage data" /><meta name="abstract" content="Give Cloud Cost Management access to Microsoft Azure billing and usage data by creating a Microsoft Azure service principal and securely storing your Microsoft Azure credentials in the Now Platform credentials store. You must create a service account that accepts billing data for Cloud Cost Management." /><meta name="description" content="Give Cloud Cost Management access to Microsoft Azure billing and usage data by creating a Microsoft Azure service principal and securely storing your Microsoft Azure credentials in the Now Platform credentials store. You must create a service account that accepts billing data for Cloud Cost Management." /><meta name="DC.relation" scheme="URI" content="../product/credentials/reference/r_CloudManagementCredentialsForm.dita/r_CloudManagementCredentialsForm.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2023-08-03" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="azure-ea-creds-config-cloudin" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Set up access to Microsoft Azure billing and usage data</title></head><body id="azure-ea-creds-config-cloudin"> <h1 class="title topictitle1" id="ariaid-title1"><span class="ph" id="title-azure-config-ci-creds">Set up access to <span class="ph">Microsoft Azure</span> billing and usage data</span></h1> <div class="body taskbody"><p class="shortdesc">Give <span class="ph">Cloud Cost Management</span> access to <span class="ph">Microsoft Azure</span> billing and usage data by creating a <span class="ph">Microsoft Azure</span> service principal and securely storing your <span class="ph">Microsoft Azure</span> credentials in the <span class="ph">Now Platform</span> credentials store. You must create a service account that accepts billing data for <span class="ph">Cloud Cost Management</span>.</p> <div class="section prereq p"> <p class="p">The <span class="ph">MID Server</span> must have access to <a class="xref" href="https://azure.microsoft.com/en-us/services/cost-management/" target="_blank" rel="noopener noreferrer"><span class="ph">Microsoft</span> Cost Management</a>.</p> <p class="p">Roles required:</p> <p class="p"><span class="ph">Microsoft Azure</span>: You require EA level access, at least Enterprise administrator (read only) / Partner. For more information about the roles, see <a class="xref" href="https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles" target="_blank" rel="noopener noreferrer">Managing <span class="ph">Azure</span> Enterprise Agreement roles</a>.</p> <p class="p">The following permissions are required:</p> <ul class="ul collpase-folded" id="azure-ea-creds-config-cloudin__ul_sv4_mgw_5lb"><li class="li">Microsoft.Compute/virtualMachines/instanceView/read</li><li class="li">Microsoft.Compute/virtualMachines/deallocate/action</li><li class="li">Microsoft.Compute/virtualMachines/start/action</li><li class="li">Microsoft.Compute/virtualMachines/delete</li><li class="li">Microsoft.Compute/virtualMachines/write</li><li class="li">Microsoft.Compute/virtualMachines/read</li><li class="li">Microsoft.Compute/locations/usages/read</li><li class="li">Microsoft.Advisor/recommendations/read</li><li class="li">Microsoft.Advisor/generateRecommendations/read</li><li class="li">Microsoft.Advisor/generateRecommendations/action</li><li class="li">Microsoft.Compute/disks/delete</li><li class="li">Microsoft.Compute/disks/read</li><li class="li">Microsoft.CostManagement/forecast/read</li><li class="li">Microsoft.Compute/locations/diskOperations/read</li><li class="li">Microsoft.Insights/Metrics/Read</li><li class="li">Microsoft.Compute/locations/operations/read</li></ul> <p class="p">Role required in <span class="ph">Cloud Cost Management</span>: sn_clin_core.insights_admin or admin</p> </div> <div class="section context" id="azure-ea-creds-config-cloudin__context_nnm_vtq_zrb"> <div class="note important"><span class="importanttitle">Important:</span> <span class="ph">This information applies to both the <span class="ph">Cloud Cost Management</span> and <span class="ph">Cloud Insights Billing</span> apps. All references to <span class="ph">Cloud Cost Management</span> also apply to <span class="ph">Cloud Insights Billing</span>.</span></div> </div> <ol class="ol steps" id="azure-ea-creds-config-cloudin__steps_fsy_zfd_yy"><li class="li step stepexpand"> <span class="ph cmd">Create a <span class="ph">Microsoft Azure</span> service principal and open the text file that you created during the procedure.</span> <div class="itemgroup info">For instructions, see <a class="xref" href="../product/cloud-management-v2-setup/task/azure-create-serv-princ-cloud-mgt.dita/azure-create-serv-princ-cloud-mgt.html" target="_blank" rel="noopener noreferrer">Create a Microsoft Azure service principal</a>. <p class="p">To access resource and billing data securely on your <span class="ph">Microsoft Azure</span> account, the <span class="ph">Discovery</span> process must present appropriate <span class="ph">Microsoft Azure</span> account credentials. You create a special programmatic account — a service principal — to generate the required credentials.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Add the <span class="ph uicontrol">Enrollment Reader</span> role to the <span class="ph">Microsoft Azure</span> service principal.</span> <div class="itemgroup info">For details, see the documentation on assigning roles to EA service principal names on <a class="xref" href="https://docs.microsoft.com/" target="_blank" rel="noopener noreferrer"><span class="ph">Microsoft</span> Learn</a>.</div> </li><li class="li step stepexpand"> <span class="ph cmd">In <span class="ph">Cloud Cost Management</span>, navigate to <span class="ph menucascade"><span class="ph uicontrol">Cloud Cost Management Workspace</span> > <span class="ph uicontrol">Operations</span> > <span class="ph uicontrol">Administration</span> > <span class="ph uicontrol">Credentials</span> > <span class="ph uicontrol"></span></span>.</span> <div class="itemgroup info">In the following steps, you securely store your <span class="ph">Microsoft Azure</span> credentials in the <span class="ph">Now Platform</span> credentials store.</div> </li><li class="li step stepexpand"> <span class="ph cmd">On the Cloud API credentials page, select <span class="ph uicontrol">Azure service principal</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="azure-ea-creds-config-cloudin__table_m3f_bqm_wcb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Azure Service Principal form</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d443774e300">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d443774e303">Value</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Name of the service principal to register with the instance. For example, CloudInsights-SP.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Tenant ID</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Unique identifier or alias for the tenant.<p class="p">Copy and paste the Tenant ID value from the <span class="ph filepath">Azure-Credentials.txt</span> file.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Client ID</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Unique identifier of an application created in Active Directory.<p class="p">Copy and paste the Tenant ID value from the <span class="ph filepath">Azure-Credentials.txt</span> file.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Authentication Method</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Select <span class="ph uicontrol">Client Secret</span>.<p class="p">The <span class="ph uicontrol">Secret key</span> field appears when you select <span class="ph uicontrol">Client Secret</span>.</p> <div class="note"><span class="notetitle">Note:</span> <span class="ph uicontrol">Client Assertion</span> isn’t supported.</div> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Secret key</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Azure client secret key.<p class="p">Copy and paste the Tenant ID value from the <span class="ph filepath">Azure-Credentials.txt</span> file.</p> </td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e300 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d443774e303 ">Option to enable the credentials for use.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li></ol> </div> <div class="related-links"> <div class="linklist relinfo"><strong>Related topics</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="../product/credentials/reference/r_CloudManagementCredentialsForm.dita/r_CloudManagementCredentialsForm.html" target="_blank" rel="noopener noreferrer">Cloud credentials</a></li></ul></div> </div> </body></html></div>