Skip to content

Commit 3eea4c3

Browse files
authored
Merge pull request #94753 from secherka/patch-15
Added Missing Application troubleshooting section
2 parents f4d1b46 + 176150e commit 3eea4c3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

articles/active-directory/devices/howto-vm-sign-in-azure-ad-linux.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,27 @@ You can enforce Conditional Access policies such as require multi-factor authent
248248
> [!NOTE]
249249
> Conditional Access policy enforcement requiring device compliance or Hybrid Azure AD join on the client device running SSH client only works with Az CLI running on Windows and macOS. It is not supported when using Az CLI on Linux or Azure Cloud Shell.
250250
251+
### Missing application
252+
253+
If the Azure Linux VM Sign-In application is missing from Conditional Access, use the following steps to remediate the issue:
254+
255+
1. Check to make sure the application isn't in the tenant by:
256+
1. Sign in to the **Azure portal**.
257+
1. Browse to **Azure Active Directory** > **Enterprise applications**
258+
1. Remove the filters to see all applications, and search for "VM". If you don't see Azure Linux VM Sign-In as a result, the service principal is missing from the tenant.
259+
260+
Another way to verify it is via Graph PowerShell:
261+
262+
1. [Install the Graph PowerShell SDK](/powershell/microsoftgraph/installation) if you haven't already done so.
263+
1. `Connect-MgGraph -Scopes "ServicePrincipalEndpoint.ReadWrite.All","Application.ReadWrite.All"`
264+
1. Sign-in with a Global Admin account
265+
1. Consent to permission prompt
266+
1. `Get-MgServicePrincipal -ConsistencyLevel eventual -Search '"DisplayName:Azure Linux VM Sign-In"'`
267+
1. If this command results in no output and returns you to the PowerShell prompt, you can create the Service Principal with the following Graph PowerShell command:
268+
1. `New-MgServicePrincipal -AppId ce6ff14a-7fdc-4685-bbe0-f6afdfcfa8e0`
269+
1. Successful output will show that the AppID and the Application Name Azure Linux VM Sign-In was created.
270+
1. Sign out of Graph PowerShell when complete with the following command: `Disconnect-MgGraph`
271+
251272
## Login using Azure AD user account to SSH into the Linux VM
252273

253274
### Using Az CLI

0 commit comments

Comments
 (0)