microsoft / coe-starter-kit

Other
754 stars 225 forks source link

[CoE Starter Kit - BUG] Getting error in Admin | Audit Logs | Sync Audit Logs (V2) flow - RetryLogic-ListAuditLogContent' #8984

Closed bhupendra14 closed 1 month ago

bhupendra14 commented 1 month ago

Does this bug already exist in our backlog?

Describe the issue

I have done CoE upgrade for Aug month and since that time I'm getting this error in " Admin | Audit Logs | Sync Audit Logs (V2) " flow.

InvalidTemplate. Unable to process template language expressions for action 'RetryLogic-ListAuditLogContent' at line '1' and column '12249': 'The template language expression 'equals(outputs('ListAuditLogContent')['statusCode'], 200)' cannot be evaluated because property 'statusCode' cannot be selected. Please see https://aka.ms/logicexpressions for usage details.'.

image

Expected Behavior

No response

What solution are you experiencing the issue with?

Audit Log

What solution version are you using?

4.37

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

Steps To Reproduce

No response

Anything else?

No response

Jenefer-Monroe commented 1 month ago

Hello are you using plain text or Azure Key Vault for your secret? Can you please go validate that the secret is still valid and that you have entered it in the environment variables? Also perhaps turn the flow off and back on to ensure it gets any env var changes.

bhupendra14 commented 1 month ago

@Jenefer-Monroe Hi, I have checked secret is still valid, also tried to turn off and turn on the flow. No success yet.

Jenefer-Monroe commented 1 month ago

Which secret type are you using?

bhupendra14 commented 1 month ago

@Jenefer-Monroe plain text, also we haven't created any Key Vault.

Jenefer-Monroe commented 1 month ago
  1. Go to your app registration and validate that you have the correct API permissions. Note that it requires application permissions not delegated. image

  2. Please be sure that you have entered the secret itself and not the secret id (the GUID). It’s a longer string with a larger character set than a GUID. This one has a tilda for example. image

  3. Validate that you have entered all the env variables image

  4. Turn the flows off and back on. Sometimes env vars get stuck in them with old values

  5. Validate that you have started the subscription

Jenefer-Monroe commented 1 month ago

closing out as no further action from starter kit team