Using variables and tasks in Azure DevOps

Anyone knows how to use variables & tasks in Azure DevOps?
I would like to add Pipeline Release name and number into deployments/pods labels.

Have you looked at this?

Thanks for the reply. That looks like what I need, the page has a link to this https://docs.microsoft.com/en-us/azure/devops/pipelines/release/variables?view=azure-devops&tabs=batch
I believe that it will be this: “Release.ReleaseName” that I will need to use. The problem is the implementation (perhaps a lot of steps?), through azure devops and into kubernetes. It is taking me a long time to get there. Though it is reassuring to have received your reply.