This branch contains the on-going work for CLU cmdlets. Please read the [get start] (./clu-getstart.md) doc first.
This repository contains a set of PowerShell cmdlets for developers and administrators to develop, deploy and manage Microsoft Azure applications.
For detail descriptions and examples of the cmdlets, type
help azure to get all the cmdlets.help node-dev to get all Node.js development related cmdlets.help php-dev to get all PHP development related cmdlets.help <cmdlet name> to get the details of a specific cmdlet.You can also find the standalone installers for all the versions at Downloads
In general, following are the steps to start using Microsoft Azure PowerShell
Add-AzureAccount -Credential to avoid the browser pop up for Organizational account.The first step can be different for different environment you are targeting. Following are detail instructions for each supported environment.
If you use both mechanisms on the same subscription, Microsoft Azure Active Directory authentication always wins. If you want to go back to management certificate authentication, please use Remove-AzureAccount, which will remove the Microsoft Azure Active Directory information and bring management certificate authentication back in.
# Pop up an embedded browser control for you to login
Add-AzureAccount
# use the cmdlets to manage your services/applications
New-AzureWebsite -Name mywebsite -Location "West US"
# Download a file which contains the publish settings information of your subscription.
# This will open a browser window and ask you to log in to get the file.
Get-AzurePublishSettingsFile
# Import the file you just downloaded.
# Notice that the file contains credential of your subscription so you don't want to make it public
# (like check in to source control, etc.).
Import-AzurePublishSettingsFile "<file location>"
# Use the cmdlets to manage your services/applications
New-AzureWebsite -Name mywebsite -Location "West US"
# Check the environment supported by your Microsoft Azure PowerShell installation.
Get-AzureEnvironment
# Download a file which contains the publish settings information of your subscription.
# Use the -Environment parameter to target Microsoft Azure China.
# This will open a browser window and ask you to log in to get the file.
Get-AzurePublishSettingsFile -Environment "AzureChinaCloud"
# Import the file you just downloaded.
# Notice that the file contains credential of your subscription so you don't want to make it public
# (like check in to source control, etc.).
Import-AzurePublishSettingsFile "<file location>"
# Use the cmdlets to manage your services/applications
New-AzureWebsite -Name mywebsite -Location "China East"
# Add your Windows Azure Pack environment to your Microsoft Azure PowerShell installation.
# You will need to know the following information of your Windows Azure Pack environment.
# 1. URL to download the publish settings file Mandatory
# 2. Management service endpoint Optional
# 3. Management Portal URL Optional
# 4. Storage service endpoint Optional
Add-WAPackEnvironment -Name "MyWAPackEnv" `
-PublishSettingsFileUrl "URL to download the publish settings file>" `
-ServiceEndpoint "<Management service endpoint>" `
-ManagementPortalUrl "<Storage service endpoint>" `
-StorageEndpoint "<Management Portal URL>"
# Download a file which contains the publish settings information of your subscription.
# Use the -Environment parameter to target your Windows Azure Pack environment.
# This will open a browser window and ask you to log in to get the file.
Get-WAPackPublishSettingsFile -Environment "MyWAPackEnv"
# Import the file you just downloaded.
# Notice that the file contains credential of your subscription so you don't want to make it public
# (like check in to source control, etc.).
Import-WAPackPublishSettingsFile "<file location>"
# Use the cmdlets to manage your services/applications
New-WAPackWebsite -Name mywebsite
Starting from 0.8.0, we are adding a separate mode for Resource Manager. You can use the following cmdlet to switch between the
They are not designed to work together.
Switch-AzureMode AzureServiceManagement
Switch-AzureMode AzureResourceManager
All the cmdlets can be put into 3 categories:
So you can use the following cmdlet to find out all the cmdlets for your environment
# Return all the cmdlets for Microsoft Azure
Get-Command *Azure*
# Return all the cmdlets for Windows Azure Pack
Get-Command *WAPack*
If you want to migrate some scripts from Microsoft Azure to Windows Azure Pack or vice versa, as long as the cmdlets you are using are in category 1, you should be able to migrate smoothly.
Be sure to check out the Microsoft Azure Developer Forums on Stack Overflow if you have trouble with the provided code.
If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines.
If you encounter any bugs with the library please file an issue in the Issues section of the project.
Content type
Image
Digest
Size
310.1 MB
Last updated
over 10 years ago
docker pull azuresdk/clu-nightly