in the requirements.psd1 file i commented the line #'Az' = '13.*' then used import-module Az in my script which seemed to solve the problem for now but azure says it is just a temporary solution and preferrably import the module in the requirements in the file but if it gets buggy and the error persists (my case) resort to the method i did