GithubHelp home page GithubHelp logo

azure-samples / aci-docs-sample-dotnet Goto Github PK

View Code? Open in Web Editor NEW
8.0 21.0 6.0 24 KB

.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.

Home Page: https://docs.microsoft.com/azure/container-instances/

License: MIT License

C# 100.00%
azure aci container instances

aci-docs-sample-dotnet's Introduction

page_type languages products description urlFragment
sample
csharp
azure
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.
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

aci-docs-sample-dotnet's People

Contributors

microsoftopensource avatar mmacy avatar msftgits avatar v-rajagt-zz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.