Just check here. so many samples Azure provided. Many of them are about tag policy definitions. Simply modify them and pass in the parameters.