# get your objectid
OBJECT_ID=$(az ad signed-in-user show --query id -o tsv)
# Set permissions to your user
az keyvault set-policy --name $KEY_VAULT_NAME --object-id $OBJECT_ID --secret-permissions all
#create a secret
az keyvault secret set --vault-name $KEY_VAULT_NAME --name "my-secret-name" --value "my-value"