@Mukkram Shaik , Thanks for posting your query here!
Try to install AZ module on your PowerShell and set your execution policy to remote signed. Once, this is done everything should work as expected.
Please refer to this document for installing the Azure PowerShell module. Refer to this document for setting your execution policy to RemoteSigned
Kindly let us know if the above helps or you need further assistance on this issue.
--------------------------------------------------------------------------------------------------------------------------------------------------------
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
strong text