Hi @sns ,
I assume by "not with regular key vault" you mean not in the Azure portal in the vault itself, but please correct me if I'm wrong.
We have a guide that shows how to use an ARM template to create and set the secret using dynamic ID. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli#reference-secrets-with-dynamic-id
You would use the following:
az group create --name ExampleGroup --location centralus
az keyvault create \
--name ExampleVault \
--resource-group ExampleGroup \
--location centralus \
--enabled-for-template-deployment true
az keyvault secret set --vault-name ExampleVault --name "ExamplePassword" --value "hVFkk965BuUv"
Then you would reference them with the dynamic ID.