question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az apim api --protocols support both HTTP and HTTPS as input

See original GitHub issue

Is your feature request related to a problem? Please describe.

I am writing pipeline that imports the generated swagger.json into Azure APIM service. Although Azure APIM supports HTTP, HTTPS and both of them as URL scheme, the Azure CLI APIM module only accepts HTTP or HTTPS for the corresponding option (–protocol). I need to access APIM web interface to change the URL scheme to both manually every time when the pipeline is run, which is really annoying.

Describe the solution you’d like

az apim api import --protocols support extra value that changes the URL schema in web interface to both option

Describe alternatives you’ve considered

According to document, the --protocols should support one or more protocols, but I can’t find any documentation about how to implement it. Maybe there’s a way to set both protocols which is not documented?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
PramodValavala-MSFTcommented, Feb 7, 2022

@cyljacky You can mention both by space separating them like this

---protocols http https
0reactions
cyljackycommented, Feb 8, 2022

It works! Thanks a lot! It saves me a lot of annoyance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

az apim api - Microsoft Learn
Describes on which protocols(one or more) the operations in this API can be invoked. accepted values: http, https, ws, wss. --service-url. Absolute URL...
Read more >
Using Azure API Management to Manage HTTP Request ...
Manual walkthrough of the steps required to configure the trigger endpoints in APIM; PowerShell script to automate the configuration; Execute ...
Read more >
Publish - Amazon Simple Notification Service
The message you want to send. If you are publishing to a topic and you want to send the same message to all...
Read more >
Azure API Management (APIM) - Everything you need to know
Learn about Azure API Management and follow along with our guides in this video.This video is part of a larger course prepping you...
Read more >
Azure API Management - how to enable HTTP/2 via ...
customPropertiesNew=$(az apim show -n $APIM_NAME -g $APIM_RG ... New-AzApiManagement to manage ApiManagement service Added support for the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found