Hi @Prachi ,
Thank you for reaching out to Microsoft Q&A for this question.
Based on my understanding, you are trying to link 1 Log Analytics Workspace to 2 different Azure Automation Account. This cannot be done.
An Azure Automation Account can only be linked to a Log Analytics Workspace, which is not linked to any other Automation Account.
Also, only certain regions are supported to link Automation Account and Log Analytics Workspace together. Please refer to this link for more details -
Supported regions for linked Log Analytics workspace
Please let me know if you have any questions. If your question was related to something else, can you please clarify it with additional context/example, to help me understand it better.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.