az apic service returns 400 Bad Request when importing APIs from APIM
@jukasper is already working on this.
Since May 15, 2024.
Assessment
This issue has not been assessed yet.
Description
Description
When trying to import APIs from an APIM instance into APIC using Azure CLI's az apic import-from-apim command in PowerShell, the result is always a 4000 BAD REQUEST with an error Object reference not set to an instance of an object. I just installed the extension today to work with apic, so it should be a newer version.
Reproduction steps
Steps to reproduce the behavior:
- Retrieve the APIM ID
- Concatenate "/apis/*" to the end of the APIM ID into a new var $apiIDs
- Execute the command
az apic service import-from-apim --service-name <service name> --resource-group <rg-name> --source-resource-ids $apiIDs
Expected behavior
The APIs should import.
Actual behavior
Always receive a 400 BAD REQUEST with an "Object reference not set to an instance of an object" error.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Just installed the APIC extension today, so the version is newer. Followed the examples in the APIC import from APIM Microsoft Documentation.
- Dominant language
- PowerShell
- Stars
- 45
- Forks
- 21
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/api-center
-
Feature request Untriaged
Difficulty 5/5 Over a week Newbie friendliness 48/100
Azure/api-center#93 · 1 comment ·
-
Bug Untriaged
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Azure/api-center#92 · 1 reaction ·
-
Bug Untriaged
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Azure/api-center#91 · 1 comment ·
-
Feature request Untriaged
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Azure/api-center#90 · 1 comment · 1 reaction ·
-
Bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
Azure/api-center#89 · 1 comment · 1 reaction ·