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