@ramukaka Apologies for the delay in response and all the inconvenience caused because of the issue.
Can you refer to below steps as mentioned here and see if it helps you out with your issue:
- Open Windows Powershell on VM
- Run "Get-AzurePublishSettingsFile". It will ask you to login to Azure and you will get the publish setting file for your Azure Subscription associated with your account.
- Then run "Add-AzureAccount", It will ask you to login and your account will be added to powershell.
- Login to Azure Portal (manage.windowsazure.com).
- Go to Settings => Management Certificates section. Get the ThumbPrint of the recently added PublishSettingCertificate.
- On Powershell run Import-AzurePublishSettingsFile "path of your publish setting file on VM"
- Run Add-AzureCertificate -serviceName "Your service Name" -certToDeploy (get-item cert:\CurrentUser\MY"Certificate ThumbPrint you got from Azure")
- Finally "Get-AzureSubscription", to see the subscriptions added on Powershell.
You can refer this as well for troubleshooting this error.
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
