Hi @Timothy Chin,
Welcome to Microsoft Q&A Forum, thank you for posting your query here!
- Please enable the managed identity, once you have enabled the managed identity, please select permissions below highlighted
- Click on Add role Assignment and add
- Scope: Subscription Subscription: Select Y Subscription Role: Owner or Contributor depends upon your script
let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members.