Azure / Azure/azure-cli

cannot specify virtual network when deploying APIM usnig CLI

Open
#24,830 3 comments 0 reactions 0 assignees View on GitHub
Account act-identity-squad act-observability-squad API Management Auto-Assign bug customer-reported Docs Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

The documentation is not clear on how a VNet integrated APIM service can be created.

I tried this:

_az login
az apim create --name "" --publisher-email "" --publisher-name "" --resource-group "" --virtual-network "External"_

The service created is not VNet integrated.

The section for "az apim create", specifically, the "--virtual-network" parameter needs to be better documented. There is no option to specify the virtual network and subnet you want to deploy the service into.

This was raised here as well:
https://stackoverflow.com/questions/65058942/azure-api-management-how-to-set-the-vnet-subnet-using-azure-cli

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 197d8382-ee16-6001-4941-768877379c0d
* Version Independent ID: 1423fa76-977f-ad88-8129-0b52a38e68e6
* Content: [az apim](https://learn.microsoft.com/en-us/cli/azure/apim?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/apim.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/apim.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.