Skip to content

Import-AzureRmApiManagementApi can't set displayName of an SOAP API #6370

@ToMakeSense

Description

@ToMakeSense
Import-AzureRmApiManagementApi
      -Context <PsApiManagementContext>
      [-ApiId <String>]
      [-ApiRevision <String>]
      -SpecificationFormat <PsApiManagementApiFormat>
      -SpecificationPath <String>
      [-Path <String>]
      [-WsdlServiceName <String>]
      [-WsdlEndpointName <String>]
      [-ApiType <PsApiManagementApiType>]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

I am trying to import an SOAP API with Import-AzureRmApiManagementApi, It seems that there's no place to set the name(displayName) of the SOAP API, as a result, the name(displayName) is actually the value of WsdlServiceName

$newAPI = Import-AzureRmApiManagementApi -Context $apimContext -SpecificationFormat Wsdl -SpecificationPath $apiFilePath -Path $api.properties.path -ApiId $api.ApiId -ApiType Soap -WsdlServiceName $api.properties.wsdlServiceName -WsdlEndpointName $api.properties.wsdlEndpointName

Then I try to modify it with Set-AzureRmApiManagementApi, this API have transformed to an Non-SOAP api.

Set-AzureRmApiManagementApi -Context $apimContext -ApiId $newAPI.ApiId -ServiceUrl $newAPI.ServiceUrl -Protocols $newAPI.Protocols -Name $api.properties.displayName

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions