Skip to content

Commit 24d8938

Browse files
committed
Fix help files and Get cmdlet
1 parent 0580254 commit 24d8938

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

src/ResourceManager/PowerBI/ChangeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## Version 1.0.0
2323
* New Cmdlet Get-AzureRmPowerBIEmbeddedCapacity
24-
- Gets the details of an PowerBI Embedded Capacity.
24+
Gets the details of a PowerBI Embedded Capacity.
2525
* New Cmdlet New-AzureRmPowerBIEmbeddedCapacity
2626
- Creates a new PowerBI Embedded Capacity
2727
* New Cmdlet Remove-AzureRmPowerBIEmbeddedCapacity
@@ -33,4 +33,4 @@
3333
* New Cmdlet Test-AzureRmPowerBIEmbeddedCapacity
3434
- Tests the existence of an instance of PowerBI Embedded Capacity
3535
* New Cmdlet Update-AzureRmPowerBIEmbeddedCapacity
36-
- Modifies an instance of PowerBI Embedded Capacity
36+
- Modifies an instance of PowerBI Embedded Capacity

src/ResourceManager/PowerBI/Commands.PowerBI/Commands/GetAzureRmPowerBIEmbeddedCapacity.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ public override void ExecuteCmdlet()
5858
string resourceGroupName = string.Empty;
5959
string capacityName = string.Empty;
6060

61+
if (!string.IsNullOrEmpty(ResourceId))
62+
{
63+
PowerBIUtils.GetResourceGroupNameAndCapacityName(ResourceId, out resourceGroupName, out capacityName);
64+
ResourceGroupName = resourceGroupName;
65+
Name = capacityName;
66+
}
67+
6168
if (!string.IsNullOrEmpty(Name))
6269
{
6370
// Get for single capacity
@@ -66,12 +73,6 @@ public override void ExecuteCmdlet()
6673
}
6774
else
6875
{
69-
if (!string.IsNullOrEmpty(ResourceId))
70-
{
71-
PowerBIUtils.GetResourceGroupNameAndCapacityName(ResourceId, out resourceGroupName, out capacityName);
72-
ResourceGroupName = resourceGroupName;
73-
Name = capacityName;
74-
}
7576
// List all capacities in given resource group if avaliable otherwise all capacities in the subscription
7677
var list = PowerBIClient.ListCapacities(ResourceGroupName);
7778
list.ForEach(capacity => WriteObject(capacity));

src/ResourceManager/PowerBI/Commands.PowerBI/help/AzureRM.PowerBI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This topic displays help topics for the Azure PowerBI cmdlets.
1212

1313
## AzureRM.PowerBI Cmdlets
1414
### [Get-AzureRmPowerBIEmbeddedCapacity](Get-AzureRmPowerBIEmbeddedCapacity.md)
15-
Gets the details of an PowerBI Embedded Capacity.
15+
Gets the details of a PowerBI Embedded Capacity.
1616

1717
### [New-AzureRmPowerBIEmbeddedCapacity](New-AzureRmPowerBIEmbeddedCapacity.md)
1818
Creates a new PowerBI Embedded Capacity
@@ -30,5 +30,5 @@ Suspends an instance of PowerBI Embedded Capacity
3030
Tests the existence of an instance of PowerBI Embedded Capacity
3131

3232
### [Update-AzureRmPowerBIEmbeddedCapacity](Update-AzureRmPowerBIEmbeddedCapacity.md)
33-
Modifies an instance of PowerBI Embedded Capacity
33+
Modifies an instance of PowerBI Embedded Capacity
3434

src/ResourceManager/PowerBI/Commands.PowerBI/help/Get-AzureRmPowerBIEmbeddedCapacity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ schema: 2.0.0
1111
# Get-AzureRmPowerBIEmbeddedCapacity
1212

1313
## SYNOPSIS
14-
Gets the details of an PowerBI Embedded Capacity.
14+
Gets the details of a PowerBI Embedded Capacity.
1515

1616
## SYNTAX
1717

@@ -24,7 +24,7 @@ Get-AzureRmPowerBIEmbeddedCapacity [-ResourceGroupName] <String> [-Name] <String
2424
```
2525

2626
## DESCRIPTION
27-
The Get-AzureRmPowerBIEmbeddedCapacity cmdlet gets the details of an PowerBI Embedded Capacity.
27+
The Get-AzureRmPowerBIEmbeddedCapacity cmdlet gets the details of a PowerBI Embedded Capacity.
2828

2929
## EXAMPLES
3030

src/ResourceManager/PowerBI/Commands.PowerBI/help/New-AzureRmPowerBIEmbeddedCapacity.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ New-AzureRmPowerBIEmbeddedCapacity
2121
[-Name] <String>
2222
[-Location] <String>
2323
[-Sku] <String>
24+
[-Administrator] <String>
2425
[[-Tag] <Hashtable>]
25-
[[-Administrator] <String>]
2626
[-WhatIf]
2727
[-Confirm]
2828
[<CommonParameters>]
@@ -35,14 +35,14 @@ The New-AzureRmPowerBIEmbeddedCapacity cmdlet creates a new PowerBI Embedded Cap
3535

3636
### Example 1
3737
```
38-
PS C:\> New-AzureRmPowerBIEmbeddedCapacity -ResourceGroupName "testRG" -Name "testcapacity" -Location "West US" -Sku "A1"
38+
PS C:\> New-AzureRmPowerBIEmbeddedCapacity -ResourceGroupName "testRG" -Name "testcapacity" -Location "West Central US" -Sku "A1" -Administrator [email protected]
3939
Administrator : {[email protected]}
4040
State : Succeeded
4141
ProvisioningState : Succeeded
4242
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
4343
Name : testcapacity
4444
Type : Microsoft.PowerBIDedicated/capacities
45-
Location : West US
45+
Location : West Central US
4646
Sku : A1
4747
Tier : PBIE_Azure
4848
Tag : {}

src/ResourceManager/PowerBI/Commands.PowerBI/help/Remove-AzureRmPowerBIEmbeddedCapacity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ Remove-AzureRmPowerBIEmbeddedCapacity
2626
```
2727

2828
## DESCRIPTION
29-
The Remove-AzureRmPowerBIEmbeddedCapacity cmdlet deletes an instance of PowerBI Embedded Capacity
29+
The Remove-AzureRmPowerBIEmbeddedCapacity cmdlet deletes an instance of PowerBI Embedded Capacity
3030

3131
## EXAMPLES
3232

3333
### Example 1
3434
```
3535
PS C:\> Remove-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG"
3636
Sku : A1
37-
Tier : PBIE_Azure
37+
Tier : PBIE_Azure
3838
Administrator : {{[email protected]}}
3939
State : Succeeded
4040
ProvisioningState : Succeeded

0 commit comments

Comments
 (0)