page_type | languages | products | extensions | ||||||
---|---|---|---|---|---|---|---|---|---|
sample |
|
|
|
Getting started on managing policy definition in C#
Azure PolicyDefinition sample for managing policy definitions -
- Create a policy definition
- Create another policy definition
- List policy definitions
- Delete policy definitions.
Running this Sample
To run this sample, first you need to set up a way to authenticate to Azure with Azure Identity.
Some options are:
- Through the Azure CLI Login.
- Via Visual Studio.
- Setting Environment Variables.
git clone https://github.com/Azure-Samples/resources-dotnet-manage-policy-definition.git
cd resources-dotnet-manage-policy-definition
dotnet run
More information
Azure Management Libraries for C# Azure .Net Developer Center If you don't have a Microsoft Azure subscription you can get a FREE trial account here
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.