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
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-dotnet-core-app.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Add the following key-value to the App Configuration store and leave **Label** a
31
31
32
32
## Create a .NET console app
33
33
34
-
You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a new .NET console app project. The advantage of using the .NET CLI over Visual Studio is that it's available across the Windows, macOS, and Linux platforms. Alternatively, use the preinstalled tools available in the [Azure Cloud Shell](https://shell.azure.com).
34
+
You can use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a new .NET console app project. The advantage of using the .NET CLI over Visual Studio is that it's available across the Windows, macOS, and Linux platforms. Alternatively, use the preinstalled tools available in the [Azure Cloud Shell](https://shell.azure.com).
#Customer intent: As a .NET Framework developer, I want to use feature flags to control feature availability quickly and confidently.
12
+
ms.date: 2/19/2024
13
+
ms.author: zhiyuanliang
14
+
#Customer intent: As a .NET developer, I want to use feature flags to control feature availability quickly and confidently.
14
15
---
15
-
# Quickstart: Add feature flags to a .NET Framework console app
16
+
# Quickstart: Add feature flags to a .NET/.NET Framework console app
16
17
17
-
In this quickstart, you incorporate Azure App Configuration into a .NET Framework app to create an end-to-end implementation of feature management. You can use the App Configuration service to centrally store all your feature flags and control their states.
18
+
In this quickstart, you incorporate Azure App Configuration into a .NET console app to create an end-to-end implementation of feature management. You can use the App Configuration service to centrally store all your feature flags and control their states.
18
19
19
20
The .NET Feature Management libraries extend the framework with feature flag support. These libraries are built on top of the .NET configuration system. They integrate with App Configuration through its .NET configuration provider.
20
21
21
22
## Prerequisites
22
23
23
24
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
24
25
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
25
-
-[Visual Studio 2019](https://visualstudio.microsoft.com/vs)
1. In **Create a new project**, filter on the **Console** project type and click on **Console App (.NET Framework)**. Click **Next**.
43
+
1. In **Create a new project**, filter on the **Console** project type and select **Console App**. If you want to create a .NET Framework app, please select **Console App (.NET Framework)** instead. Click **Next**.
40
44
41
-
1. In **Configure your new project**, enter a project name. Under **Framework**, select **.NET Framework 4.8** or higher. Click **Create**.
45
+
1. In **Configure your new project**, enter a project name. If you are creating a .NET Framework app, please select **.NET Framework 4.7.2** or higher under **Framework**. Click **Create**.
42
46
43
-
## Connect to an App Configuration store
47
+
## Use the feature flag
44
48
45
49
1. Right-click your project, and select **Manage NuGet Packages**. On the **Browse** tab, search and add the following NuGet packages to your project.
46
50
@@ -49,61 +53,108 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
49
53
Microsoft.FeatureManagement
50
54
```
51
55
52
-
1. Open *Program.cs* and add the following statements:
56
+
Make sure that the version of `Microsoft.FeatureManagement` is greater than 3.1.0.
57
+
58
+
1. Open *Program.cs* and add the following statements.
53
59
54
60
```csharp
55
61
using Microsoft.Extensions.Configuration;
56
62
using Microsoft.Extensions.Configuration.AzureAppConfiguration;
57
63
using Microsoft.FeatureManagement;
58
-
using System.Threading.Tasks;
59
64
```
60
65
61
-
1. Update the `Main` method to connect to App Configuration, specifying the `UseFeatureFlags` option so that feature flags are retrieved. Create a `ConfigurationFeatureDefinitionProvider` to provide feature flag definitions from the configuration and a `FeatureManager` to evaluate feature flags' state. Then display a message if the `Beta` feature flag is enabled.
66
+
1. Connect to App Configuration, specifying the `UseFeatureFlags` option so that feature flags are retrieved. Create a `ConfigurationFeatureDefinitionProvider` to provide feature flag definition from the configuration and a `FeatureManager` to evaluate feature flags' state. Then display a message if the `Beta` feature flag is enabled.
67
+
68
+
### [.NET](#tab/dotnet)
62
69
63
70
```csharp
64
-
public static async Task Main(string[] args)
65
-
{
66
-
IConfiguration configuration = new ConfigurationBuilder()
IFeatureDefinitionProvider featureDefinitionProvider = new ConfigurationFeatureDefinitionProvider(configuration);
83
105
84
-
Console.WriteLine("Hello World!");
85
-
Console.WriteLine("Press any key to continue ...");
86
-
Console.Read();
106
+
IFeatureManager featureManager = new FeatureManager(
107
+
featureDefinitionProvider,
108
+
new FeatureManagementOptions());
109
+
110
+
if (await featureManager.IsEnabledAsync("Beta"))
111
+
{
112
+
Console.WriteLine("Welcome to the beta!");
87
113
}
114
+
115
+
Console.WriteLine("Hello World!");
116
+
}
88
117
```
89
118
119
+
---
120
+
90
121
## Build and run the app locally
91
122
92
-
1. Set an environment variable named **ConnectionString** to the connection string of your App Configuration store. If you use the Windows command prompt, run the following command:
123
+
1. Set an environment variable named **ConnectionString** to the connection string of your App Configuration store.
1. Restart Visual Studio to allow the change to take effect.
105
146
106
-
1. Press Ctrl + F5 to build and run the console app.
147
+
1. Press Ctrl + F5 to build and run the application.
148
+
149
+
1. You should see the following outputs in the console.
150
+
151
+

152
+
153
+
1. Sign in to the [Azure portal](https://portal.azure.com). Select **All resources**, and select the App Configuration store that you created previously.
154
+
155
+
1. Select **Feature manager** and locate the **Beta** feature flag. Enable the flag by selecting the checkbox under **Enabled**.
156
+
157
+
1. Run the application again. You should see the Beta message in the console.
107
158
108
159

109
160
@@ -113,7 +164,12 @@ Add a feature flag called *Beta* to the App Configuration store and leave **Labe
113
164
114
165
## Next steps
115
166
116
-
In this quickstart, you created a feature flag in App Configuration and used it with a .NET Framework console app. To learn how to dynamically update feature flags and other configuration values without restarting the application, continue to the next tutorial.
167
+
In this quickstart, you created a feature flag in App Configuration and used it with a console app. To learn how to dynamically update feature flags and other configuration values without restarting the application, continue to the next tutorial.
description: Learn about Pure Cloud Block Store for Azure VMware Solution.
4
+
ms.topic: how-to
5
+
author: suzizuber
6
+
ms.author: v-suzuber
7
+
ms.service: azure-vmware
8
+
ms.date: 3/06/2024
9
+
---
10
+
11
+
# Pure Cloud Block store
12
+
13
+
## Pure Cloud Block Store for Azure VMware Solution
14
+
15
+
Pure Cloud Block Store, offered by Pure Storage, is one of the external block storage solutions supported by Azure VMware Solution. It helps bridge the gap by allowing customers to provision external block storage as needed to make full use of an Azure VMware Solution deployment without the need to scale out compute resources, while helping customers migrate their on-premises workloads to Azure. Pure Cloud Block Store is a 100% software-delivered product running entirely on native Azure infrastructure that brings all the relevant Purity features and capabilities to Azure.
16
+
17
+
## Onboarding and support
18
+
19
+
Pure Storage manages onboarding of Pure Cloud Block Store for Azure VMware Solution. As Pure Cloud Block Store is a customer deployed and managed solution, reach out to Pure Storage for Customer Support.
20
+
21
+
For more information, see the following resources:
22
+
23
+
-[Azure VMware Solution + CBS Implementation Guide](https://support.purestorage.com/Pure_Cloud_Block_Store/Azure_VMware_Solution_and_Cloud_Block_Store_Implementation_Guide)
title: External storage solutions for Azure VMware Solution (preview)
2
+
title: External storage solutions overview
3
3
description: Learn about external storage solutions for Azure VMware Solution private cloud.
4
4
ms.topic: how-to
5
5
author: jjaygbay1
6
6
ms.author: jacobjaygbay
7
7
ms.service: azure-vmware
8
-
ms.date: 12/12/2023
8
+
ms.date: 3/06/2024
9
9
ms.custom: engagement-fy23
10
10
---
11
11
12
-
# External storage solutions (preview)
12
+
# External storage solutions overview
13
13
14
-
> [!NOTE]
15
-
> By using Pure Cloud Block Store, you agree to the following [Microsoft supplemental Terms of Use](https://azure.microsoft.com/support/legal/preview-supplemental-terms/). It is advised NOT to run production workloads with preview features.
16
-
17
-
## External storage solutions for Azure VMware Solution (preview)
14
+
## External storage solutions for Azure VMware Solution
18
15
19
16
Azure VMware Solution is a Hyperconverged Infrastructure (HCI) service that offers VMware vSAN as the primary storage option. However, a significant requirement with on-premises VMware deployments is external storage, especially block storage. Providing the same consistent external block storage architecture in the cloud is crucial for some customers. Some workloads can't be migrated or deployed to the cloud without consistent external block storage. As a key principle of Azure VMware Solution is to enable customers to continue to use their investments and their favorite VMware solutions running on Azure, we engaged storage providers with similar goals.
20
17
21
-
Pure Cloud Block Store, offered by Pure Storage, is one such solution. It helps bridge the gap by allowing customers to provision external block storage as needed to make full use of an Azure VMware Solution deployment without the need to scale out compute resources, while helping customers migrate their on-premises workloads to Azure. Pure Cloud Block Store is a 100% software-delivered product running entirely on native Azure infrastructure that brings all the relevant Purity features and capabilities to Azure.
22
-
23
-
## Onboarding and support
24
-
25
-
During preview, Pure Storage manages onboarding of Pure Cloud Block Store for Azure VMware Solution. You can join the preview by emailing [[email protected]](mailto:[email protected]). As Pure Cloud Block Store is a customer deployed and managed solution, reach out to Pure Storage for Customer Support.
26
-
27
-
For more information, see the following resources:
18
+
## Solutions
28
19
29
-
-[Azure VMware Solution + CBS Implementation Guide](https://support.purestorage.com/Pure_Cloud_Block_Store/Azure_VMware_Solution_and_Cloud_Block_Store_Implementation_Guide)
0 commit comments