There's too many ways to define variables in Azure Pipelines. I'll briefly explain why you should keep variables close to your code in YAML unless they're secrets, in which case the Library Groups and Key Vaults are better.
===== PRO TIP =====
Hey, where's my variable?
Use `lib-` to indicate a value comes from a library group and `kv-` to indicate it's in Key Vault. Makes debugging much easier 👌
===== CONTENTS =====
00:00 Variables in YAML
01:00 Variables in UI
01:50 Using Library Group, Prefixes
02:23 Key Vault Integration
02:35 Understanding Secrets
03:00 Secrets must be mapped explicitly into Environments
03:26 Last Tip: mask IDs with library groups
Ещё видео!