You can apply conditional access that Block or Allow access By location
Also, you can apply various conditions to allow or deny access.
Hope this helps!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello, there is one account that is assigned an Exchange Online license and which only serves to send reports from scripts that are located in Automation Accounts. The script uses an Automation Credential, which specifies the login and password.
Now I am seeing attempts to guess a password from a third-party IP address. I would like to prevent the user from logging in through the web interface or from non-Azure Automation addresses.
Thank you.
You can apply conditional access that Block or Allow access By location
Also, you can apply various conditions to allow or deny access.
Hope this helps!
@Mountain Pond the response above provided by @Carlos Solis Salazar is the most prudent course of action.
The only other option I can think of is using system-assigned managed identity with your automation account. You can then configure that account to connect to Exchange Online if need be. Since it's a managed account, no one (or thing) will be logging in because the identity is tied to that resource.