Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import-AzureRmApiManagementApi commandlet is expecting apiId as mandatory field #3217

Closed
shilsmarty opened this issue Nov 22, 2016 · 3 comments
Assignees
Labels
API Management Service Attention This issue is responsible by Azure service team.

Comments

@shilsmarty
Copy link

Cmdlet(s)

PowerShell Version - 5.1.14393

Instructions: to get PowerShell version, type $PSVersionTable and look for the value associated with PSVersion

Module Version - 3.1.0

OS Version - 10.0.14

Instructions: to get OS version, type $PSversionTable and look for value associated with BuildVersion

Description

Import-AzureRmApiManagementApi commandlet is expecting apiId as mandatory field.

Debug Output

Instructions: to get Debug Output, set $DebugPreference="Continue" and then execute the cmdlet or script causing the issue

Script/Steps for Reproduction

1.) Module installed on my machine for APIM is AzureRM.ApiManagement 3.1.0
2.) was trying to use this command let
3.) Import-AzureRmApiManagementApi -Context $context -SpecificationPath "C:\Git-UHRS\HR-HRC-UHRS-EventSystem\Deployment\Deployment\Templates\IndividualResources\ApiManagement\ApiDefinition\InboundService.wadl.xml" -SpecificationFormat wadl -Path "inbound"
4.) Error Message :
Import-AzureRmApiManagementApi : Value cannot be null.
Parameter name: aid
At line:21 char:1

  • Import-AzureRmApiManagementApi -Context $context -SpecificationPath " ...
  •   + CategoryInfo          : InvalidArgument: (:) [Import-AzureRmApiManagementApi], ArgumentNullException
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Commands.ImportAzureApiManagementApi 
    

5.) As per the documentation here -
https://docs.microsoft.com/en-us/powershell/resourcemanager/apimanagement.servicemanagement/v1.1.4/Import-AzureRmApiManagementApi?redirectedfrom=msdn it should not be mandatory.

@markcowl
Copy link
Member

@solankisamir Can you take a look

@solankisamir
Copy link
Member

@markcowl sure.

solankisamir added a commit to solankisamir/azure-powershell that referenced this issue Nov 30, 2016
- If ApiId is not provided, generate it.
shahabhijeet pushed a commit that referenced this issue Dec 2, 2016
- If ApiId is not provided, generate it.
@solankisamir
Copy link
Member

This is fixed for December 14 release of powershell client.

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Management Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants