-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom widget CICD deployment #2338
Comments
Hello @girish-tank-avnet we do not officially supported this as of right now. You can take a look on how our deploy function works here. The Service Information object contains optional tokenOverride key, which you can use to set the AccessToken instead of logging in. In the Deploy function we are using the getToken method of the InteractiveBrowserCredential Class, I can imagine you could get the the AccessToken somehow else and pass it to the override, but that depends on your set up. Hope this helps, |
Hello @JMach1 Thanks for giving answer. but if i want to get the access token then i have to create app registration in AD correct? then what type of permission i need to give and grant admin consent? |
Hello @JMach1 would you please tell me the steps or can say process that how to get my azure account access token to pass in "tokenOverride" property in service information while deploy the custom widget? Thanks in advance. |
Hello @girish-tank-avnet We did it the following way. This is our deploy.js:
To make the |
I used @heller-tobias' solution for the deployment function and it worked perfectly. For anyone who needs to run this in Azure Pipelines CI/CD, here's our authentication solution:
|
Hello Guys,
we have custom widgets for some functionality and have Github repository for the same. when we deploy custom widget in Azure APIM Developer portal we have to authenticate with our azure account and then after we are able to deploy custom widget.
if we do this deployment process manually then we don't have any issue to deploy as we authorize deployment with our azure account once it ask to authorized.
but now i am going to make GitHub Workflow CICD actions to deploy custom widget but my question is that how can we authenticate deployment with azure account or any way to bypass this MFA authentication?
please note that i am using GitHub workflow Actions to perform CICD.
Thanks,
Girish.
The text was updated successfully, but these errors were encountered: