Skip to content

az apim import does not set the description #20812

@matt-goldman

Description

@matt-goldman

az apim import does not set the description

Describe the bug
Setting the Description property of an API in APIM does not work via Azure CLI.

To Reproduce

az apim api import -g MyRG -n my-apim `
	--specification-format OpenApiJson `
	--specification-url https://myservice.azurewebsites.net/api/specification.json `
	--display-name 'My Service' `
	--description 'Test description' `
	--api-id MyService `
	--api-type http `
	--protocols https `
	--service-url https://myservice.azurewebsites.net `
	--subscription-required true `
	--subscription-key-header-name my-key `
	--subscription-key-query-param-name my-key `
    --path '/myservice'

Expected behavior
The Description property of the API should be set.

Environment summary

  az --version
azure-cli                         2.31.0

core                              2.31.0
telemetry                          1.0.6

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\mattg\.azure\cliextensions'

Python (Windows) 3.8.9 (tags/v3.8.9:a743f81, Apr  6 2021, 13:22:56) [MSC v.1928 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Metadata

Metadata

Assignees

No one assigned

    Labels

    API Managementaz apimService AttentionThis issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions