You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the Bicep file creates an API center by default in the Free plan and registers a sample API in the default workspace.
40
-
38
+
In this example, the Bicep file creates an API center in the Free plan and registers a sample API in the default workspace.
41
39
42
40
## Deploy the Bicep file
43
41
44
-
You can use Azure CLI or Azure PowerShell to deploy the Bicep file. For more information about deploying Bicep files, see [Deploy](../azure-resource-manager/bicep/deploy-cli.md).
42
+
You can use Azure CLI or Azure PowerShell to deploy the Bicep file. For more information about deploying Bicep files, see [Deploy](../azure-resource-manager/bicep/deploy-cli.md).
45
43
46
44
1. Save the Bicep file as **main.bicep** to your local computer.
47
45
1. Deploy the Bicep file using either Azure CLI or Azure PowerShell.
48
46
49
47
# [CLI](#tab/CLI)
50
48
51
49
```azurecli
50
+
# Create a resource group in one of the supported regions for Azure API Center
52
51
az group create --name exampleRG --location eastus
53
52
54
53
az deployment group create --resource-group exampleRG --template-file main.bicep --parameters apiName="<api-name>" apiType="<api-type>"
@@ -66,6 +65,6 @@ You can use Azure CLI or Azure PowerShell to deploy the Bicep file. For more in
66
65
67
66
Replace **\<api-name\>** and **\<api-type\>** with the name and type of an API that you want to register in your API center.
68
67
69
-
When the deployment finishes, you should see a message indicating the deployment succeeded.
68
+
When the deployment finishes, you should see a message indicating the deployment succeeded.
0 commit comments