For people who are looking for the same solution-
I was able to fulfil this requirement by following below document-
I got some issue as my account was Contributor and script in the document creating Identity for Azure Function with assigning Tag Creator and Reader role to the same.
So make sure your account have Owner rights on subscription, if not then once script completed successfully then ask Owner to add these 2 roles in Function's identity section.