CmdID

CmdID / az / az apic / az apic api / az apic api deployment

az apic api deployment create

Create a new API deployment or update an existing API deployment. Azure CLI extensions reference

2 examples 10 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Create deployment

az apic api deployment create -g api-center-test -n contoso --deployment-id production --title "Production deployment" --description "Public cloud production deployment." --api-id echo-api --environment-id "/workspaces/default/environments/production" --definition-id "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi" --server '{"runtimeUri":["https://example.com"]}'Identify
-gName of resource group.
-nThe name of Azure API Center service.
--deployment-idThe id of the API deployment.
--titleDeployment title
--descriptionDescription of the deployment.
--api-idThe id of the API.
--environment-idAPI center-scoped environment resource ID.
--definition-idAPI center-scoped definition resource ID.
--serverServer

Create deployment using server json file

az apic api deployment create -g api-center-test -n contoso --deployment-id production --title "Production deployment" --description "Public cloud production deployment." --api-id echo-api --environment-id "/workspaces/default/environments/production" --definition-id "/workspaces/default/apis/echo-api/versions/2023-01-01/definitions/openapi" --server '@server.json'Identify
-gName of resource group.
-nThe name of Azure API Center service.
--deployment-idThe id of the API deployment.
--titleDeployment title
--descriptionDescription of the deployment.
--api-idThe id of the API.
--environment-idAPI center-scoped environment resource ID.
--definition-idAPI center-scoped definition resource ID.
--serverServer

Options

10 in the Azure CLI extensions reference
--api-idThe id of the API.
--custom-propertiesThe custom metadata defined for API catalog entities.
--definition-idAPI center-scoped definition resource ID.
--deployment-idThe id of the API deployment.
--descriptionDescription of the deployment.
--environment-idAPI center-scoped environment resource ID.
--serverServer
--service-name, -nThe name of Azure API Center service.
--titleDeployment title
--workspace-name, --workspace, -wThe name of the workspace.