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
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
Cmdlet(s)
PowerShell Version - 5.1.14393
Instructions: to get PowerShell version, type
$PSVersionTable
and look for the value associated withPSVersion
Module Version - 3.1.0
OS Version - 10.0.14
Instructions: to get OS version, type
$PSversionTable
and look for value associated withBuildVersion
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 issueScript/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
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.
The text was updated successfully, but these errors were encountered: