Skip to content

Commit f2cc09e

Browse files
committed
Conceptual documentation improvements from feedback.
1 parent fba48a2 commit f2cc09e

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

azureps-cmdlets-docs/ResourceManager/docs-conceptual/get-started-azureps.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The first step is to make sure you have the latest version of the Azure PowerShe
2727
command line.
2828

2929
You should see the version number of the AzureRM module installed and loaded in your PowerShell
30-
session.
30+
session. The latest version is can be found in the [release notes](release-notes-azureps.md).
3131

3232
## Log in to Azure
3333

@@ -91,9 +91,9 @@ $vnet = New-AzureRmVirtualNetwork -ResourceGroupName $resourceGroup -Location $l
9191
-Name MYvNET1 -AddressPrefix 192.168.0.0/16 -Subnet $subnetConfig
9292
9393
# Create a public IP address and specify a DNS name
94-
$pip = New-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Location $location `
94+
$publicIp = New-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Location $location `
9595
-Name "mypublicdns$(Get-Random)" -AllocationMethod Static -IdleTimeoutInMinutes 4
96-
$pip | Select-Object Name,IpAddress
96+
$publicIp | Select-Object Name,IpAddress
9797
9898
# Create an inbound network security group rule for port 3389
9999
$nsgRuleRDP = New-AzureRmNetworkSecurityRuleConfig -Name myNetworkSecurityGroupRuleRDP -Protocol Tcp `
@@ -106,7 +106,7 @@ $nsg = New-AzureRmNetworkSecurityGroup -ResourceGroupName $resourceGroup -Locati
106106
107107
# Create a virtual network card and associate with public IP address and NSG
108108
$nic = New-AzureRmNetworkInterface -Name myNic1 -ResourceGroupName $resourceGroup -Location $location `
109-
-SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -NetworkSecurityGroupId $nsg.Id
109+
-SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $publicIp.Id -NetworkSecurityGroupId $nsg.Id
110110
```
111111

112112
### Create the virtual machine
@@ -144,7 +144,7 @@ Now log on to your newly created Windows Server VM using Remote Desktop and the
144144
of the VM. The following command displays the public IP address created in the previous script.
145145

146146
```powershell
147-
$pip | Select-Object Name,IpAddress
147+
$publicIp | Select-Object Name,IpAddress
148148
```
149149

150150
```
@@ -195,9 +195,9 @@ $vnet = New-AzureRmVirtualNetwork -ResourceGroupName $resourceGroup -Location $l
195195
-Name MYvNET2 -AddressPrefix 192.168.0.0/16 -Subnet $subnetConfig
196196
197197
# Create a public IP address and specify a DNS name
198-
$pip = New-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Location $location `
198+
$publicIp = New-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Location $location `
199199
-Name "mypublicdns$(Get-Random)" -AllocationMethod Static -IdleTimeoutInMinutes 4
200-
$pip | Select-Object Name,IpAddress
200+
$publicIp | Select-Object Name,IpAddress
201201
202202
# Create an inbound network security group rule for port 22
203203
$nsgRuleSSH = New-AzureRmNetworkSecurityRuleConfig -Name myNetworkSecurityGroupRuleSSH -Protocol Tcp `
@@ -210,7 +210,7 @@ $nsg = New-AzureRmNetworkSecurityGroup -ResourceGroupName $resourceGroup -Locati
210210
211211
# Create a virtual network card and associate with public IP address and NSG
212212
$nic = New-AzureRmNetworkInterface -Name myNic2 -ResourceGroupName $resourceGroup -Location $location `
213-
-SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $pip.Id -NetworkSecurityGroupId $nsg.Id
213+
-SubnetId $vnet.Subnets[0].Id -PublicIpAddressId $publicIp.Id -NetworkSecurityGroupId $nsg.Id
214214
```
215215

216216
### Create the virtual machine

azureps-cmdlets-docs/ResourceManager/docs-conceptual/manage-subscriptions-azureps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PowerShell to execute commands against a particular subscription.
5050
2. Set the default.
5151
5252
```powershell
53-
Get-AzureRmSubscription -SubscriptionName "My Demos" | Select-AzureRmSubscription
53+
Select-AzureRmSubscription -SubscriptionName "My Demos"
5454
```
5555
5656
3. Verify the change by running the `Get-AzureRmContext` cmdlet.

azureps-cmdlets-docs/ResourceManager/docs-conceptual/overview.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@ The following samples can help you learn how to perform common scenarios with Az
3434
install the Service Management version of Azure PowerShell. For more information, see
3535
[Install the Azure PowerShell Service Management module](install-azure-ps?view=azuresmps-3.7.0).
3636

37-
### Need a better understanding of Azure?
38-
39-
For more information about Azure, consult the [Azure documentation](/azure/).
40-
41-
To learn more about automating with Azure PowerShell, watch this video:
42-
[Take Control of the Cloud with the Microsoft Azure PowerShell Cmdlets](https://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/WAD-B305#fbid=).
43-
4437
### Need help with PowerShell?
4538

4639
If you are unfamiliar with PowerShell you may find an introduction to PowerShell helpful. To get started with PowerShell, see

azureps-cmdlets-docs/ResourceManager/docs-conceptual/queries-azureps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.author: sewhee
1414

1515
# Querying for Azure resources
1616

17-
There is no special query language required to query resources using Azure PowerShell. In
17+
Querying in PowerShell can be completed by using built-in cmdlets. In
1818
PowerShell, cmdlet names take the form of **_Verb-Noun_**. The cmdlets using the verb **_Get_** are
1919
the query cmdlets. The cmdlet nouns are the types of Azure resources that are acted upon by the
2020
cmdlet verbs.
@@ -61,7 +61,7 @@ path to that nested property. The following example shows how to select the VM N
6161
from the `Get-AzureRmVM` cmdlet.
6262

6363
```powershell
64-
Get-AzureRmVM | Select-Object name,@{n='OSType';e={$_.StorageProfile.OSDisk.OSType}}
64+
Get-AzureRmVM | Select-Object name,@{Name='OSType'; Expression={$_.StorageProfile.OSDisk.OSType}}
6565
```
6666

6767
```

0 commit comments

Comments
 (0)