'Jenkins hosted on VM, not able to fetch Azure resource group names, for a free style project

I don't know why this issue is happening, but I am confident that the configuration was done properly. I created an Azure VM, installed Jenkins in that, and created a freestyle project. And Then I added the git and Azure Service Principle credentials to the global unrestricted access to Jenkins credentials (system). When I try to add a post-build setup of publishing to an azure web app, I get the following errors. I have added images, please open the links and look into them, and help me out.

As you can see, the service principle has been successfully verified.

image

But in the second picture, when I try to access the resource group, it says none, even though I have created a resource group, app service plan, app services etc.

image



Solution 1:[1]

I tested in my enviroment and facing the same Issue,Even after Succefully verified the service principle.

enter image description here

enter image description here

Did few reaseach and found that Azure App Service Plugin is up for adoption and under maintaiance and few of them as been deprecated and also they are looking for new maintainer. The Same issue is happing with other Azure plugin as well like Azure Storage,Azure Cosmos and many more...

Even though in the document its stated you can install the Azure App Service plugin manually before officially release but when i tried to install the maven repro its prompting for enter the credential to download the repro. Seems its private repro we can't access.

enter image description here

For Workaround for this issue or for more information you can reach out to Jenkins Community Team or Support.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RahulKumarShaw-MT