Add troubleshooting documentation for Audit Logs Office 365 Management API configuration errors#10678
Closed
Add troubleshooting documentation for Audit Logs Office 365 Management API configuration errors#10678
Conversation
… 365 Management API issues Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Co-authored-by: AmarSaiRam <220305901+AmarSaiRam@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix subscription flow for Office 365 Management API audit logs
Add troubleshooting documentation for Audit Logs Office 365 Management API configuration errors
Jan 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Admin | Audit Logs | Office 365 Management API Subscriptionflow fails with "Get_Azure_Secret - Value cannot be null" when environment variables are not configured. In managed solutions, these variables are read-only unless set during import or via the Setup Wizard.Changes
Documentation Structure
Resolution Path
Users need Azure AD app credentials (
admin_auditlogsclientid,admin_auditlogsclientsecretoradmin_auditlogsclientazuresecret,admin_TenantID). The Setup & Upgrade Wizard provides the correct configuration path for managed solutions where direct environment variable editing is locked.Key Clarifications
Total: 941 lines across 6 files
Original prompt
This section details on the original issue you should resolve
<issue_title>[CoE Starter Kit - BUG] Admin | Audit Logs | Office 365 Management API Subscription Flow Fails</issue_title>
<issue_description>### Does this bug already exist in our backlog?
Describe the issue
The Admin | Audit Logs | Office 365 Management API Subscription Flow Fails on Action 'Get_Azure_Secret' failed. Error occured while reading secret: Value cannot be null. Parameter name: input
Expected Behavior
Flow should complete successfully.
What solution are you experiencing the issue with?
Core
What solution version are you using?
4.50.6
What app or flow are you having the issue with?
Admin | Audit Logs | Office 365 Management API Subscription
What method are you using to get inventory and telemetry?
Cloud flows
Steps To Reproduce
Anything else?
No response</issue_description>
<agent_instructions>Analyze why the ‘Admin | Audit Logs | Office 365 Management API Subscription’ flow is failing with the ‘Get_Azure_Secret – value cannot be null’ error, and identify how to update the required environment variable secrets when the Current Value fields are locked in a managed solution; also provide troubleshooting steps to resolve the issue.</agent_instructions>
Comments on the Issue (you are @copilot in this section)
@harini-2-y Hi @david-haver02862 , The flow fails because the Office 365 Management API client secret is not configured, so the Get_Azure_Secret action receives a null value.Steps to Fix:
Create or use an Azure AD app:
Copy the Client ID and Tenant ID
Create a Client Secret
Configure these environment variables
admin_auditlogsclientid → Client ID
One of the following:
admin_auditlogsclientsecret → Client Secret
OR
admin_auditlogsclientazuresecret → Azure Key Vault secret reference
admin_TenantID → Tenant ID
Save the values and rerun the flow
Open Admin | Audit Logs | Office 365 Management API Subscription
Run the flow .</comment_new>
<comment_new>@harini-2-y
Hi @david-haver02862 ,
Thank you for your question. Please find the steps below to update the required values and clarify which information should be entered for the client secret.
How to update the values:
Go to the Power Platform Admin Center
Select your CoE – Governance environment
Open Solutions
Open Center of Excellence – Core Components
Select Environment variables
Open the required variable, enter the Current Value, and click Save
What to enter for admin_auditlogsclientsecret:
For admin_auditlogsclientsecret, please enter the Client Secret VALUE, not the secret name or ID.</comment_new>
<comment_new>@harini-2-y
Hi @david-haver02862 ,
Thank you for your patience.
In a managed CoE installation, environment variable values must be configured using the CoE Setup & Upgrade Wizard. Please follow the steps below to verify or configure the Audit Logs settings.
Step 1: Open the CoE Setup & Upgrade Wizard
Go to Solutions
Open Center of Excellence – Core Components
Launch the CoE Setup & Upgrade Wizard (model‑driven app)
Step 2: Configure Audit Logs settings
In the wizard, navigate to the Inventory / Audit Logs configuration section
Provide the following values when prompted:
Audit Logs – Client ID → Application (Client) ID
Audit Logs – Client Secret → Client Secret VALUE (not the secret name or ID)
Tenant ID → Azure Directory (Tenant) ID
These values correspond to the following environment variables:
admin_auditlogsclientid
admin_auditlogsclientsecret (or admin_auditlogsclientazuresecret)
admin_TenantID
Step 3: Save and complete the wizard
Click Save / Next to persist the values
Complete the wizard
Step 4: Verify and run the flow
Turn on (if not already enabled) the flow Admin | Audit Logs | Office 365 Management API Subscription
Run the flow to verify it completes successfully.
If you have already completed the CoE Setup Wizard and the environment variable values still appear read‑only, this indicates that the values were not initialized during the original installation. In a managed solution, such values cannot be edited afterward.
To resolve this, please:
Re‑import the Center of Excellence – Core Components solution
During the solution import, when prompted for environment variables, provide:
Client ID
Client Secret VALUE
Tenant ID
Complete the import
Rerun the CoE Setup & Upgrade Wizard for verification
Run the Admin | Audit Logs | Office 365 Management API Subscription flow again</comment_new>
<comment_new>@harini-2-y
Hi @david-haver02862,
Thank you for the clarification.
The CoE Starter Kit is installed as a managed solution.
If the Audit Logs enviro...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.