This VSTS / Azure DevOps extension can convert Azure Resource Manager (ARM) template ouput to variables that the Azure DevOps pipeline can use subsequently.
It can be installed in Azure DevOps from the Marketplace.
For usage details see the Marketplace page, or browse the source here.