This template use Custom Script extension to call a target URL and pass Azure subscription ID as parameter, in this way every time this template is deployed you will receive a notification with the target subscription’s ID.
Sample template at https://github.com/liarjo/CustomScriptExtensionCallBack