以下の解決策を参照してください。
Explanation:
Azure Automation には、Azure PowerShell モジュール バージョン 0.8.6 が付属しています。このモジュールでは、OrgId(Azure Active Directory ユーザー)資格情報ベースの認証を使用して、Azure に非対話型で認証する機能が導入されました。以下の手順で、この認証タイプを使用して Azure Automation が Azure と通信するように設定できます。
ステップ 1: 管理する Azure サブスクリプションに関連付けられている Azure Active Directory を見つけます。
1. Azure Automation を使用して管理する Azure サブスクリプションのサービス管理者として Azure ポータルにログインします。このユーザーは、この Azure サブスクリプションへのアクセス権を持つ任意のユーザーとして Azure ポータルにログインし、「設定」>「管理者」の順にクリックすることで見つけることができます。

2. Note the name of the directory associated with the Azure subscription you want to manage. You can find this directory by clicking Settings, then Subscriptions.

Step 2: Create an Azure Active Directory user in the directory associated with the Azure subscription to manage:
You can skip this step if you already have an Azure Active Directory user in this directory. and plan to use this OrgId to manage Azure.
1. In the Azure portal click on Active Directory service.

2. Click the directory name that is associated with this Azure subscription.
3. Click on the Users tab and then click the Add User button.
4. For type of user, select "New user in yourorganization." Enter a username for the user to create.
5. Fill out the user's profile. For role, pick "User." Don't enable multi-factor authentication. Multi-factor accounts cannot be used with Azure Automation.
6. Click Create.
7. Jot down the full username (including part after @ symbol) and temporary password.
Step 3: Allow this Azure Active Directory user to manage this Azure subscription.
1. Click on Settings (bottom Azure tab under StorSimple)

2. Click Administrators
3. Click the Add button. Type the full user name (including part after @ symbol) of the Azure Active Directory user you want to set up to manage Azure. For subscriptions, choose the Azure subscriptions you want this user to be able to manage. Click the check mark.
Step 4: ConfigureAzure Automation to use this Azure Active Directory user to manage this Azure subscription Create an Azure Automation credential asset containing the username and password of the Azure Active Directory user that you have just created. You can create a credential asset in Azure Automation by clicking into an Automation Account and then clicking the Assets tab, then the Add Setting button.

Note: Once you have set up the Azure Active Directory credential in Azure and Azure Automation, you can now manage Azure from Azure Automation runbooks using this credential.
References:
https://azure.microsoft.com/sv-se/blog/azure-automation-authenticating-to-azure-using-azure-active-directory/