GithubHelp home page GithubHelp logo

Comments (20)

jdewinne avatar jdewinne commented on July 18, 2024

Hey Bernie,

I might be mistaken, but I think the check_connection uses the clientId and clientKey: https://github.com/xebialabs-community/xld-azure-app-services-plugin/blob/master/src/main/jython/azure_app_services/client/__init__.py#L87

Regards,
Joris

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey Joris thanks for the reply.

The client ID and clientkey are 2 values I have validated in power shell, on the same machine. I followed this sample here in PS and it worked using the same clientid and client key. Anything else I can look for?

Thanks again,
Bernie

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey Guys,

Do you have any tips for troubleshooting this? Using the same clientId and clientKey and tenentId in the below power shell command connects, but trying the Check Connection in XLD fails with the java connection refused? Not sure how to figure out what is going on? Thanks.

$creds = Get-Credential
Login-AzureRmAccount -Credential $creds -ServicePrincipal -TenantId {tenant-id}

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

Did you also follow the instructions as outlined in the readme?

I haven't validated yet, but that should work normally.

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey Joris,

Yes I did, that was how I got the values I used to login via power shell.

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

I've just tried this without any problem.
You've also added the app to the correct role with subscription? And also configured the service principal?

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Thanks Joris,
Yes that is what I followed to get the credentials I used to login via power shell. I can go through it again I suppose, but i think I followed that page you referenced to the letter to get the creds.

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

Or maybe a copy/paste error on one of the values?

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

maybe, but I copied and pasted out of XLD into power shell command and it worked.

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey Joris,

Any way you could share your creds that you know work (clientID, clientKey, and tenantId)? Is it just a sample app? That way I would know for sure it is not something else.

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

I can't share, but we could setup a screensharing session to test this. Would that work?

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Yeah that would be great. I think I will try from home to make sure it is not our firewall or something. If that doesn't clear it up I'll set something up for a screenshare.

Thanks Joris!

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Arrrgh. it was the corporate firewall. Sorry about all that, should have tried at home early on. I was tricked by the fact that I was able to connect via power shell.

So that being said is it possible to add a some new properties for proxy creds? I realize this is a community plugin and we can do some of it, but you guys seem so much closer to it and also wondering if there are plans to get it into XLD proper.

Thanks again Joris sorry to waste your time with this goose chase :) Feel free to close or leave open to discuss adding proxy logic.
Bernie

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey joris,

Any idea what port this is using, maybe it is as simple as asking our security folks to open it up.

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

I would expect it to use port 80/443.
Also, part of this plugin is also covered in XLD 7.x. However, that at the same time causes some type clashes with this plugin. So depending on what functionality you need, we should check how to upgrade I think.

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Thanks Joris,

I was doing a bit more research on this and it seems like the 1.0 version of adal4j-1.0.0.jar does not have any option for proxy configuration. If the plugin used 1.1.3 i 'think' it could take some System.setProperty proxy type arguments.

I think the functionality we need at this point is deploying web-apps, but it is very early and I was just trying to get something simple to work to prove out the plugin, but the proxy issue may be a tough one to get by. Do you think that is something you guys would tackle?

We may be looking to upgrade XLD to 7 in the next month or 2.

Thanks,
Bernie

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

Could be. The official azure plugin is based on the python libs. However, it doesn't contain yet the app services. So maybe we should get that on the backlog? Can you submit an official Feature request?

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

Hey Joris,
Just so I am clear. I should make a feature request to add proxy functionality for the Official Azure plugin. Are you guys planning on moving the app services deployment stuff from this plugin in there soon? That plugin looks like it only handles infrastructure type actions at this point.
Thanks!

from xld-azure-app-services-plugin.

jdewinne avatar jdewinne commented on July 18, 2024

I think first step should be to make them compatible. At this moment they clash.
Next step might be to reuse the same types.

from xld-azure-app-services-plugin.

bbonn avatar bbonn commented on July 18, 2024

OK thanks Joris. I feature requested against the official one, but it would be cool if we could get this one updated so we could use it here at Paychex in the near future (i.e. behind company firewall). I would take a whack at it but I am not much of a developer. I could possibly get one of the guys on the team to take a look and maybe contribute back.

from xld-azure-app-services-plugin.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.