question

IMK-3051 avatar image
0 Votes"
IMK-3051 asked soumi-MSFT answered

Securing Azure virtual server w/ Intune and CA

Hi

I have a virtual server resource (Linux server) in Azure, is it possible to secure access to this Azure recourse using Intune's Conditional Access? We have M365B licenses.

If this is not possible, is there any other way to secure Azure virtual server resource in a similar way so that access to the virtual server resource would be possible only from chosen devices (AAD Joined devices for example) without having to use VPN or so that secure access is always on for these chosen devices?

azure-active-directoryazure-virtual-machines
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can authenticate to the Linux server with a user in AAD. For that you need to install a extension for that.

But i think Intune integration is not possible.

0 Votes 0 ·
shashishailaj avatar image
0 Votes"
shashishailaj answered shashishailaj edited

Hello IMK-3051,
No As my colleague Jagadeesh mentioned above , Intune client support for linux is not available as yet and hence you will not be able to use conditional access policy to restrict it to specific machines using intune. In case you would like to requests this, You can up-vote a similar feature request on the Intune uservoice forums which product group monitors regularly.

As far as I understand you would like to restrict access to this VMs from Azure AD Joined devices only. You could use device auth to logon once you have joined the linux machine to the Azure Active Directory directly using Azure AD login VM extension. The extension requires the linux VM to have around 1GB of memory else it will fail to install hence the Linux VMs have to be chosen carefully for this. The users can then use Azure AD logon to login to the VM once Extension is configured properly. This is one way that will work for you and you may not need to use any VPN connectivity in this case.

Conditional access may not be possible at this point . the above feature is still in preview and have its restrictions and we would recommend you to test it in non-production workloads.

Once you go through the linux AAD logon article . You may find that the example provided is for user based logon however you can try using the group based restriction so that only the users who are part of a group can have access. Nested group concept does not work properly in all scenarios in Azure AD yet hence every user would need to be made direct member of this group who can logon to the Linux virtual machine. You can go through the section for configuring role assignments for the linux VM and you can use the group instead of the user. So you can create a group in Azure AD and find the objectID of the group from the portal as shown in Screenshot below.

2643-group-properties-settings.png

 az role assignment create --role "Virtual Machine Administrator Login" --assignee $group --scope $vm

Here the $group variable would store the object id of the group on AD which you have found above. Once you have provided the access you should get it working.

I have provided relevant links so that its easier to follow the instructions. I would suggest you to go through the links and test this solution in a lab before implementing it in non-critical workloads as the feature is still in preview and subject to change.


Hope the details helped. In case the information provided helped , please do mark it as answer so that it can be useful to others searching for similar queries. In case you have any further queries , feel free to let us know and we will try to help you with the same.

Thank you.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered

@IMK-3051, The only available way is to implement AAD login for Azure Linux VMs. You can read more about that here. Once you enable the VM extension on the Azure Linux VM (following the steps mentioned in that article), you would be able to implement MFA for users using Conditional Access Policies while they login to the Azure Linux VM.

Through Intune you cannot manage the Azure Linux VMs yet.

Hope this helps. If the above response helped in answering your query, please do mark the response as Answer, so that it helps others too.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.