Edit

Share via


Quickstart: Create your API center using the Visual Studio Code extension

Create your API center to start an inventory of your organization's APIs. Azure API Center enables tracking APIs in a centralized location for discovery, reuse, and governance.

After creating your API center, follow the steps in the tutorials to add custom metadata, APIs, versions, definitions, and other information.

In this quickstart, you create an Azure API center using the Azure API Center extension for Visual Studio Code. The extension provides a streamlined way to set up your API center and to build, register, govern, and discover your APIs.

Prerequisites

  • If you don't have an Azure subscription, create an Azure free account before you begin.

  • At least a Contributor role assignment or equivalent permissions in the Azure subscription.

Extension setup

  1. Install the Azure API Center extension for Visual Studio Code from the Visual Studio Code Marketplace. Install other extensions as needed.

    Note

    Where noted, certain features are available only in the Azure API Center extension's pre-release version. When installing the extension from the Visual Studio Code Marketplace, you can choose to install the release version or a pre-release version. Switch between the two versions at any time by using the extension's Manage button context menu in the Extensions view.

  2. In Visual Studio Code, in the Activity Bar on the left, select API Center.

    Screenshot of API Center extension in the activity bar.

  3. If you're not signed in to your Azure account, select Sign in to Azure..., and follow the prompts to sign in. Select an Azure subscription with the API center (or API centers) you wish to view APIs from. You can also filter on specific subscriptions if you have many to view from.

Create an API center

  1. In the Azure API Center view, right-click your subscription and select Create API Center Service in Azure.

    Alternatively, use the Ctrl+Shift+P keyboard shortcut to open the Command Palette. Type Azure API Center: Create API Center Service in Azure and hit Enter.

  2. Enter a name for your API center.

  3. Select a location for the resource.

The extension will show progress and notify you when the resource is ready. The API center is created in the Free plan in a resource group of the same name.

Verify your API center

Once deployment completes, refresh the Azure API Center view. Your new API center appears in the list and is ready to use.

Screenshot of an API center created in Visual Studio Code.

  • Expand the resource to start registering APIs and explore features. Find Azure API Center commands in the Command Palette by typing Azure API Center.

  • If you want to interact with the API center in the Azure portal, right-click the API center name and select Open in Azure Portal.

Next steps