Hello @Lakshan Sameera ,
Thank you for your question.
You can resolve this issue by two options. First is creating a custom role. Kindly follow this documentation to create a custom role with Microsoft.Authorization/roleAssignments/write permission and assign this role to the application. This is the best approach as the application is given the least privileged permissions needed.
The other way would be to leverage the built in roles https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor. Assign the Application with Owner role. However, this is not a best practice as this is not the least privileged approach.