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] New Environment Variable Errors #9128

Open
1 task done
kholley01 opened this issue Oct 15, 2024 · 7 comments
Open
1 task done

[CoE Starter Kit - QUESTION] New Environment Variable Errors #9128

kholley01 opened this issue Oct 15, 2024 · 7 comments
Assignees
Labels
coe-starter-kit CoE Starter Kit issues question Further information is requested

Comments

@kholley01
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 am trying to create a new environment variable and I am getting the following two errors:

"This variable didn't save properly. User is not authorized to read secrets from '/subscriptions/13eba60d-16d5-4b55-9f9d-eee2547deae5/resourceGroups/AzureFiles-RG/providers/Microsoft.KeyVault/vaults/PowerPlatformKeyVault3/secrets/PowerPlatformSecret3' resource."

"This variable didn't save properly. Cannot complete the creation of EnvironmentVariableDefinition because it violates a database constraint. The violation happens on the key schemaname: cre7e_PowerPlatformKeySecret. Please delete the existing record or use update."

I have added myself as a Key Vault Secrets User in the Subscription, Resource Group, Key Vault, and the Secret itself and I am getting either one of these errors. When I change the "schemaname", I then get the "not authorized to read secrets" error. Not sure where to go for both errors. Any help would be appreciated.

Thank you!!
Image
Image

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.43

What app or flow are you having the issue with?

New Environment Vairable

What method are you using to get inventory and telemetry?

Cloud flows

@kholley01 kholley01 added coe-starter-kit CoE Starter Kit issues question Further information is requested labels Oct 15, 2024
@pete-msft
Copy link

@kholley01 So are you trying to set the value for CoE Kit environment variables Audit Logs - Client Azure Secret and/or Command Center - Client Azure Secret?

Image

If yes then you do not need to create new environment variable for CoE but configure the value for these existing environment variables available in CoE solution. As you are configuring secret you need to do this in Default solution of the environment

Image

@Jenefer-Monroe Jenefer-Monroe self-assigned this Oct 16, 2024
@kholley01
Copy link
Author

kholley01 commented Oct 16, 2024 via email

@Jenefer-Monroe
Copy link
Collaborator

Validate that the azure key vault permissions are correct. User needs to be in Key Vault Secret User role explicitly to read, and in the Key Vault Contributor Role to update. And your access needs to be via RBAC
For more information Use environment variables for Azure Key Vault secrets

  1. RBAC
    Image
  2. Specific Roles
    image

@kholley01
Copy link
Author

Verified that roles and RBAC is correct and still receiving the read secrets error message.

@Jenefer-Monroe
Copy link
Collaborator

Did you validate this step from the document: Use environment variables for Azure Key Vault secrets
Image

@kholley01
Copy link
Author

Confirmed that step was completedImage
.

@Jenefer-Monroe
Copy link
Collaborator

ok unfortunately you will need to reach out to product support. This is product UX we are looking at and those are the troubleshooting steps I know.
Sorry I cant be of more assistance.

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: No status
Development

No branches or pull requests

3 participants