We have a use case in which Admin can set Google Or Microsoft’s Apps Client Id and Secrets that can later be used for all users who sign up with this Admin’s link, Is there a way to verify these fields before saving/using them? like for Microsoft,How do I verify this info that admin is providing? Is there any API
Tag: azure-devops
Listen for Microsoft.Storage.BlobCreated event using python
I need to monitor Azure Blob Storage and check if a blob is created in Python. In Logic Apps, this is how it looks: Can you help me out and tell me how I should write this in Python? Answer One of the workarounds is to use Azure functions Blob trigger for python where you can able to retrieve the
Publish Unit test in Python
I need to publish the result, but could not and have looked through this site and made research but still having issue to publish test result. Do I need to edit certain file similar to the cypress.json to be able to resolve the issue of Publishing. Both Unit test and the coveratge are not publishing any result and files are
Azure DevOps Python {“count”:1,”value”:{“Message”:”Unexpected character encountered while parsing value: q. Path ”, line 0, position 0.rn”}}
Trying to get Work Items for an Azure DevOps Project. Gives response 400 Have tried many things, been struggling a bit with this. Any help is much appreciated. How to get project’s work items without using their ID . Does the request need to be changed in some way? Answer Update your post to (json=payload): or use something like this:
REST API: How to prevent “An existing connection was forcibly closed by the remote host”
Following this thread, https://stackoverflow.com/a/2582070/6534818, I am wondering if there is any room for improvement to my REST API query that would limit the frequency to which I receive the following error: “An existing connection was forcibly closed by the remote host”. The thread suggests, as one possibility, that the query is malformed. My general setup for a query to Azure
Invalid Json error when Uploading/pushing a file to Azure Devops Repo using Pushes Create Api with Python
I was trying to automate the task of pushing some files to various folder in a repo. I tried using Rest API provided by azure. When using Pushes Create API for the same, from the docs this is the content in the request body snapshot of request body This is the snapshot of python code that I wrote: The code
while uploading a file into azure devops using Push API, The object ‘”‘ does not exist.’ get displayed “typeName”:”Microsoft.TeamFoundation.Git
I am trying to add a file into respos folder using below API’s: The response for the above url includes: And treating this Object ID: YYYYYYYYYYYYYYYYYYYYYY as old ObjectID and trying to push a file into path: refs/heads/XXX using below API: But the response were : And sure missing a final step & basic as well. Any suggestions pls Answer
Though Create-attachment & Upload attachment API’s are successful, still uploaded file is not visible in azure devops repos branch
After lots lots of struggle, finally framed below code to interact with Azure Devops via REST API but dont see file in Azure Devops- Repos’s Branches. First created a attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest-6.0 Later uploaded the attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/upload%20chunk?view=azure-devops-rest-6.0 Both the API’s are suucessful but still couldn’t see the file in azure devops-Repos Branches. What am i
No longer able to retrieve pip login credentials in the Connect to Feed view
In the Artifacts > Connect to Feed view, there used to be a way to get the pip username and password. Now this has been removed and there is an instruction get an artifacts keyring. Is there any way to retrieve the pip password or go back to the old view? Answer Is there any way to retrieve the pip