Mohammed Shami was officially ruled out before the fourth Test against Australia in Melbourne with the BCCI medical team citing a knee swelling.