Skip to content

Commit 2dbdca9

Browse files
authored
Merge branch 'main' into merge-something-went-wrong-during-sign-in-into-this-article
2 parents af2271d + f38e99e commit 2dbdca9

24 files changed

+1234
-186
lines changed

.openpublishing.redirection.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12884,6 +12884,10 @@
1288412884
"source_path": "support/power-platform/dataverse/d365-app-outlook/something-went-wrong-during-sign-in.md",
1288512885
"redirect_url": "/troubleshoot/power-platform/dataverse/d365-app-outlook/something-went-wrong-during-sign"
1288612886
},
12887+
{
12888+
"source_path": "support/power-platform/dataverse/d365-app-outlook/you-do-not-have-required-role-privilege.md",
12889+
"redirect_url": "/troubleshoot/power-platform/dataverse/d365-app-outlook/you-do-not-have-the-required-role-or-privilege-to-complete-this-action-error"
12890+
},
1288712891
{
1288812892
"source_path": "support/power-platform/dataverse/d365-app-outlook/we-cannot-load-this-app.md",
1288912893
"redirect_url": "/troubleshoot/power-platform/dataverse/d365-app-outlook/error-when-opening-365-app-outlook"

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)]
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Conversion of Maintenance Schedule to Work Orders Fails
3+
description: Solves the errors that prevent you from creating work orders based on maintenance schedule in Microsoft Dynamics 365 Supply Chain Management.
4+
author: sorenbacker2
5+
ms.author: sorenba
6+
ms.date: 03/14/2025
7+
ms.custom: sap:Asset management\Issues with asset management
8+
---
9+
# Can't create work orders based on your maintenance schedule
10+
11+
This article provides the setup steps to ensure the conversion of maintenance schedule lines to work orders doesn't fail due to errors related to number sequence setup in Microsoft Dynamics 365 Supply Chain Management.
12+
13+
## Symptoms
14+
15+
When you try to create work orders for the selected schedule items selected using the [Open maintenance schedule lines](/dynamics365/supply-chain/asset-management/preventive-and-reactive-maintenance/creating-work-orders#create-work-orders-based-on-your-maintenance-schedule) in **Asset Management**, you receive the following error message after selecting **OK** in the **Create work orders** dialog.
16+
17+
> Number sequence \<Number sequence> has been exceeded.
18+
> Number selection is canceled.
19+
20+
## Cause
21+
22+
This issue is caused by the setup of a number sequence. Specifically, the actual number sequence exceeds the configured range of the work order number sequence.
23+
24+
## Resolution
25+
26+
To resolve the issue and ensure the successful conversion of maintenance schedule lines to work orders, follow these steps to properly set up the number sequence:
27+
28+
1. Go to **Asset management module** > **Setup** > **Asset management parameters**.
29+
2. Select the **Number sequences** FastTab.
30+
3. Select **Work order** in the **Reference** column, and then select the corresponding link in the **Number sequence code** column.
31+
32+
4. Go to the **Segments** FastTab. Find the line where the **Segment** column equals *Alphanumeric*. Ensure the corresponding field in the **Value** column has enough hash tags to match the desired length of the variable numeric part of the work order number sequence.
33+
34+
5. Go to the **General** FastTab. In the **Number allocation** field group, ensure that the **Largest** number matches (but is included in) the length of the variable numeric part of the work order number sequence set earlier. In other words, if the alphanumeric value from step 4 equals *######*, the largest number can be set as *999999*. Also, ensure that the number in the **Next** field is included in the range of the number sequence mentioned in steps 4 and 5.
35+
36+
6. Select **Save** to save the changes to the number sequence.
37+
38+
By configuring the work order number sequence correctly, the conversion of maintenance schedule lines to work orders can proceed without being blocked by an error.
39+
40+
## More information
41+
42+
[Set up number sequences on an individual basis](/dynamics365/fin-ops-core/fin-ops/organization-administration/tasks/set-up-number-sequences-individual-basis)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
href: asset-management/asset-id-not-editable-when-number-sequence-is-manual.md
77
- name: Changing work order lifecycle state doesn't generate fault cause or fault remedy error
88
href: asset-management/change-lifecycle-state-doesnt-create-fault.md
9+
- name: Can't create work orders based on your maintenance schedule
10+
href: asset-management/conversion-of-maintenance-schedule-to-workorder-is-failing.md
911
- name: Inventory costing and closing
1012
items:
1113
- name: An update conflict occurs when the inventory valuation method is either standard cost or moving average
@@ -352,6 +354,8 @@
352354
href: warehousing/shipment-confirmed-no-posting.md
353355
- name: Slotting templates don't consider on-hand inventory for batch-above items
354356
href: warehousing/slotting-templates-inventory-batch-above.md
357+
- name: '"The size of the request xml exceeds the maximum allowed value" in the mobile app'
358+
href: warehousing/request-xml-size-exceeds-maximum-allowed-value.md
355359
- name: The last closed work line must be a put
356360
href: warehousing/the-last-closed-work-link-must-be-a-put-error.md
357361
- 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
@@ -55,6 +55,8 @@
5555
href: app-integration/android-app-authentication-fails-after-published-to-google-play-store.md
5656
- name: WIF10201 No valid key mapping found
5757
href: app-integration/troubleshoot-wif10201-no-validkey-securitytoken-mvc.md
58+
- name: Enable MSAL4J logging in a Spring Boot web application
59+
href: app-integration/enable-msal4j-logging-spring-boot-webapp.md
5860

5961

6062
- name: Troubleshoot adding apps

0 commit comments

Comments
 (0)