Creating kubernetes secrets using a Azure pipeline with data from Azure Key Vault Secrets

Yes I know how to create secret with kubectl, it’s basically what I want to do in an Azure task, but I don’t understand if that is possible and how as I am struggling :slightly_smiling_face:

The task I linked basically runs kubectl, so the rest of the command and arguments you simply fill as you would with kubectl.

If I try with create as comand it expects -f or -k and I can’t create the secret. if I understood I should pass the secret yaml file

If you want to pass a file you should use apply as the command

Yes that looks the only allowed method as it looks you can’t create secrets directly