Skip to content

Commit 6628373

Browse files
authored
Merge branch 'main' into Branch-CI4011
2 parents 01493f5 + e59b8bd commit 6628373

8 files changed

Lines changed: 144 additions & 15 deletions

File tree

support/azure/virtual-machines/linux/linux-vm-sshconnectionissue-perms.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: SSH connection to Azure Linux VM fails due to permission and ownership issues
33
description: Resolves an issue in which the SSH service fails because the /var/empty/sshd, /var/lib/empty, or /var/run/sshd directory doesn't exist, or it isn't owned by the root user, or it's group-writable or world-writable.
4-
ms.date: 04/15/2024
5-
author: saimsh-msft
6-
ms.reviewer: divargas, adelgadohell
4+
ms.date: 03/13/2025
5+
author: pagienge
6+
ms.reviewer: divargas, adelgadohell, saimsh
77
ms.service: azure-virtual-machines
88
ms.custom: sap:Cannot connect to my VM, linux-related-content
99
ms.collection: linux
@@ -13,15 +13,13 @@ ms.collection: linux
1313

1414
**Applies to:** :heavy_check_mark: Linux VMs
1515

16-
[!INCLUDE [CentOS End Of Life](../../../includes/centos-end-of-life-note.md)]
17-
1816
This article provides solutions to an issue in which connecting to a Linux virtual machine (VM) via Secure Shell (SSH) fails because the _/var/empty/sshd_ directory in RHEL, the _/var/lib/empty_ directory in SUSE, or the _/var/run/sshd_ directory in Ubuntu, doesn't exist, or it isn't owned by the root user, or it's group-writable or world-writable.
1917

2018
## Symptoms
2119

2220
When you connect to a Linux virtual machine (VM) via SSH, the connection fails. You may receive the following error message about the affected directory, depending on your Linux distribution.
2321

24-
### [RHEL/CentOS](#tab/rhelsymp)
22+
### [RHEL](#tab/rhelsymp)
2523

2624
```bash
2725
sudo tail /var/log/messages
@@ -75,7 +73,7 @@ Here are two methods to repair the VM offline:
7573
2. Sign in to the VM by using a local administrative account and its corresponding credential or password.
7674
3. Run the following commands to resolve the permission and ownership issue:
7775

78-
### [RHEL/CentOS](#tab/rhelts1)
76+
### [RHEL](#tab/rhelts1)
7977

8078
```bash
8179
sudo mkdir -p /var/empty/sshd
@@ -111,7 +109,7 @@ In the Azure portal, open the **Properties** window of the VM to check the agent
111109
1. Go to the Azure portal, locate your VM settings, and then select **Run Command** under **Operations**.
112110
2. Execute the following shell script by selecting **RunShellScript** > **Run**:
113111

114-
### [RHEL/CentOS](#tab/rhelts2)
112+
### [RHEL](#tab/rhelts2)
115113

116114
```bash
117115
#!/bin/bash
@@ -155,12 +153,12 @@ If you can connect to the VM via SSH, and you want to analyze the details of the
155153
156154
Here are two methods to repair the VM offline:
157155

158-
- [Use Azure Linux Auto Repair (ALAR).](#offlinetroubleshooting-repairvm)
156+
- [Use az vm repair](#offlinetroubleshooting-repairvm)
159157
- [Use the manual method.](#offlinetroubleshooting-manualvm)
160158

161-
### <a id="offlinetroubleshooting-repairvm"></a>Use Azure Linux Auto Repair (ALAR)
159+
### <a id="offlinetroubleshooting-repairvm"></a>Use az vm repair
162160

163-
Azure Linux Auto Repair (ALAR) scripts are a part of the VM repair extension described in [Repair a Linux VM by using the Azure Virtual Machine repair commands](repair-linux-vm-using-azure-virtual-machine-repair-commands.md).
161+
The `az vm repair`, part of the vm-repair extension for the Azure CLI, is described in [Repair a Linux VM by using the Azure Virtual Machine repair commands](repair-linux-vm-using-azure-virtual-machine-repair-commands.md).
164162

165163
Follow these steps to automate the manual offline process:
166164

@@ -177,7 +175,7 @@ Follow these steps to automate the manual offline process:
177175

178176
3. Run the following commands to resolve the permission and ownership issues:
179177

180-
### [RHEL/CentOS](#tab/rhelts3)
178+
### [RHEL](#tab/rhelts3)
181179

182180
```bash
183181
mkdir -p /var/empty/sshd
@@ -210,11 +208,11 @@ Follow these steps to automate the manual offline process:
210208

