@Jeevan Kumar (ZEN3 INFOSOLUTIONS AMERICA INC)
I understand you are trying to rotate the key for your classic storage account using the CLI. Please correct me if I am misunderstanding.
Classic storage account is not supported in the latest CLI as it does not use the ARM deployment model. More information about this can be found here. Migration from classic to ARM is possible and I would recommend looking into performing this in the future.
In order to manage classic resources via CLI you must install the classic CLI. Once the classic CLI is installed you can run the following to login, set subscription, change config mode, then rotate the key.
azure login
azure account set "subscriptionname"
azure config mode asm
azure storage account keys renew storageaccountname --primary or --secondary
Hope this helps you. Let me know if you run into any problems or have further questions.
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.