Getting Index.php code on my screen – WordPress

As I migrated the WordPress site from Digital Ocean to Azure, once moved the files and database into the new azure server, then configured the root location in the apache config file. Then, check the site link, but showing only the index.php code like below.

<?php /** * Front to the WordPress application. This file doesn't do anything, but    loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */  /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true);  /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); 

I have installed the PHP v7.2 in my server. I didn’t get the WordPress Dashboard page. Can you please solve my bug or share your ideas here.

Thanks, Karthick R