https://github.com/structed/azuresdkcreateresources
A small end-to-end example on how to create a VM with a public IP, and a NIC attached to a vnet/subnet using the new Azure SDK for .NET.
https://github.com/structed/azuresdkcreateresources
azure azure-sdk dotnet example
Last synced: 7 months ago
JSON representation
A small end-to-end example on how to create a VM with a public IP, and a NIC attached to a vnet/subnet using the new Azure SDK for .NET.
- Host: GitHub
- URL: https://github.com/structed/azuresdkcreateresources
- Owner: Structed
- License: mit
- Created: 2022-10-17T20:48:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T16:14:02.000Z (about 3 years ago)
- Last Synced: 2025-06-12T02:06:20.375Z (8 months ago)
- Topics: azure, azure-sdk, dotnet, example
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure SDK Create Resources Example
A small end-to-end example on how to create a VM with a public IP, and a NIC attached to a vnet/subnet using the new [Azure SDK for .NET](https://aka.ms/azsdk/net).
# Prerequisites
* [Azure Subscription](https://azure.microsoft.com/en-us/solutions/gaming/)
* [Azure Service Principal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal)
* [.NET 6](https://dot.net)
# Deploying
Please make sure to create an [Azure Service Principal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal).
This service principal needs to have create permissions on the resource group you created (you can configure the Resource Group name in the program)
## Environment Variables
> These are optional, but if you do not set them, you will be prompted by Terraform for their values.
| Name | Description |
|-------------------------------|---------------------------------|
| `AZ_NET_SDK_SAMPLE_TENANT_ID` | The Service Principal Tenant ID |
| `AZ_NET_SDK_SAMPLE_CLIENT_ID` | The Service Principal Client ID |
| `AZ_NET_SDK_SAMPLE_SECRET` | The Service Principal Secret |