az apim import graphql using specification path fails with 'link' is not a valid absolute URI #30465
Labels
API Management
az apim
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
I am trying to import a GraphQL specification from file into API Management.
When running:
My GraphQL file looks as follows:
I think I found the issue, however can't validate. Please check the linked commit / pull request.
Related command
az apim api import
Errors
using PowerShell v7.4.6, I always run into following issue (no matter the graphql schema):
Issue script & Debug output
az apim api import --path $apiPath --resource-group $resourceGroup
--service-name $apiManagementName --api-id $apiId
--api-type graphql
--specification-format "GraphQL"
--service-url "https://contoso.com" `
--display-name $displayName --specification-format "GraphQL" --specification-path "./schema.gql"
Expected behavior
The graphql API gets imported properly.
Environment Summary
azure-cli 2.65.0
core 2.65.0
telemetry 1.1.0
Extensions:
containerapp 1.0.0b3
durabletask 1.0.0b1
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Extensions directory '/home/***/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Sep 25 2024, 11:33:44) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response
The text was updated successfully, but these errors were encountered: