But surely the given answers are correct then. The guide outlines these steps. You deploy the template and then it prompts your for the RG and location after you hit save.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/quickstart-create-templates-use-the-portal
From the Azure portal menu, in the search box, type deploy, and then select Deploy a custom template.
Azure Resource Manager templates library
Select Build your own template in the editor.
Select Load file, and then follow the instructions to load template.json you downloaded in the last section.
Make the following three changes to the template
Select Save.
Enter the following values:
TABLE 2
Name Value
Resource group Select the resource group name you created in the last section.
Region Select a location for the resource group. For example, Central US.
Location Select a location for the storage account. For example, Central US.