Hi @Vinster ,
Question summary
Is there a way to block users from viewing resources in the Azure portal and only give them access to a particular VM?
Answer
There are two ways that I know of to achieve this.
1) You can use the setting, Restrict access to Azure AD administration portal to prevent standard users from viewing any Azure AD data in the administrative portal. That said, this setting does not restrict access to Azure AD data by using PowerShell or other clients such as Visual Studio.
2) You can use conditional access policies to restrict access to Azure Portal by blocking users, groups, or locations from the Microsoft Azure Management cloud app. This would also block access to the following services:
Azure portal
Azure Resource Manager provider
Classic deployment model APIs
Azure PowerShell
Azure CLI
Azure DevOps
Azure Data Factory portal
Azure Event Hubs
Azure Service Bus
Azure SQL Database
SQL Managed Instance
Azure Synapse
Visual Studio subscriptions administrator portal
Additional reading:
Conditional Access: Microsoft Azure Management
Default user permissions
Let me know if this helps.
-
If this answer was helpful to you, please remember to "mark as answer" so that others in the community with similar questions can more easily locate the solution.