Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CoE Starter Kit - QUESTION] QUESTION audit flow run fails #9336

Closed
1 task done
AlainCote opened this issue Nov 27, 2024 · 15 comments
Closed
1 task done

[CoE Starter Kit - QUESTION] QUESTION audit flow run fails #9336

AlainCote opened this issue Nov 27, 2024 · 15 comments
Assignees
Labels
coe-starter-kit CoE Starter Kit issues question Further information is requested

Comments

@AlainCote
Copy link

Does this question already exist in our backlog?

  • I have checked and confirm this is a new question.

What is your question?

I have a similar error to this closed case but the error i am getting in the Retry logic list audit log content is different
[CoE Starter Kit - QUESTION] Sync Audit Logs V2 fails to run with error : Get_Azure_Secret #7250
Closed

The error code i am getting looks like a expression not being resolve or something. I am using plain text variable not they azure key vault, so the fisrt error i understand it is not related to the faillure of the flow.

Image

What solution are you experiencing the issue with?

Core

What solution version are you using?

november 2024

What app or flow are you having the issue with?

Admin | Audit Logs | Sync Audit Logs (V2)

What method are you using to get inventory and telemetry?

Cloud flows

@AlainCote AlainCote added coe-starter-kit CoE Starter Kit issues question Further information is requested labels Nov 27, 2024
@Jenefer-Monroe
Copy link
Collaborator

Which api are you using for the audit log?

Have you turned on the audit logs for the tenant? Before you set up the audit log flows

@AlainCote
Copy link
Author

I am using the office 365 management API. I don't have the approriate right to validate if the audit log are turned on in the tenant but the global admin will verify this. But they are not suppose to be on by default ?

@Jenefer-Monroe
Copy link
Collaborator

No they are not on by default.
Here is the easiest way to turn them on: turn on auditing

@AlainCote
Copy link
Author

AlainCote commented Nov 28, 2024

Hi Jenefer,

I still have the same error code even with the audit log on. Image

Could it be related to a environment variable not configure ? According to the documentation, the only two variables i have to configure for this flow to run, is the one for the app Id and the secret. In the termintae action i have a 500 error message, am i missing a url somewhere ?

By the way, thanks for you help you are really super good (if no one told you before) !

@Jenefer-Monroe
Copy link
Collaborator

Let's check your env vars. For plain text password and O365 api they should look like this:

Image

And then lets check your app registration. Make sure you have application, not delegated, permissions
image

@AlainCote
Copy link
Author

AlainCote commented Dec 5, 2024

Sorry was busy for a while on something else. So the audit flow is running now, it was a temporary glitch i guess. I just restarter it and it work fine now. I have a last problem with the page app usage of the report, i dont see any lauch on the visual, should i open a new ticket for this or we can continue on this one.

Image

@AlainCote
Copy link
Author

Could my problem be link to the purview issue #9268 ?

@Jenefer-Monroe
Copy link
Collaborator

Is this flow turned on? Admin | Audit Logs | Update Data (V2)

Is data populating here?
Image

@AlainCote
Copy link
Author

Ok so the flow is working ok. But the view you are sharing seems to be block for me, do you need global admin to see this particular view ? Do you have any documentation regarding this particular view ?

@Jenefer-Monroe
Copy link
Collaborator

Jenefer-Monroe commented Dec 10, 2024

Which view do you mean? This one?
Image

That is the Power Platform Admin View app which is part of the CoE install.
Image

@AlainCote
Copy link
Author

AlainCote commented Dec 11, 2024

Wow ok never thought there was a app to look at the audit inside the core component module. i can see some activities but only from 1 user on one environment (model driven on teams). Can i look in Azute / Purview / compliance portal to see if thre i more activirties that is not recorded inside that app ?

Image

@Jenefer-Monroe
Copy link
Collaborator

There are not filters by user or envt in our audit log flows. So my guess is that you have something filtered in the PBI.
Can you please look to at the app I referenced to see if more complete data is there?

@AlainCote
Copy link
Author

No filter on the report but i can see the th flow Admin | Audit Logs | Update Data (V2) ran only once 4 days ago. What is it suppos to collect there is no description ? Anything i should look in history of the audit flow ?

Image

@Jenefer-Monroe
Copy link
Collaborator

This flow: Admin | Audit Logs | Update Data (V2)
runs once per audit log launch found, to update the app's last launch record

This flow: Admin | Audit Logs | Sync Audit Logs (V2)
should run hourly and collect the logs from that hour

Can you please validate that the second is running and passing hourly?
Please launch some canvas apps, and then wait to see if those launches get recorded.

@Jenefer-Monroe
Copy link
Collaborator

Closing out as no further action for starter kit team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coe-starter-kit CoE Starter Kit issues question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants