bored-sunset-10957
12/18/2024, 1:49 PMazure-native:keyvault:Secret (SAMPLE-SECRET):
error: Authenticating using the Azure CLI is only supported as a User (not a Service Principal).
To authenticate to Azure using a Service Principal, you can use the separate 'Authenticate using a Service Principal'
now, the managed identity is technically a sort of service principal, however, we do not want to store specific credentials in environment variables or such -> hence the use of managed identity.
running ops in CLI directly on the keyvault works without any issues, therefore the problem is not related to any azure permissions being inprecise (or at least i would assume so).
Any suggestions on this by anyone? Thanks for the helpmelodic-tomato-39005
12/18/2024, 1:55 PMazure-native:useMsi
or ARM_USE_MSI
?
Oops, I’m just noticing that the docs here are not correct, “you don’t need to do anything else” is not true, you do need to set useMsi
.bored-sunset-10957
12/18/2024, 2:12 PMmelodic-tomato-39005
12/18/2024, 2:13 PMmelodic-tomato-39005
12/18/2024, 2:14 PMbored-sunset-10957
12/18/2024, 2:15 PMerror: keyvault.BaseClient#DeleteSecret: Failure responding to request: StatusCode=401 -- Original Error: autorest/azure: Service returned an error. Status=401 Code="Unauthorized" Message="AKV10022: Invalid audience. Expected cfa8b339-82a2-471a-a3c9-0fc0be7a4093, found: <https://management.azure.com/>."
melodic-tomato-39005
12/18/2024, 3:41 PM