All Questions
Tagged with rest powershell
566
questions
0
votes
0
answers
6
views
Azure DevOps REST API parent relation link to existing work item error
I am attempting to utilize the Azure DevOps REST API to create and/or update a work item in Boards to allow adding a Parent link.
So far this is unsuccessful. and its creating an error...
Invoke-...
0
votes
1
answer
61
views
Databricks API - Import the file from DevOps repo to databricks workspace
Our pipeline logic includes the Add-DatabricksDBFSFile function to move .sh file from DevOps repo to DBFS in databricks for later cluster creation purpose (below code)
Add-DatabricksDBFSFile -...
0
votes
1
answer
51
views
PowerShell Script to Retrieve Azure Purview Glossary Terms via REST API
I'm working on integrating Azure Purview with other systems using
PowerShell. My goal is to fetch a list of all glossary terms from Azure Purview programmatically using the REST API and PowerShell.
...
0
votes
1
answer
51
views
How to make a script to automate taking the GET data from my wordpress site and POST to another server
I have this problem and I'm a newbie of REST API world. I have a Wordpress site in which I sell CD Albums, and I have to take every orders of the day and send some specific data (like the bardcode/ean,...
1
vote
1
answer
103
views
Secrets and Certificate Expiry with Graph Powershell
So, hope someone can help me across the finish line with this. I've cobbled together a bit of code, basically something I got from a much smarter forum user for a similar purpose.
I'm trying to take ...
1
vote
1
answer
78
views
Response status code does not indicate success: 415 (Unsupported Media Type)
I am trying to a refresh on a single table in Azure Analysis services using PowerShell and Automation Runbook.
I am passing a bearer token to the header body but while testing it I am getting below ...
0
votes
0
answers
75
views
Invoke Rest API with a custom header
I am trying to invoke a rest api. But I get 401 unauthorized. The same call works fine from C# and postman with the same token.
Here is a snippet of the code I am using:
$contentType = "...
0
votes
1
answer
41
views
Undeleting an Azure Blob Using a REST API Call from PowerShell
I am trying to undelete a soft deleted blob from Azure storage, using PowerShell to perform a REST API call.
I used the script below:
# Variables
$storageAccountName = "mystorageAccountName"
...
0
votes
1
answer
101
views
Invoke-WebRequest : Cannot validate argument on parameter 'Uri' Brocade switch FOS REST API
I am entering the username and password of the brocade switch. The same credentials are used for ssh.
Basically I am trying to run a brocade command. I am calling the api using Powershell Invoke-...
0
votes
1
answer
72
views
How to hide a process's field from layout?
I try to create a powershell script to hide a process's field from the layout on Azure DevOps using this API : https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/fields/remove-work-item-...
0
votes
1
answer
64
views
REST API Azure recovery services backup job duration in readable format
Using below query,
$restUri = "https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.RecoveryServices/vaults/${vaultName}/backupJobs/${...
0
votes
1
answer
35
views
Uploading via REST API some .exe output files from workflow: got corrupted, file size increases
I have my Github Action "publish":
name: publish
on:
push:
tags:
- release-*
jobs:
test:
uses: ./.github/workflows/test.yml
secrets: inherit
publish:
name: ...
1
vote
1
answer
41
views
Parsing JSON from API using PowerShell - issue with hash table addition (i dont know where the hash table comes from)
I am trying to parse some information through an API to view the status of running jobs in a vendor system. I am not a dev and don't really use API or JSON much, so this is literally draft code to see ...
0
votes
2
answers
75
views
Rename Qlik Sense Sheets using API
I am trying to rename Qlik Sense Sheets using APIs. I got to know we should rename only using properties. I tried below code in Powershell but its not working. Please help me correct the code. I am ...
0
votes
1
answer
111
views
Powershell Invoke-Restmethod w/ JSON Body
Hope someone can help.
I'm trying to send a REST POST message using the Invoke-Rest method command to a sms service. When I use postman to send the request I'm able to send the message. However, when ...