211209
### <a id="offlinetroubleshooting-manualvm"></a>Use the manual method
212210

213-
If both the serial console and ALAR approach don't apply to you or fail, the repair has to be performed manually. Follow the steps below to manually attach the OS disk to a recovery VM and swap the OS disk back to the original VM:
211+
If both the serial console and `az vm repair` approach don't apply to you or fail, the repair has to be performed manually. Follow the steps below to manually attach the OS disk to a recovery VM and swap the OS disk back to the original VM:
214212

215213
- [Attach the OS disk to a recovery VM using the Azure portal.](troubleshoot-recovery-disks-portal-linux.md)
216214
- [Attach the OS disk to a recovery VM using Azure CLI.](troubleshoot-recovery-disks-linux.md)
217215

218-
Once the OS disk is successfully attached to the recovery VM, follow the detailed [chroot instructions](chroot-environment-linux.md) to mount and chroot to the filesystems of the attached OS disk. Then, follow step 3 in the [Use Azure Linux Auto Repair (ALAR)](#offlinetroubleshooting-repairvm) section to resolve the permission and ownership issues.
216+
Once the OS disk is successfully attached to the recovery VM, follow the detailed [chroot instructions](chroot-environment-linux.md) to mount and chroot to the filesystems of the attached OS disk. Then, follow step 3 in the [Use az vm repair](#offlinetroubleshooting-repairvm) section to resolve the permission and ownership issues.
219217

220218
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

support/dynamics-365/supply-chain/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@
352352
href: warehousing/shipment-confirmed-no-posting.md
353353
- name: Slotting templates don't consider on-hand inventory for batch-above items
354354
href: warehousing/slotting-templates-inventory-batch-above.md
355+
- name: '"The size of the request xml exceeds the maximum allowed value" in the mobile app'
356+
href: warehousing/request-xml-size-exceeds-maximum-allowed-value.md
355357
- name: The last closed work line must be a put
356358
href: warehousing/the-last-closed-work-link-must-be-a-put-error.md
357359
- name: The weight fields on load lines don't match the weight fields on the load

support/dynamics-365/supply-chain/warehousing/request-xml-size-exceeds-maximum-allowed-value.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Size of Request XML Exceeds Maximum Allowed Value Error
3+
description: Resolves the size of the request xml exceeds the maximum allowed value error in the Warehouse Management mobile app.
4+
ms.date: 03/13/2025
5+
# ms.search.form:
6+
audience: Application User
7+
ms.reviewer: kamaybac, ivanma
8+
ms.search.region: Global
9+
ms.author: ivanma
10+
ms.search.validFrom: 2025-03-03
11+
ms.dyn365.ops.version: 10.0.39
12+
ms.custom: sap:Warehouse management
13+
---
14+
# "The size of the request xml exceeds the maximum allowed value" error in the Warehouse management mobile app
15+
16+
This article provides a resolution for "The size of the request xml exceeds the maximum allowed value" error that occurs in the [Warehouse Management mobile app](/dynamics365/supply-chain/warehousing/install-configure-warehouse-management-app).
17+
18+
## Symptoms
19+
20+
When you open a [Display open work list](/dynamics365/supply-chain/warehousing/configure-mobile-devices-warehouse#configure-menu-items-for-activities-and-inquiries) mobile device flow in the Warehouse Management mobile app, you might receive the following error message:
21+
22+
> The size of the request xml exceeds the maximum allowed value.
23+
24+
## Cause
25+
26+
The Warehouse Management mobile app communicates with the Dynamics 365 Supply Chain Management service through an XML file. The system has a built-in limit on the size of this XML file. If there are many warehouse work items to be displayed in the Warehouse Management mobile app, the XML file size might exceed this limit.
27+
28+
## Resolution
29+
30+
To resolve this issue, follow these steps to reduce the number of warehouse work items shown in the Warehouse Management mobile app:
31+
32+
1. Open the **Mobile device menu items** form by navigating to **Warehouse management** > **Setup** > **Mobile device** > **Mobile device menu items**.
33+
1. Find the impacted menu item.
34+
1. Select the **Edit query** button in the Action Pane.
35+
1. Edit the query to reduce the number of displayed warehouse work items.
36+
37+
For more information about editing the queries, see [User-configurable queries in Warehouse management](/dynamics365/supply-chain/warehousing/user-configurable-queries-in-warehouse-management).
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Enable MSAL4J Logging in a Spring Boot Web Application in Microsoft Entra ID
3+
description: Discusses how to enable MSAL4J logging in a Spring Boot web application in Microsoft Entra.
4+
ms.date: 03/10/2025
5+
ms.author: bachoang
6+
ms.service: entra-id
7+
ms.custom: sap:Microsoft Entra App Integration and Development
8+
---
9+
10+
# Enable MSAL4J logging in a Spring Boot web application
11+
12+
This article provides step-by-step instructions to enable [Microsoft Authentication Library for Java](https://github.com/AzureAD/microsoft-authentication-library-for-java) (MSAL4J) logging by using the [Logback framework](https://logback.qos.ch/) in a Spring Boot web application.
13+
14+
## Code sample
15+
16+
The complete code sample and configuration guide for this implementation are available on [GitHub](https://github.com/bachoang/MSAL4J_SpringBoot_Logging/tree/main/msal-b2c-web-sample).
17+
18+
## Enable MSAL4J logging
19+
20+
1. Add the following dependency to your Pom.xml file to include the Logback framework:
21+
22+
```xml
23+
<dependency>
24+
<groupid>ch.qos.logback</groupid>
25+
<artifactid>logback-classic</artifactid>
26+
<version>1.2.3</version>
27+
</dependency>
28+
```
29+
30+
2. In your app project, create a file in the **src/main/resources** folder, and name the file **Logback.xml**. Then, add the following content:
31+
32+
```xml
33+
<?xml version="1.0" encoding="UTF-8"?>
34+
<configuration>
35+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
36+
<encoder>
37+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
38+
</encoder>
39+
</appender>
40+
<root level="debug">
41+
<appender-ref ref="STDOUT" />
42+
</root>
43+
</configuration>
44+
```
45+
46+
This Appender configuration logs messages to the console. You can adjust the logging level to `error`, `warn`, `info`, or `verbose` based on your preference. For more information, see [LogBack: Appenders](https://logback.qos.ch/manual/appenders.html).
47+
3. Set the **logging.config** property to the location of the **Logback.xml** file before the main method:
48+
49+
```java
50+
@SpringBootApplication
51+
public class MsalB2CWebSampleApplication {
52+
53+
static { System.setProperty("logging.config", "C:\\Users\\<your path>\\src\\main\\resources\\logback.xml");}
54+
public static void main(String[] args) {
55+
// Console.log("main");
56+
// System.console().printf("hello");
57+
// System.out.printf("Hello %s!%n", "World");
58+
System.out.printf("%s%n", "Hello World");
59+
SpringApplication.run(MsalB2CWebSampleApplication.class, args);
60+
}
61+
}
62+
```
63+
64+
## Configuration for running the code sample
65+
66+
### Enable HTTPs support
67+
68+
This code sample is set up to run on the local server (localhost) by using the HTTPS protocol. Follow the steps in [Configure the sample to use your Azure AD B2C tenant](https://github.com/bachoang/MSAL4J_SpringBoot_Logging/tree/main/msal-b2c-web-sample#step-2--configure-the-sample-to-use-your-azure-ad-b2c-tenant) to generate a self-signed certificate. Put the **keystore.p12** file in the resources folder.
69+
70+
### App registration configuration
71+
72+
To configure app registration in Azure AD B2C, follow these steps:
73+
74+
1. Create two app registrations in your Azure AD B2C tenant: One for the web application and the other for the web API.
75+
2. Expose the required scope in the web API. For more information, see [Configure web API app scopes](/azure/active-directory-b2c/configure-authentication-sample-web-app-with-api?tabs=visual-studio#step-22-configure-web-api-app-scopes).
76+
3. Configure the web API scope in the **API Permissions** blade for the web application.
77+
4. Grant admin consent to all configured permissions in the web application.
78+
79+
For more information, see [Configure authentication in a sample web app that calls a web API by using Azure AD B2C](/azure/active-directory-b2c/configure-authentication-sample-web-app-with-api).
80+
81+
Example configuration:
82+
83+
:::image type="content" source="media/enable-msal4j-logging-spring-boot-webapp/app-reg.png" alt-text="Diagram that shows configured app registration." border="true" lightbox="media/enable-msal4j-logging-spring-boot-webapp/app-reg.png":::
84+
85+
## Logging output example
86+
87+
If the app is configured correctly, the logging output should resemble the following output.
88+
89+
:::image type="content" source="media/enable-msal4j-logging-spring-boot-webapp/log-sample.png" alt-text="Diagram that shows logging output." border="true" lightbox="media/enable-msal4j-logging-spring-boot-webapp/log-sample.png":::
104 KB
Loading
93.4 KB
Loading

support/entra/entra-id/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
href: app-integration/troubleshoot-wif10201-no-validkey-securitytoken-mvc.md
5858
- name: Package Inspector for MSAL Android Native
5959
href: app-integration/package-inspector-msal-android-native.md
60+
- name: Enable MSAL4J logging in a Spring Boot web application
61+
href: app-integration/enable-msal4j-logging-spring-boot-webapp.md
6062

6163

6264
- name: Troubleshoot adding apps

support/power-platform/power-automate/desktop-flows/troubleshoot-errors-running-attended-or-unattended-desktop-flows.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Error code occurs when running an attended or unattended desktop flow
33
description: Provides mitigation steps for the error codes that occur when running attended or unattended desktop flows.
44
ms.reviewer: cefriant, kenseongtan, guco, johndund, alarnaud
5-
ms.date: 02/11/2025
5+
ms.date: 03/13/2025
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
77
---
88
# Error code occurs when running an attended or unattended desktop flow
@@ -66,3 +66,4 @@ _Original KB number:_ &nbsp; 4555406
6666
|AccountLockedOut|400|Unattended|This error occurs when an internal system policy has prevented an account from creating a session on the machine because of too many sign-in attempts or password change attempts for the account. It's related to an on-premises configuration, not Power Automate licenses. Check that password rotation policies don't interfere with your scheduled runs, causing many incorrect sign-in attempts. If this error occurs regularly, work with your IT administrator to review sign-in attempt logs and account lockout policies.|
6767
|LogonTypeNotGranted|400|Unattended|For more information, see [troubleshooting documentation for logon type not granted](logon-type-has-not-been-granted.md).|
6868
|UnallowedTenantForConnectWithSignIn|403|Attended|This error occurs when using a [connect with sign-in](/power-automate/desktop-flows/desktop-flow-connections#connect-with-sign-in-for-attended-runs) connection on an Active Directory (AD) domain-joined machine without adding your tenant to the allowlist. </br> For more information, see ["UnallowedTenantForConnectWithSignIn" error in a Power Automate desktop flow](troubleshoot-unallowed-tenant-for-connect-with-sign-in.md).|
69+
|MachineNotFound|404|Attended</br>Unattended|This error can occur when the machine is unregistered during a run or if the Dataverse organization has been migrated to a different region. Verify that:</br>- Your machine is still registered by [viewing its status](/power-automate/desktop-flows/manage-machines#view-list-of-machines) in the machine runtime application or the Power Automate portal.</br>- Your [desktop flow connection](/power-automate/desktop-flows/desktop-flow-connections) isn't broken in the Power Automate portal.</br>- [Scripting actions](/power-automate/desktop-flows/actions-reference/scripting) in your flow don't register your machine while the flow is running.|

0 commit comments

Comments
 (0)