@Anonymous Welcome to Microsoft Q & A Community Forum. As Azure Analysis Services doesn't support managed identities. I would suggest you take advantage of shared resources within automation account like credentials and certificates to connect with Azure Analysis Services.
Store the service principle as credential and connect to azure analysis service using it. On how to create credential asset and use it in runbook, you can refer to this document. For using certificate within runbook, you can refer this document.
If this answers your query, do click "Accept as Answer" and click "Yes" for the same, which might be beneficial to other community members reading this thread. If you need further assistance, please do provide additional information with the issue you are facing.