Git Product home page Git Product logo

isabella232 / network-go-manage-network-interface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/network-go-manage-network-interface

0.0 0.0 0.0 6 KB

Manage multiples network interfaces for VMs in Go- create a VM with multiple network interfaces, configure multiple network interfaces, list network interfaces, delete a network interface

License: MIT License

Go 100.00%

network-go-manage-network-interface's Introduction

services platforms author
Network
Go
mcardosos

Getting Started with Network - Manage Network Interface - in Go

  Azure Network sample for managing network interfaces -
   - Create a virtual machine with multiple network interfaces
   - Configure a network interface
   - List network interfaces
   - Delete a network interface.

Running this Sample

  1. If you don't already have it, install Go 1.7.

  2. Clone the repository.

git clone https://github.com:Azure-Samples/network-go-manage-network-interface.git
  1. Install the dependencies using glide.
cd network-go-manage-network-interface
glide install
  1. Create an Azure service principal either through Azure CLI, PowerShell or the portal.

  2. Set the following environment variables using the information from the service principle that you created.

export AZURE_TENANT_ID={your tenant id}
export AZURE_CLIENT_ID={your client id}
export AZURE_CLIENT_SECRET={your client secret}
export AZURE_SUBSCRIPTION_ID={your subscription id}
> [AZURE.NOTE] On Windows, use `set` instead of `export`.
  1. Run the sample.
go run example.go

More information

Please refer to Azure SDK for Go for more information. 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 [email protected] with any additional questions or comments.

network-go-manage-network-interface's People

Contributors

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