Skip to content

New-AzApiManagementBackendCredential to create ref to named value #19075

Answered by RakeshMohanMSFT
RobBowman asked this question in Q&A
Discussion options

You must be logged in to vote

@RobBowman We sincerely apologies for the delay in getting back.

Please try this.

$context = New-AzApiManagementContext -ResourceGroupName "Issue19075" -ServiceName "Issue19075"

$nvFuncKey = Get-AzApiManagementNamedValue -Context $context -Name "issue19075nvfromkv"

$credential = New-AzApiManagementBackendCredential -Header @{"x-functions-key" = @("{{" + $nvFuncKey.Name + "}}")}

$backend = New-AzApiManagementBackend -Context $context -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -Title "first backend" -SkipCertificateChainValidation $true -Credential $credential -Description "my backend"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
API Management needs-author-feedback More information is needed from author to address the issue. CXP Attention [Deprecated] The Azure CXP Support Team is responsible for this issue.
2 participants