Hi Sapan,
The issue you're encountering with SSH and the "permission denied" error, it appears that the problem may be related to the configuration of SSH authentication methods, especially in the context of Azure AD integration.
Here are some troubleshooting steps you can follow to resolve this issue:
Verify SSH Configuration for Password Authentication:
Check Azure AD Role Assignment: Ensure that your Azure AD account has been assigned the "Virtual Machine Administrator Login" role for the VM. You can do this by checking the VM's Access control (IAM) settings in the Azure portal. This role is necessary for proper permissions and access control.
Reset SSH Public Key for Azure AD Account: If the above steps don’t resolve the issue, consider resetting the SSH public key for your Azure AD account. Generate a new SSH key pair and add the public key to your Azure AD account. Then, attempt to log in using SSH with this new key pair.
Hope that helps!