@小山 優 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
We cannot completely understand your question as this is an English global support. It would be helpful, if you can translate your question in English. Or you can consider support in other languages from here: https://azure.microsoft.com/support/options/
Refer the FAQ here: For which languages does Microsoft provide support?
After translating your question, this is what I understood: "Cannot scale in VMSS "
In the VMSS scaling settings, I selected "Custom Auto Scaling" and added the condition as it is. Then I pressed "Scaling to a specific number of instances" and set the number of instances to 2.I set the start and end with a margin. The scale-out was successful, but the scale-in did not occur at the end time. Even at the end time, there are still two VMs after being scaled out, and the deletion is not executed.
Is there any possible reason? * I was able to manually scale out and scale in without any problems.
Suggestion:
Check the audit logs in the Azure portal for scale events. Maybe there was a scale up and a scale down that was missed. You can filter by “Scale”.
Since you have manually scale out: If you can successfully change the number of VMs manually, you then know the problem is isolated to autoscale.
For more information, refer to the Troubleshooting autoscale with Virtual Machine Scale Sets
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
------------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.