Welcome to the MS Q&A Forum.
To change the status of expired accounts in Linux OS, you can use the following commands:
- sudo chage -E -1
- sudo chage -l username
Or reset the user access (password or ssh) to access the server to reset the expired account state.
These commands can be executed through Run Commands from the Azure Portal or the Serial Console. You can refer to the following links for more information:
Hope above will help you resolve the issue.