Skip to content

Commit 9fcb31a

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/azure-docs-pr (branch live)
2 parents 6c15c8a + 9ddeddd commit 9fcb31a

35 files changed

+245
-237
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,16 @@
772772
"redirect_url": "/azure/azure-app-configuration/concept-experimentation",
773773
"redirect_document_id": false
774774
},
775+
{
776+
"source_path_from_root": "/articles/azure-app-configuration/use-variant-feature-flags.md",
777+
"redirect_url": "/azure/azure-app-configuration/howto-variant-feature-flags",
778+
"redirect_document_id": false
779+
},
780+
{
781+
"source_path_from_root": "/articles/azure-app-configuration/use-variant-feature-flags-aspnet-core.md",
782+
"redirect_url": "/azure/azure-app-configuration/howto-variant-feature-flags-aspnet-core",
783+
"redirect_document_id": false
784+
},
775785
{
776786
"source_path_from_root": "/articles/public-multi-access-edge-compute-mec/considerations-for-deployment.md",
777787
"redirect_url": "/previous-versions/azure/public-multi-access-edge-compute-mec/considerations-for-deployment",

articles/api-center/register-apis-github-actions.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Register APIs using GitHub Actions - Azure API Center
33
description: Learn how to automate the registration of APIs in your API center using a CI/CD workflow based on GitHub Actions.
44
ms.service: azure-api-center
55
ms.topic: how-to
6-
ms.date: 07/24/2024
6+
ms.date: 12/23/2024
77
ms.author: danlep
88
author: dlepow
99
ms.custom: devx-track-azurecli
@@ -20,9 +20,9 @@ The following diagram shows how API registration in your API center can be autom
2020

2121
:::image type="content" source="media/register-apis-github-actions/scenario-overview.svg" alt-text="Diagram showing steps to trigger a GitHub actions workflow to register an API in an Azure API center." lightbox="media/register-apis-github-actions/scenario-overview.svg":::
2222

23-
1. Set up a GitHub Actions workflow in your repository that triggers when a pull request that adds an API definition file is merged.
23+
1. Set up a GitHub Actions workflow in your repository that triggers when a pull request adding an API definition file is merged.
2424
1. Create a branch from the main branch in your GitHub repository.
25-
1. Add an API definition file, commit the changes, and push them to the new branch.
25+
1. Add an API definition file, commit the changes, and push to the new branch.
2626
1. Create a pull request to merge the new branch into the main branch.
2727
1. Merge the pull request.
2828
1. The merge triggers a GitHub Actions workflow that registers the API in your API center.
@@ -133,37 +133,32 @@ In this example:
133133
To configure the workflow file:
134134

135135
1. Copy and save the file under a name such as `register-api.yml`.
136-
1. Update the values for the environment variables to match your API center in Azure.
137136
1. Confirm or update the name of the repository folder (`APIs`) where you'll add the API definition file.
138137
1. Add this workflow file in the `/.github/workflows/` path in your GitHub repository.
138+
1. Set the [Actions variables](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables) `SERVICE_NAME` and `RESOURCE_GROUP` in your repo for your API center name and resource group name in Azure.
139139

140140
> [!TIP]
141-
> Using the [Visual Studio Code extension](build-register-apis-vscode-extension.md) for Azure API Center, you can generate a starting workflow file by running an extension command. In the Command Palette, select **Azure API Center: Register APIs**. Select **CI/CD** > **GitHub**. You can then modify the file for your scenario.
141+
> Using the [Visual Studio Code extension](build-register-apis-vscode-extension.md) for Azure API Center, you can generate a starting workflow file by running an extension command. In the Command Palette, select **Azure API Center: Register APIs**. Select **CI/CD** > **GitHub**. You can then modify or extend the file for your scenario.
142142

143143
```yml
144144
name: Register API Definition to Azure API Center
145145
on:
146146
pull_request:
147-
types: [closed]
147+
types: [ closed ]
148148
branches:
149-
- main
149+
- [ "main" ]
150150
paths:
151151
- "APIs/**/*.json"
152152
permissions:
153153
contents: read
154154
pull-requests: read
155-
env:
156-
# set this to your Azure API Center resource group name
157-
RESOURCE_GROUP: <YOUR_RESOURCE_GROUP>
158-
# set this to your Azure API Center service name
159-
SERVICE_NAME: <YOUR_API_CENTER>
160155
jobs:
161156
register:
162157
runs-on: ubuntu-latest
163158
environment: production
164159
steps:
165160
- uses: actions/checkout@v2
166-
161+
167162
- name: Get specification file path in the PR
168163
id: get-file-location
169164
uses: actions/github-script@v5
@@ -180,23 +175,24 @@ jobs:
180175
});
181176
if (files.data.length === 1) {
182177
const filename = files.data[0].filename;
183-
core.exportVariable('API_FILE_LOCATION', hfilename);
178+
core.exportVariable('API_FILE_LOCATION', filename);
184179
console.log(`API_FILE_LOCATION: ${{ env.API_FILE_LOCATION }}`);
185180
}
186181
else {
187182
console.log('The PR does not add exactly one specification file.');
188183
}
184+
189185
- name: Azure login
190186
uses: azure/login@v1
191187
with:
192188
creds: ${{ secrets.AZURE_CREDENTIALS }}
193-
189+
194190
- name: Register to API Center
195191
uses: azure/CLI@v2
196192
with:
197193
azcliversion: latest
198194
inlineScript: |
199-
az apic api register -g ${{ env.RESOURCE_GROUP }} -n ${{ env.SERVICE_NAME }} --api-location ${{ env.API_FILE_LOCATION }}
195+
az apic api register -g ${{ vars.RESOURCE_GROUP }} -n ${{ vars.SERVICE_NAME }} --api-location ${{ env.API_FILE_LOCATION }}
200196
```
201197
202198
@@ -258,7 +254,7 @@ You can extend the GitHub Actions workflow to include other steps, such as addin
258254
with:
259255
azcliversion: latest
260256
inlineScript: |
261-
az apic api update -g ${{ env.RESOURCE_GROUP }} -n ${{ env.SERVICE_NAME }} --api-id {{ env.API_ID }} --custom-properties {{ env.METADATA_FILE }}
257+
az apic api update -g ${{ vars.RESOURCE_GROUP }} -n ${{ vars.SERVICE_NAME }} --api-id {{ env.API_ID }} --custom-properties {{ env.METADATA_FILE }}
262258
```
263259

264260
## Related content

articles/api-management/api-management-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Each API Management [pricing tier](api-management-key-concepts.md#api-management
2626
| -------------------------------------------------------------------------------------------- | ----------- | --------- | --------- | --------- | ----- | -------- | ------- | ------- |
2727
| Microsoft Entra integration<sup>1</sup> | No | Yes | No | Yes | Yes | Yes | Yes | Yes |
2828
| Virtual network injection support | No | Yes | No | No | No | No | Yes | Yes |
29-
| Private endpoint support for inbound connections | No | Yes | Yes | No | Yes | Yes | Yes | No |
29+
| Private endpoint support for inbound connections | No | Yes | Yes | No | Yes | Yes (preview) | Yes | No |
3030
| Outbound virtual network integration support | No | No | No | No | No | Yes | No | Yes |
3131
| Multi-region deployment | No | No | No | No | No | No | Yes | No |
3232
| Availability zones | No | No | No | No | No | No | Yes | No |
@@ -59,4 +59,4 @@ Each API Management [pricing tier](api-management-key-concepts.md#api-management
5959
* [Overview of Azure API Management](api-management-key-concepts.md)
6060
* [API Management limits](/azure/azure-resource-manager/management/azure-subscription-service-limits?toc=/azure/api-management/toc.json&bc=/azure/api-management/breadcrumb/toc.json#api-management-limits)
6161
* [V2 tiers overview](v2-service-tiers-overview.md)
62-
* [API Management pricing](https://azure.microsoft.com/pricing/details/api-management/)
62+
* [API Management pricing](https://azure.microsoft.com/pricing/details/api-management/)

articles/app-service/app-service-asp-net-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ __App Service Migration Assistant tool and App Service migration assistant for P
5656
|Migration Tools| Description | Documentation |
5757
|-----------|-------------|---------------|
5858
|[App Service Migration Assistant](https://appmigration.microsoft.com/api/download/windowspreview/AppServiceMigrationAssistant.msi)|Migrate .NET web apps from Windows OS to App Service.|[App Service Migration Assistant Documentation](https://github.com/Azure/App-Service-Migration-Assistant/wiki)|
59-
|[App Service migration assistant for Java on Apache Tomcat (Windows—preview)](https://appmigration.microsoft.com/api/download/windows/AppServiceMigrationAssistant.msi)|Download prerelease software for migrating Java web applications on Tomcat web server running on Windows servers.|[App Service Migration Assistant Documentation](https://github.com/Azure/App-Service-Migration-Assistant/wiki)|
59+
|[App Service migration assistant for Java on Apache Tomcat (Windows—preview)](https://appmigration.microsoft.com/api/download/windowspreview/AppServiceMigrationAssistant.msi)|Download prerelease software for migrating Java web applications on Tomcat web server running on Windows servers.|[App Service Migration Assistant Documentation](https://github.com/Azure/App-Service-Migration-Assistant/wiki)|
6060
|[App Service Migration Assistant PowerShell scripts](https://appmigration.microsoft.com/api/download/psscripts/AppServiceMigrationScripts.zip)|Download PowerShell scripts for discovering and assessing all Microsoft Internet Information Services (IIS) web apps on a single server in bulk and migrating .NET web apps from Windows OS to App Service.|[App Service Migration Assistant Powershell Documentation](https://github.com/Azure/App-Service-Migration-Assistant/wiki/PowerShell-Scripts)<br>[SHA256 Identifier](https://github.com/Azure/App-Service-Migration-Assistant/wiki/Release-Notes)|
6161

6262
| More resources to migrate .NET apps to the cloud |

articles/azure-app-configuration/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@
161161
- name: Use variant feature flags
162162
items:
163163
- name: Overview
164-
href: use-variant-feature-flags.md
164+
href: howto-variant-feature-flags.md
165165
- name: ASP.NET Core
166-
href: use-variant-feature-flags-aspnet-core.md
166+
href: howto-variant-feature-flags-aspnet-core.md
167167
- name: Enable Azure monitoring
168168
items:
169169
- name: Monitor App Configuration

articles/azure-app-configuration/use-variant-feature-flags-aspnet-core.md renamed to articles/azure-app-configuration/howto-variant-feature-flags-aspnet-core.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ ms.date: 12/18/2024
1313

1414
# Tutorial: Use variant feature flags in an ASP.NET Core application
1515

16-
In this tutorial, you use a variant feature flag to manage experiences for different user segments in an example application, *Quote of the Day*. You utilize the variant feature flag created in [Use variant feature flags](./use-variant-feature-flags.md). Before proceeding, ensure you create the variant feature flag named *Greeting* in your App Configuration store.
16+
In this tutorial, you use a variant feature flag to manage experiences for different user segments in an example application, *Quote of the Day*. You utilize the variant feature flag created in [Use variant feature flags](./howto-variant-feature-flags.md). Before proceeding, ensure you create the variant feature flag named *Greeting* in your App Configuration store.
1717

1818
## Prerequisites
1919

2020
* Ensure the [.NET CLI](/dotnet/core/tools) is installed on your machine.
21-
* Follow the [Use variant feature flags](./use-variant-feature-flags.md) tutorial and create the variant feature flag named *Greeting*.
21+
* Follow the [Use variant feature flags](./howto-variant-feature-flags.md) tutorial and create the variant feature flag named *Greeting*.
2222

2323
## Create an ASP.NET Core web app
2424

@@ -249,13 +249,13 @@ In this tutorial, you use a variant feature flag to manage experiences for diffe
249249
```
250250
1. Once the application is loaded, select **Register** at the top right to register a new user.
251251
252-
:::image type="content" source="media/use-variant-feature-flags-aspnet-core/register.png" alt-text="Screenshot of the Quote of the day app, showing Register.":::
252+
:::image type="content" source="media/howto-variant-feature-flags-aspnet-core/register.png" alt-text="Screenshot of the Quote of the day app, showing Register.":::
253253
254254
1. Register a new user named *[email protected]*.
255255
256256
1. Select the link **Click here to validate email** after entering user information.
257257
258-
:::image type="content" source="media/use-variant-feature-flags-aspnet-core/click-to-confirm.png" alt-text="Screenshot of the Quote of the day app, showing click to confirm.":::
258+
:::image type="content" source="media/howto-variant-feature-flags-aspnet-core/click-to-confirm.png" alt-text="Screenshot of the Quote of the day app, showing click to confirm.":::
259259
260260
1. Repeat the same steps to register a second user named *[email protected]*.
261261
@@ -264,15 +264,15 @@ In this tutorial, you use a variant feature flag to manage experiences for diffe
264264
265265
1. Select **Login** at the top right to sign in as [email protected].
266266
267-
:::image type="content" source="media/use-variant-feature-flags-aspnet-core/login.png" alt-text="Screenshot of the Quote of the day app, showing **Login**.":::
267+
:::image type="content" source="media/howto-variant-feature-flags-aspnet-core/login.png" alt-text="Screenshot of the Quote of the day app, showing **Login**.":::
268268
269269
1. Once logged in, you see a long greeting message for **[email protected]**
270270
271-
:::image type="content" source="media/use-variant-feature-flags-aspnet-core/long-variant.png" alt-text="Screenshot of the Quote of the day app, showing a long message for the user.":::
271+
:::image type="content" source="media/howto-variant-feature-flags-aspnet-core/long-variant.png" alt-text="Screenshot of the Quote of the day app, showing a long message for the user.":::
272272
273273
1. Click *Logout* and login as **[email protected]**, you see the simple greeting message.
274274
275-
:::image type="content" source="media/use-variant-feature-flags-aspnet-core/simple-variant.png" alt-text="Screenshot of the Quote of the day app, showing a simple message for the user.":::
275+
:::image type="content" source="media/howto-variant-feature-flags-aspnet-core/simple-variant.png" alt-text="Screenshot of the Quote of the day app, showing a simple message for the user.":::
276276
277277
## Next steps
278278

articles/azure-app-configuration/use-variant-feature-flags.md renamed to articles/azure-app-configuration/howto-variant-feature-flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ In this tutorial, you create a web app named _Quote of the Day_. When the app is
7373
| Long | "I hope this makes your day!" | 25% |
7474

7575
2. Continue to the following instructions to use the variant feature flag in your application for the language or platform you're using.
76-
* [ASP.NET Core](./use-variant-feature-flags-aspnet-core.md)
76+
* [ASP.NET Core](./howto-variant-feature-flags-aspnet-core.md)

articles/azure-app-configuration/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ landingContent:
163163
- text: Roll out features to targeted audience
164164
url: howto-targetingfilter.md
165165
- text: Use variant feature flags
166-
url: use-variant-feature-flags.md
166+
url: howto-variant-feature-flags.md
167167
- linkListType: reference
168168
links:
169169
- text: .NET feature management

0 commit comments

Comments
 (0)