Forum Discussion
Is it possible for a Teams app to automatically create an Azure Key Vault during installation?
@muradqr5h - Thanks for bringing this issue to our attention.
You cannot automatically create an Azure Key Vault in a user’s tenant during Teams app installation. Teams app install does not grant your app the permissions needed to provision Azure resources in the customer’s subscription or tenant.
Ref Docs:
1.Azure Quickstart - Set and retrieve a secret from Key Vault using Azure portal | Microsoft Learn
2.Assign an Azure Key Vault access policy (CLI) | Microsoft Learn
3.Grant permission to applications to access an Azure key vault using Azure RBAC | Microsoft Learn
Nivedipa-MSFT - Thanks for your answer, you really saved my life.
So, just to confirm, there’s no way to automatically create an Azure Key Vault on the user’s tenant without some manual action from the user?
p/s: in case the admin has already consented to create the Azure Key Vault