You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yes I did verify the managed identity is correct. I am able to import the APIs one at a time. I only receive the 400 BAD REQUEST when trying to do the wildcard import as shown in the documentation.
We recently released a new CLI extension version with updated functionalities, resolving some of the bugs you mentioned. Could you please run this again and let us know if it worked this time.
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 errorObject 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:
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.
The text was updated successfully, but these errors were encountered: