You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains a set of PowerShell cmdlets for developers and administrators to develop, deploy and manage Microsoft Azure applications.
4
-
5
-
* For documentation on how to build and deploy applications to Microsoft Azure please see the [Microsoft Azure Documentation Center](http://azure.microsoft.com/en-us/documentation/).
6
-
* For comprehensive documentation on the developer cmdlets see [How to install and configure Azure PowerShell](http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/).
7
-
* For comprehensive documentation on the full set of Microsoft Azure cmdlets see [Microsoft Azure Management Center](http://go.microsoft.com/fwlink/?linkID=254459&clcid=0x409).
8
-
9
-
## Features
10
-
11
-
* Account
12
-
* Get and import Azure publish settings
13
-
* Login with Microsoft account or Organizational account through Microsoft Azure Active Directory
14
-
* Environment
15
-
* Get the different out-of-box Microsoft Azure environments
16
-
* Add/Set/Remove customized environments (like your Windows Azure Pack environments)
17
-
* Get Azure publish settings for a particular environment
18
-
* Subscription
19
-
* Manage Azure subscription
20
-
* Manage AffinityGroup
21
-
* Website
22
-
* Manage website, such as CRUD, start and stop.
23
-
* Manage slot
24
-
* Manage WebJob
25
-
* Deploy project via WebDeploy
26
-
* Diagnostics
27
-
* Configure site and application diagnostics
28
-
* Log streaming
29
-
* Save log
30
-
* Cloud Services
31
-
* Create scaffolding for cloud service and role. Role support includes Node.js, PHP, Django and Cache.
32
-
* Manage cloud service and role, such as CRUD, start and stop.
33
-
* Manage extension
34
-
* Start/Stop Azure emulator.
35
-
* Manage certificate.
36
-
* Manage cloud service extensions
37
-
* Remote desktop
38
-
* Diagnostics
39
-
* Microsoft Antimalware
40
-
* Windows Azure Diagnostics
41
-
* Storage
42
-
* Manage storage account and access key.
43
-
* Manage storage container and blob, with paging.
44
-
* Copy storage blob.
45
-
* Manage storage table.
46
-
* Manage storage queue.
47
-
* Create SAS token.
48
-
* Manage metrics and logging.
49
-
* Configure timeout
50
-
* SQL Database
51
-
* CRUD support for database server, database and firewall rule.
52
-
* Get database server quota.
53
-
* Get/Set database server service objective.
54
-
* Manage database copies and active geo-replication.
55
-
* Get dropped databases that can be restored.
56
-
* Issue requests to restore a live or dropped database to a point in time.
57
-
* Issue requests to recover a database from an unavailable database server.
58
-
* Manage database and database server auditing policy.
59
-
* Service Bus
60
-
* Manage service bus namespaces.
61
-
* VM
62
-
* Manage VM, such as CRUD, import/export and start/stop/restart.
63
-
* Manage VM image and VM image disks.
64
-
* Manage disk, such as CRUD.
65
-
* Manage VM endpoint, such as CRUD and ACL.
66
-
* Get/Set VM sub net.
67
-
* Manage certificate and SSH key.
68
-
* PowerShell remoting
69
-
* Manage extension
70
-
* BG Info
71
-
* Puppet
72
-
* Custom Script
73
-
* Access
74
-
* Microsoft Antimalware
75
-
* PowerShell DSC
76
-
* Windows Azure Diagnostics
77
-
* Public IP, reserved IP and internal load balancer
78
-
* Deployment
79
-
* Manage deployment, such as CRUD, move, upgrade and restore.
80
-
* Get/Create DNS settings of a deployment.
81
-
* VNet
82
-
* Manage virtual network config, connection and gateway.
83
-
* Manage static IP
84
-
* Azure Media Services
85
-
* Create, read and delete Media Services Accounts
86
-
* Generate new account keys for Media Services Accounts
87
-
* HDInsight
88
-
* Manage clusters, such as CRUD, add/set storage
89
-
* Manage jobs, such as CRUD, start/stop/wait/invoke
90
-
* Manage HTTP service access. such as grant/revoke
91
-
* Store
92
-
* View available Microsoft Azure Store Add-On plans.
93
-
* Purchase, view, upgrade and remove Microsoft Azure Store Add-On instances.
94
-
* Utility
95
-
* Test whether a name is available. Currently support cloud service name, storage account name and service bus namespace name.
96
-
* Get the list of geo locations supported by Azure.
97
-
* Get the list of OS supported by Azure.
98
-
* Direct you to Azure portal.
99
-
* Windows Azure Pack
100
-
* Web Site: CRUD web site, deployment, configure and get log, start/stop/restart/show web site
101
-
* Service Bus: CRD namespace
102
-
* VM: CRUD VM, get OS disk, size profile and VM template, start/stop/restart/suspend/resume VM
103
-
* VNET: CRUD VNET and subnet.
104
-
* Cloud Service: CRUD cloud service.
105
-
* ExpressRoute
106
-
* Manage dedicated circuit
107
-
* Manage BGP peering
108
-
* Scheduler
109
-
* Manage job collections
110
-
* Manage HTTP and storage queue jobs
111
-
* Resource Manager
112
-
* Manage resource groups and deployments
113
-
* Query and download gallery templates
114
-
* Manage individual resources
115
-
* Traffic Manager
116
-
* Manage profiles and endpoints
117
-
* Azure Automation
118
-
* Manage automation accounts
119
-
* Manage automation jobs, runbooks and schedules
120
-
121
-
For detail descriptions and examples of the cmdlets, type
122
-
*```help azure``` to get all the cmdlets.
123
-
*```help node-dev``` to get all Node.js development related cmdlets.
124
-
*```help php-dev``` to get all PHP development related cmdlets.
125
-
*```help python-dev``` to get all Python development related cmdlets.
3
+
PowerShell cmdlets for developers and administrators to provision, manage and deploy infrastructure and applications in Azure.
4
+
5
+
* For more information on Azure services, see the [Microsoft Azure Documentation Center](http://azure.microsoft.com/en-us/documentation/).
6
+
* To get started, see [How to install and configure Azure PowerShell](http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/).
7
+
* For documentation on individual cmdlets see [Microsoft Azure Powershell](http://go.microsoft.com/fwlink/?linkID=254459&clcid=0x409).
8
+
9
+
## Help
10
+
11
+
Get help and examples from inside Azure Powershell:
12
+
*```help azure``` to list all the Azure cmdlets.
126
13
*```help <cmdlet name>``` to get the details of a specific cmdlet.
Fork and clone the repo, and follow the [Microsoft Azure PowerShell Developer Guide](https://github.com/Azure/azure-powershell/wiki/Microsoft-Azure-PowerShell-Developer-Guide)
158
29
159
-
In general, following are the steps to start using Microsoft Azure PowerShell
30
+
## Get Started Using Azure PowerShell
160
31
161
-
* Get yourself authenticated with Microsoft Azure. For details, please check out [this article](http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/).
162
-
* Option 1: Login with your Microsoft account or Organizational account directly from PowerShell. Microsoft Azure Active Directory authentication is used inthiscase. No management certificate is needed.
163
-
* Starting from 0.8.6, you can use ``Add-AzureAccount -Credential`` to avoid the browser pop up for Organizational account.
164
-
* Option 2: Download and import a publish settings file which contains a management certificate.
165
-
* Use the cmdlets
32
+
You must be authenticated to manage your Azure subscription with the Azure PowerShell cmdlets. For details, refer to [How to Install and Configure Azure PowerShell](http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/).
33
+
* Option 1: Login with your Microsoft account or Organizational account directly from PowerShell. No management certificate is required. Microsoft Azure Active Directory authentication is used.
34
+
* Option 2: Download and import a publish settings file which contains a management certificate.
166
35
167
-
The first step can be different for different environment you are targeting. Following are detail instructions for each supported environment.
36
+
Authentication setup varies by environment. Details for each environment below.
168
37
169
38
### Microsoft Azure
170
-
171
-
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.
39
+
If you configure both a credential and management certificate, the Microsoft Azure Active Directory will be used. To return to the management certificate, use ``Remove-AzureAccount`` to remove the Organizational account.
172
40
173
41
#### Login directly from PowerShell (Microsoft Azure Active Directory authentication)
174
42
175
43
```powershell
176
-
# Pop up an embedded browser control for you to login
44
+
# Displays a browser window for login
177
45
Add-AzureAccount
178
46
179
-
# use the cmdlets to manage your services/applications
# Use the cmdlets to manage your services/applications
245
-
New-WAPackWebsite -Name mywebsite
246
100
```
247
-
## 2 Modes
101
+
## Switch-AzureMode
248
102
249
-
Starting from 0.8.0, we are adding a separate mode for Resource Manager. You can use the following cmdlet to switch between the
103
+
Azure Powershell has two modes. Service Management mode is for the original infrastructure and deployment model. Resource Manager mode is for the newer APIs providing templated deployments and role-based access controls.
250
104
251
-
* Service management: cmdlets using the Azure service management API
252
-
* Resource manager: cmdlets using the Azure Resource Manager API
253
-
254
-
They are not designed to work together.
105
+
They are not designed to work together. Switch between the two modes using ```Switch-AzureMode```.
255
106
256
107
```powershell
257
108
Switch-AzureMode AzureServiceManagement
258
109
Switch-AzureMode AzureResourceManager
259
110
```
260
111
261
-
## Find Your Way
262
-
263
-
All the cmdlets can be put into 3 categories:
112
+
## Environment-Specific cmdlets
264
113
265
-
1. Cmdlets support both Microsoft Azure and Windows Azure Pack
266
-
2. Cmdlets only support both Microsoft Azure
267
-
3. Cmdlets only support Windows Azure Pack
268
-
269
-
* For category 1, we are using an "Azure" prefix in the cmdlet name and adding an alias with "WAPack" prefix.
270
-
* For category 2, we are using an "Azure" prefix in the cmdlet name.
271
-
* For category 2, we are using an "WAPack" prefix in the cmdlet name.
272
-
273
-
So you can use the following cmdlet to find out all the cmdlets for your environment
114
+
Some cmdlets support both the public Microsoft Azure environment and your private Windows Azure Pack environment. Some support only one environment. Aliases are used to easily identify the environments a cmdlet supports.
274
115
275
116
```powershell
276
117
# Return all the cmdlets for Microsoft Azure
@@ -280,18 +121,13 @@ Get-Command *Azure*
280
121
Get-Command *WAPack*
281
122
```
282
123
283
-
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.
284
-
285
124
## Need Help?
286
125
287
-
Be sure to check out the [Microsoft Azure Developer Forums on Stack Overflow](http://go.microsoft.com/fwlink/?LinkId=234489) if you have trouble with the provided code.
126
+
Check out the [Microsoft Azure Developer Forums on Stack Overflow](http://go.microsoft.com/fwlink/?LinkId=234489) if you have trouble.
288
127
289
128
## Contribute Code or Provide Feedback
290
129
291
-
If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://windowsazure.github.com/guidelines.html).
292
-
293
-
If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-powershell/issues) section of the project.
130
+
If you would like to contribute to this project, follow the instructions at [Microsoft Azure Open Source Contribution Guidelines](http://azure.github.io/guidelines.html).
294
131
295
-
# Learn More
132
+
If you encounter any bugs, please open an [issue](https://github.com/Azure/azure-powershell/issues).
0 commit comments