Skip to content

Commit 3c1572d

Browse files
authored
Updated readme as referenced in issue 14021 (Azure#19954)
* Updated readme as referenced in issue 14021 * Reverted table due to formatting issues Co-authored-by: Mike F. Robbins <mikefrobbins@users.noreply.github.com>
1 parent 76c8995 commit 3c1572d

File tree

1 file changed

+84
-51
lines changed

1 file changed

+84
-51
lines changed

README.md

Lines changed: 84 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,51 @@
22

33
# ![AzureIcon] ![PowershellIcon] Microsoft Azure PowerShell
44

5-
This repository contains PowerShell cmdlets for developers and administrators to develop, deploy, and manage Microsoft Azure applications.
5+
This repository contains PowerShell cmdlets for developers and administrators to develop, deploy,
6+
administer, and manage Microsoft Azure resources.
67

7-
Try it out in [Azure Cloud Shell](https://portal.azure.com/#cloudshell)!
8+
The Az PowerShell module is preinstalled in [Azure Cloud Shell][AzureCloudShell].
89

910
## Modules
10-
Below is a table containing our Azure PowerShell rollup module.
11+
12+
The following table contains a list of the Azure PowerShell rollup modules.
1113

1214
Description | Module Name | PowerShell Gallery Link
1315
----------------- | ------------ | -----------------------
1416
Azure PowerShell | `Az` | [![Az]][AzGallery]
1517
Azure PowerShell with preview modules | `AzPreview` | [![AzPreview]][AzPreviewGallery]
1618

17-
For a full list of modules found in this repository, please see the [Azure PowerShell Modules][AzurePowerShelModules] document.
19+
For a complete list of the modules found in this repository, see
20+
[Azure PowerShell Modules][AzurePowerShellModules].
1821

1922
## Installation
2023

2124
### PowerShell Gallery
2225

23-
Run the following command in an elevated PowerShell session to install the rollup module for Azure PowerShell cmdlets:
26+
Run the following command in a PowerShell session to install the Az PowerShell module:
2427

2528
```powershell
26-
Install-Module -Name Az
29+
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
2730
```
2831

29-
This module runs on Windows PowerShell with [.NET Framework 4.7.2][DotNetFramework] or greater, or [the latest version of PowerShell 7][PowerShellCore]. The `Az` module replaces `AzureRM`. You should not install `Az` side-by-side with `AzureRM`.
32+
[The latest version of PowerShell 7][PowerShellCore] is the recommended version of PowerShell for
33+
use with the Az PowerShell module on all platforms including Windows, Linux, and macOS. This module
34+
also runs on Windows PowerShell 5.1 with [.NET Framework 4.7.2][DotNetFramework] or higher.
35+
36+
The `Az` module replaces `AzureRM`. You should not install `Az` side-by-side with `AzureRM`.
3037

31-
If you have an earlier version of the Azure PowerShell modules installed from the PowerShell Gallery and would like to update to the latest version, run the following commands in an elevated PowerShell session:
38+
If you have an earlier version of the Azure PowerShell module installed from the PowerShell Gallery
39+
and would like to update to the latest version, run the following command in a PowerShell session:
3240

3341
```powershell
34-
Update-Module -Name Az
42+
Update-Module -Name Az -Scope CurrentUser -Force
3543
```
3644

37-
`Update-Module` installs the new version side-by-side with previous versions. It does not uninstall the previous versions.
45+
`Update-Module` installs the new version side-by-side with previous versions. It does not uninstall
46+
the previous versions.
3847

39-
For detailed instructions on installing Azure PowerShell, please refer to the [installation guide][InstallationGuide].
48+
For more information on installing Azure PowerShell, see the
49+
[installation guide][InstallationGuide].
4050

4151
## Usage
4252

@@ -45,26 +55,30 @@ For detailed instructions on installing Azure PowerShell, please refer to the [i
4555
To connect to Azure, use the [`Connect-AzAccount`][ConnectAzAccount] cmdlet:
4656

4757
```powershell
48-
# Device Code login - Provides a link to sign into Azure via your web browser
58+
# Opens a new browser window to log into your Azure account.
4959
Connect-AzAccount
5060
51-
# Service Principal login - Use a previously created service principal to log in
52-
Connect-AzAccount -ServicePrincipal -ApplicationId 'http://my-app' -Credential $PSCredential -TenantId $TenantId
61+
# Log in with a previously created service principal. Use the application ID as the username, and the secret as password.
62+
$Credential = Get-Credential
63+
Connect-AzAccount -ServicePrincipal -Credential $Credential -TenantId $TenantId
5364
```
5465

55-
To log into a specific cloud (_AzureChinaCloud_, _AzureCloud_, _AzureUSGovernment_), use the `-Environment` parameter:
66+
To log into a specific cloud (_AzureChinaCloud_, _AzureCloud_, _AzureUSGovernment_), use the
67+
`Environment` parameter:
5668

5769
```powershell
58-
# Specific cloud login - Logs into the Azure China cloud
70+
# Log into a specific cloud, for example the Azure China cloud.
5971
Connect-AzAccount -Environment AzureChinaCloud
6072
```
6173

62-
### Getting and setting your Azure PowerShell session context
74+
### Session context
6375

64-
A session context persists login information across Azure PowerShell modules and PowerShell instances. To view the context you are using in the current session, which contains the subscription and tenant, use the [`Get-AzContext`][GetAzContext] cmdlet:
76+
A session context persists login information across Azure PowerShell modules and PowerShell
77+
instances. Use the [`Get-AzContext`][GetAzContext] cmdlet to view the context you are using in the
78+
current session. The results contain the Azure tenant and subscription.
6579

6680
```powershell
67-
# Gets the Azure PowerShell context for the current PowerShell session
81+
# Get the Azure PowerShell context for the current PowerShell session
6882
Get-AzContext
6983
7084
# Lists all available Azure PowerShell contexts in the current PowerShell session
@@ -81,7 +95,8 @@ Get-AzSubscription
8195
Get-AzSubscription -TenantId $TenantId
8296
```
8397

84-
To change the subscription that you are using for your current context, use the [`Set-AzContext`][SetAzContext] cmdlet:
98+
To change the subscription that you are using for your current context, use the
99+
[`Set-AzContext`][SetAzContext] cmdlet:
85100

86101
```powershell
87102
# Set the Azure PowerShell context to a specific Azure subscription
@@ -91,20 +106,21 @@ Set-AzContext -Subscription $SubscriptionName -Name 'MyContext'
91106
Get-AzSubscription -SubscriptionName $SubscriptionName | Set-AzContext -Name 'MyContext'
92107
```
93108

94-
For details on Azure PowerShell contexts, see our [persisted credentials guide][PersistedCredentialsGuide].
109+
For details on Azure PowerShell contexts, see [Azure PowerShell context objects][PersistedCredentialsGuide].
95110

96111
### Discovering cmdlets
97112

98-
Use the `Get-Command` cmdlet to discover cmdlets within a specific module, or cmdlets that follow a specific search pattern:
113+
Use `Get-Command` to discover cmdlets within a specific module, or cmdlets that follow a specific
114+
search pattern:
99115

100116
```powershell
101117
# List all cmdlets in the Az.Accounts module
102118
Get-Command -Module Az.Accounts
103119
104-
# List all cmdlets that contain VirtualNetwork
120+
# List all cmdlets that contain VirtualNetwork in their name
105121
Get-Command -Name '*VirtualNetwork*'
106122
107-
# List all cmdlets that contain VM in the Az.Compute module
123+
# List all cmdlets that contain VM in their name in the Az.Compute module
108124
Get-Command -Module Az.Compute -Name '*VM*'
109125
```
110126

@@ -113,63 +129,75 @@ Get-Command -Module Az.Compute -Name '*VM*'
113129
To view the help content for a cmdlet, use the `Get-Help` cmdlet:
114130

115131
```powershell
116-
# View the basic help content for Get-AzSubscription
132+
# View basic help information for Get-AzSubscription
117133
Get-Help -Name Get-AzSubscription
118134
119135
# View the examples for Get-AzSubscription
120136
Get-Help -Name Get-AzSubscription -Examples
121137
122-
# View the full help content for Get-AzSubscription
138+
# View the full help for Get-AzSubscription
123139
Get-Help -Name Get-AzSubscription -Full
124140
125-
# View the help content for Get-AzSubscription on https://docs.microsoft.com
141+
# View the online version of the help from https://learn.microsoft.com for Get-AzSubscription
126142
Get-Help -Name Get-AzSubscription -Online
127143
```
128144

129-
For detailed instructions on using Azure PowerShell, please refer to the [getting started guide][GettingStartedGuide].
145+
For detailed instructions on using Azure PowerShell, see the [getting started guide][GettingStartedGuide].
130146

131147
## Reporting Issues and Feedback
132148

133149
### Issues
134150

135-
If you find any bugs when using the Azure PowerShell modules, please file an issue in our [GitHub issues][GitHubIssues] page. Please fill out the provided template with the appropriate information.
151+
If you find any bugs when using Azure PowerShell, file an issue in our [GitHub repo][GitHubRepo].
152+
Fill out the issue template with the appropriate information.
136153

137-
Alternatively, be sure to check out the [Azure Community Support](https://azure.microsoft.com/en-us/support/community/) if you have issues with the cmdlets or Azure services.
154+
Alternatively, see [Azure Community Support][AzureCommunitySupport] if you
155+
have issues with Azure PowerShell or Azure services.
138156

139157
### Feedback
140158

141-
If there is a feature you would like to see in Azure PowerShell, please use the [`Send-Feedback`][SendFeedback] cmdlet, or file an issue in our [GitHub issues][GitHubIssues] page to provide the Azure PowerShell team direct feedback.
159+
If there is a feature you would like to see in Azure PowerShell, use the
160+
[`Send-Feedback`][SendFeedback] cmdlet, or file an issue in our [GitHub repo][GitHubRepo].
142161

143162
## Contribute Code
144163

145-
If you would like to become an active contributor to this project, please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines][ContributionGuidelines].
164+
If you would like to become a contributor to this project, see the instructions provided in
165+
[Microsoft Azure Projects Contribution Guidelines][ContributionGuidelines].
146166

147-
Additional information about contributing to this repository can be found in the [`CONTRIBUTING.md`][Contributing] document and the [_Azure PowerShell Developer Guide_][DeveloperGuide] document.
167+
Additional information about contributing to this repository can be found in
168+
[`CONTRIBUTING.md`][Contributing] and the [_Azure PowerShell Developer Guide_][DeveloperGuide].
148169

149170
## Telemetry
150171

151-
Azure PowerShell collects telemetry data by default. Microsoft aggregates collected data to identify patterns of usage to identify common issues and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell does not collect any private or personal data.
152-
For example, the usage data helps identify issues such as cmdlets with low success and helps prioritize our work.
153-
While we appreciate the insights this data provides, we also understand that not everyone wants to send usage data. You can disable data collection with the [`Disable-AzDataCollection`](/powershell/module/az.accounts/disable-azdatacollection) cmdlet. You can also read our [privacy statement](https://privacy.microsoft.com/privacystatement) to learn more.
172+
Azure PowerShell collects telemetry data by default. Microsoft aggregates collected data to identify
173+
patterns of usage to identify common issues and to improve the experience of Azure PowerShell.
174+
Microsoft Azure PowerShell does not collect any private or personal data. For example, the usage
175+
data helps identify issues such as cmdlets with low success and helps prioritize our work. While we
176+
appreciate the insights this data provides, we also understand that not everyone wants to send usage
177+
data. You can disable data collection with the
178+
[`Disable-AzDataCollection`][DisableAzDataCollection] cmdlet. To learn more, see our
179+
[privacy statement][PrivacyStatement].
154180

155181
## Learn More
156182

157183
* [Microsoft Azure Documentation][MicrosoftAzureDocs]
158184
* [PowerShell Documentation][PowerShellDocs]
159185

160186
---
161-
_This project has adopted the [Microsoft Open Source Code of Conduct][CodeOfConduct]. For more information see the [Code of Conduct FAQ][CodeOfConductFaq] or contact [opencode@microsoft.com][OpenCodeEmail] with any additional questions or comments._
187+
_This project has adopted the [Microsoft Open Source Code of Conduct][CodeOfConduct]. For more
188+
information see the [Code of Conduct FAQ][CodeOfConductFaq] or contact
189+
[opencode@microsoft.com][OpenCodeEmail] with any additional questions or comments._
162190

163191
<!-- References -->
164192

165193
<!-- Local -->
166-
[GitHubIssues]: https://github.com/Azure/azure-powershell/issues
194+
[GitHubRepo]: https://github.com/Azure/azure-powershell/issues
167195

168196
[Contributing]: CONTRIBUTING.md
169197

170198
[AzureIcon]: documentation/images/MicrosoftAzure-32px.png
171199
[PowershellIcon]: documentation/images/MicrosoftPowerShellCore-32px.png
172-
[AzurePowerShelModules]: documentation/azure-powershell-modules.md
200+
[AzurePowerShellModules]: documentation/azure-powershell-modules.md
173201
[DeveloperGuide]: documentation/development-docs/azure-powershell-developer-guide.md
174202

175203
<!-- External -->
@@ -186,16 +214,21 @@ _This project has adopted the [Microsoft Open Source Code of Conduct][CodeOfCond
186214
[CodeOfConductFaq]: https://opensource.microsoft.com/codeofconduct/faq/
187215
[OpenCodeEmail]: mailto:opencode@microsoft.com
188216

217+
[AzureCloudShell]: https://shell.azure.com/
218+
[AzureCommunitySupport]: https://azure.microsoft.com/support/community/
219+
[PrivacyStatement]: https://privacy.microsoft.com/privacystatement
220+
189221
<!-- Docs -->
190-
[MicrosoftAzureDocs]: https://docs.microsoft.com/en-us/azure/
191-
[PowerShellDocs]: https://docs.microsoft.com/en-us/powershell/
192-
193-
[InstallationGuide]: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps
194-
[GettingStartedGuide]: https://docs.microsoft.com/en-us/powershell/azure/get-started-azureps
195-
[PersistedCredentialsGuide]: https://docs.microsoft.com/en-us/powershell/azure/context-persistence
196-
197-
[ConnectAzAccount]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/connect-azaccount
198-
[GetAzContext]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/get-azcontext
199-
[GetAzSubscription]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/get-azsubscription
200-
[SetAzContext]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/set-azcontext
201-
[SendFeedback]: https://docs.microsoft.com/en-us/powershell/module/az.accounts/send-feedback
222+
[MicrosoftAzureDocs]: https://learn.microsoft.com/azure/
223+
[PowerShellDocs]: https://learn.microsoft.com/powershell/
224+
225+
[InstallationGuide]: https://learn.microsoft.com/powershell/azure/install-az-ps
226+
[GettingStartedGuide]: https://learn.microsoft.com/powershell/azure/get-started-azureps
227+
[PersistedCredentialsGuide]: https://learn.microsoft.com/powershell/azure/context-persistence
228+
229+
[ConnectAzAccount]: https://learn.microsoft.com/powershell/module/az.accounts/connect-azaccount
230+
[GetAzContext]: https://learn.microsoft.com/powershell/module/az.accounts/get-azcontext
231+
[GetAzSubscription]: https://learn.microsoft.com/powershell/module/az.accounts/get-azsubscription
232+
[SetAzContext]: https://learn.microsoft.com/powershell/module/az.accounts/set-azcontext
233+
[SendFeedback]: https://learn.microsoft.com/powershell/module/az.accounts/send-feedback
234+
[DisableAzDataCollection]: https://learn.microsoft.com/powershell/module/az.accounts/disable-azdatacollection

0 commit comments

Comments
 (0)