Giter Site home page Giter Site logo

jamestao / azure-sdk-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azzhag/azure-sdk-tools

1.0 1.0 0.0 56.38 MB

Tools for developing applications for Windows Azure

Home Page: http://www.windowsazure.com/en-us/develop/overview/

License: Apache License 2.0

Shell 0.78% C# 98.50% PowerShell 0.67% JavaScript 0.05% PHP 0.01%

azure-sdk-tools's Introduction

Windows Azure PowerShell

This repo contains a set of PowerShell commandlets for developers and administrators to deploy and manage Windows Azure applications. It includes the following:

  • Cmdlets for developers to deploy both node.js and PHP applications.
  • Cmdlets for IT Administrators to manage their Windows Azure environments.
  • For documentation on how to build and deploy applications to Windows Azure please see the Windows Azure Developer Center.

    For comprehensive documentation on the developer cmdlets see here.

    For comprehensive documentation on the full set of Windows Azure cmdlets see Windows Azure Management Center.

    Developer Cmdlets

    Help

    • help node-dev - List node.js development cmdlets
    • help php-dev - List PHP development cmdlets

    Configure machines for publishing to the cloud.

    • Get-AzurePublishSettingsFile - Downloads a Windows Azure publish profile to your local computer
    • Import-AzurePublishSettingsFile - Imports the Publish Profile to enable publishing to Azure and managing hosted services

    Create services and roles that are preconfigured to use Node.js.

    • New-AzureServiceProject - Creates scaffolding for a new service
    • Add-AzureNodeWebRole - Creates scaffolding for a Node.js application using web role which will be hosted in the cloud via IIS
    • Add-AzureNodeWorkerRole - Creates scaffolding for a Node.js application using worker role which will be hosted in the cloud via node.exe
    • Add-AzurePHPWebRole - Creates scaffolding for a PHP application using web role which will be hosted in the cloud via IIS
    • Add-AzurePHPWorkerRole - Creates scaffolding for a PHP application which will be hosted in the cloud via php.exe

    Debug your applications in the local compute and storage emulators

    • Start-AzureEmulator - Starts both the compute and storage emulators and executes the service
    • Stop-AzureEmulator - Stops the compute emulator

    Publish your service to the cloud and configure publish settings

    • Publish-AzureServiceProject - Publish the current service to the cloud
    • Set-AzureServiceProject - Configure service name, deployment location and storage account to use for publishing the service to the cloud
    • Set-AzureServiceProjectRole - Configure role instance count

    Manage your hosted services

    • Start-AzureService - Starts a hosted service.
    • Stop-AzureService - Stops a hosted service
    • Remove-AzureService - Removes a hosted service
    • Get-AzureStorageAccount - Displays storage account details for the current Azure subscription.
    • Get-AzureStorageKey - Displays storage account keys for the specified storage account name.
    • Enable-AzureServiceProjectRemoteDesktop - Enables remote desktop access to a hosted service
    • Disable-AzureServiceProjectRemoteDesktop - Disables remote desktop access to a hosted service

    Getting Started

    Download Source Code

    To get the source code of the SDK via git just type:

    git clone https://github.com/WindowsAzure/azure-sdk-tools.git
    cd ./azure-sdk-tools

    General Install Prerequisites

    Node.js Prerequisites (developer only)

    PHP Prerequisites (developer only)

    Configure PowerShell to automatically load commandlets

    1. Create a folder inside your user's Documents folder and name it WindowsPowerShell
    2. Inside that folder create a file called Microsoft.PowerShell_profile.ps1
    3. Edit the file in a text editor and add the following contents
      Import-Module
      PATH_TO_AZURE-SDK-TOOLS_CLONE\Package\Release\Microsoft.WindowsAzure.Management.psd1
    4. After you build the commandlets project, you can then open a PowerShell window and you should be able to use the commandlets. Please note that if you want to rebuild the project, you have close the PowerShell window, and then reopen it.

    Quick start

    1. First, create an Azure hosted service called HelloWorld by typing
      New-AzureServiceProject HelloWorld
    2. Inside the HelloWorld folder, add a new Web Role by typing
      Add-AzureNodeWebRole or Add-AzurePHPWebRole
    3. Test out the application in the local emulator by typing
      Start-AzureEmulator -Launch
    4. You are now ready to publish to the cloud service. Go ahead and register for a Windows Azure account and make sure you have your credentials handy.
    5. Get your account's publish settings and save them to a file
      Get-AzurePublishSettingsFile
    6. Now import the settings
      Import-AzurePublishSettingsFile PATH_TO_PUBLISH_SETTINGS_FILE
    7. You are now ready to publish to the cloud. Make sure you specify a unique name for your application to ensure there aren't any conflicts during the publish process
      Publish-AzureServiceProject -ServiceName UNIQUE_NAME -Launch

    Need Help?

    Be sure to check out the Windows Azure Developer Forums on Stack Overflow if you have trouble with the provided code.

    Contribute Code or Provide Feedback

    If you would like to become an active contributor to this project please follow the instructions provided in Windows Azure Projects Contribution Guidelines.

    If you encounter any bugs with the library please file an issue in the Issues section of the project.

    Learn More

azure-sdk-tools's People

Contributors

glennblock avatar joostdenijs avatar kirillg avatar loudej avatar markcowl avatar shawnb576 avatar tglaza avatar tjanczuk avatar

Stargazers

 avatar

Watchers

 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.