MyGit

Azure-Samples/aci-docs-sample-dotnet

Fork: 6 Star: 8 (更新于 2024-10-31 22:21:29)

license: MIT

Language: C# .

.NET Core console application demonstrating several common operations in Azure Container Instances (ACI). The code in this project backs one or more articles on docs.microsoft.com.

最后发布版本: 83708 ( 2019-09-13 08:36:59)

官方网址 GitHub网址


page_type: sample languages:

  • csharp products:
  • azure description: "This .NET Core 2.0 console application demonstrates several common Azure Container Instances (ACI) operations in C# using the fluent APIs in the Azure Management Libraries for .NET." urlFragment: aci-docs-sample-dotnet

Azure Container Instances .NET code samples for documentation

This .NET Core 2.0 console application demonstrates several common Azure Container Instances (ACI) operations in C# using the fluent APIs in the Azure Management Libraries for .NET.

The code in this project is ingested into one or more articles on docs.microsoft.com. Modifying the existing #region tags in the sample source may impact the rendering of code snippets on docs.microsoft.com, and is discouraged.

Features

The code in this sample project demonstrates the following operations:

  • Authenticate with Azure
  • Create resource group
  • Create single- and multi-container container groups
    • Expose application container to internet with public DNS name
    • Multi-container group includes both application and sidecar containers
    • Demonstrate async container group create
    • Run a task-based container with custom command line and environment variables
  • Get and print container group details
  • Delete container groups
  • Delete resource group

Getting Started

Prerequisites

Run the sample

  1. Use the Azure CLI (or Cloud Shell) to generate an Azure credentials file (more info)

    az ad sp create-for-rbac --sdk-auth > my.azureauth

  2. Set environment variable AZURE_AUTH_LOCATION to the full path of the credentials file

  3. git clone https://github.com/Azure-Samples/aci-docs-sample-dotnet

  4. cd aci-docs-sample-dotnet

  5. dotnet run

Resources

最近版本更新:(数据更新于 2024-09-05 19:19:43)

2019-09-13 08:36:59 83708

主题(topics):

aci, azure, container, instances

Azure-Samples/aci-docs-sample-dotnet同语言 C#最近更新仓库

2024-11-19 11:38:46 jellyfin/jellyfin

2024-11-15 10:33:01 DigitalRuby/IPBan

2024-11-13 04:41:56 dotnet/runtime

2024-11-07 00:43:03 huiyadanli/RevokeMsgPatcher

2024-11-06 13:04:33 Pik-4/HsMod

2024-11-05 02:46:31 microsoft/PowerToys