GithubHelp home page GithubHelp logo

isabella232 / create-azure-subscription-dotnet-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/create-azure-subscription-dotnet-core

0.0 0.0 0.0 13 KB

An example on how to use .NET Core to create Azure EA subscriptions programmatically

License: MIT License

C# 100.00%

create-azure-subscription-dotnet-core's Introduction

page_type languages products description
sample
csharp
dotnet
azure
This is a simple .NET Core sample that uses the Azure .NET SDK to programmatically create EA subscriptions with a service principal.

Programmatically create Azure EA Subscriptions with .NET Core

This is a simple .NET Core sample that uses the Azure .NET SDK to programmatically create EA subscriptions with a service principal.

Run this sample

  1. Get the .NET Core SDK.

  2. Create an Azure service principal either through Azure CLI, PowerShell or the portal.

  3. As an EA Account Owner, follow instructions to give the service principal access to your enrollment account.

  4. Clone the repository and install dependencies

    git clone https://github.com/Azure-Samples/create-azure-subscription-dotnet-core.git
    cd create-azure-subscription-dotnet-core
    dotnet restore
  5. Create an appsettings.json using your tenant ID, application client ID, and client secret from the service principal that you created. Example:

    {
        "tenantId": "yourtenant.onmicrosoft.com",
        "appId": "app ID of the service principal",
        "secret": "client secret of the service principal"
    }
  6. Run the sample.

    dotnet run

Resources

create-azure-subscription-dotnet-core's People

Contributors

jlian avatar microsoftopensource avatar msftgits avatar supernova-eng 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.