Skip to content

Commit 0580254

Browse files
committed
Fix parameters and help files
1 parent e64f631 commit 0580254

7 files changed

+45
-46
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ public class GetAzurePowerBIEmbeddedCapacity : PowerBICmdletBase
3535
HelpMessage = "Name of resource group under which the user want to retrieve the capacity.")]
3636
[Parameter(
3737
ParameterSetName = CapacityParameterSet,
38-
Mandatory = true,
39-
Position = 0,
38+
Mandatory = false,
4039
HelpMessage = "Name of resource group under which the user want to retrieve the capacity.")]
4140
public string ResourceGroupName { get; set; }
4241

4342
[Parameter(
4443
ParameterSetName = CapacityParameterSet,
4544
Mandatory = true,
46-
Position = 1,
45+
Position = 0,
4746
HelpMessage = "Name of a specific capacity.")]
4847
public string Name { get; set; }
4948

src/ResourceManager/PowerBI/Commands.PowerBI/Commands/NewAzureRmPowerBIEmbeddedCapacity.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,19 @@ public class NewPowerBIEmbeddedCapacity : PowerBICmdletBase
6060
public string Sku { get; set; }
6161

6262
[Parameter(
63-
ValueFromPipelineByPropertyName = true,
64-
Mandatory = false,
65-
HelpMessage = "A string,string dictionary of tags associated with this capacity")]
63+
ValueFromPipelineByPropertyName = true,
64+
Position = 4,
65+
Mandatory = true,
66+
HelpMessage = "A comma separated capacity names to set as administrators on the capacity")]
6667
[ValidateNotNull]
67-
public Hashtable Tag { get; set; }
68+
public string[] Administrator { get; set; }
6869

6970
[Parameter(
7071
ValueFromPipelineByPropertyName = true,
7172
Mandatory = false,
72-
HelpMessage = "A comma separated capacity names to set as administrators on the capacity")]
73+
HelpMessage = "A string,string dictionary of tags associated with this capacity")]
7374
[ValidateNotNull]
74-
public string[] Administrator { get; set; }
75+
public Hashtable Tag { get; set; }
7576

7677
public override void ExecuteCmdlet()
7778
{

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

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ The Get-AzureRmPowerBIEmbeddedCapacity cmdlet gets the details of an PowerBI Emb
3131
### Example 1: Get resource group capacities
3232
```
3333
PS C:\>Get-AzureRmPowerBIEmbeddedCapacity -ResourceGroupName "testRG"
34-
Sku : A1
35-
Tier : PBIE_Azure
36-
Administrator : {{[email protected]}}
34+
Administrator : {[email protected]}
3735
State : Succeeded
3836
ProvisioningState : Succeeded
3937
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
4038
Name : testcapacity
4139
Type : Microsoft.PowerBIDedicated/capacities
4240
Location : West US
41+
Sku : A1
42+
Tier : PBIE_Azure
4343
Tag : {}
4444
45-
Sku : A4
46-
Tier : PBIE_Azure
47-
Administrator : {{[email protected]}}
45+
Administrator : {[email protected]}
4846
State : Succeeded
4947
ProvisioningState : Succeeded
5048
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/mycapacity
5149
Name : mycapacity
5250
Type : Microsoft.PowerBIDedicated/capacities
5351
Location : West US
52+
Sku : A4
53+
Tier : PBIE_Azure
5454
Tag : {}
5555
```
5656

@@ -59,16 +59,16 @@ This command gets all Azure PowerBI Embedded Capacity in the resource group name
5959
### Example 2: Get a capacity
6060
```
6161
PS C:\>Get-AzureRmPowerBIEmbeddedCapacity -ResourceGroupName "testRG" -Name "testcapacity"
62-
Sku : A1
63-
Tier : PBIE_Azure
64-
Administrator : {{[email protected]}}
62+
Administrator : {[email protected]}
6563
State : Succeeded
6664
ProvisioningState : Succeeded
6765
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
6866
Name : testcapacity
6967
Type : Microsoft.PowerBIDedicated/capacities
7068
Location : West US
7169
Tag : {}
70+
Sku : A1
71+
Tier : PBIE_Azure
7272
```
7373

7474
This command gets the Azure PowerBI Embedded Capacity named testcapacity in the resource group named testRG.
@@ -84,7 +84,6 @@ Parameter Sets: ByResourceGroup, ByCapacity
8484
Aliases:
8585

8686
Required: False
87-
Position: 0
8887
Default value: None
8988
Accept wildcard characters: False
9089
```

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ The New-AzureRmPowerBIEmbeddedCapacity cmdlet creates a new PowerBI Embedded Cap
3636
### Example 1
3737
```
3838
PS C:\> New-AzureRmPowerBIEmbeddedCapacity -ResourceGroupName "testRG" -Name "testcapacity" -Location "West US" -Sku "A1"
39-
Sku : A1
40-
Tier : PBIE_Azure
41-
Administrator : {{[email protected]}}
39+
Administrator : {[email protected]}
4240
State : Succeeded
4341
ProvisioningState : Succeeded
4442
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
4543
Name : testcapacity
4644
Type : Microsoft.PowerBIDedicated/capacities
4745
Location : West US
46+
Sku : A1
47+
Tier : PBIE_Azure
4848
Tag : {}
4949
```
5050

@@ -96,7 +96,6 @@ Accept wildcard characters: False
9696
9797
### -Sku
9898
The name of the Sku for the capacity.
99-
Valid values are: 'A1', 'A2', 'A3', 'A4', 'A5', 'A6'
10099
101100
```yaml
102101
Type: String
@@ -110,23 +109,25 @@ Default value: None
110109
Accept wildcard characters: False
111110
```
112111
113-
### -Tag
114-
Key-value pairs in the form of a hash table set as tags on the capacity.
112+
### -Administrator
113+
A comma separated capacity names to set as administrator on the capacity
115114
116115
```yaml
117-
Type: Hashtable
116+
Type: String[]
118117
Parameter Sets: (All)
119118
Aliases:
120119

121-
Required: False
120+
Required: True
121+
Position: 4
122122
Default value: None
123123
Accept wildcard characters: False
124124
```
125-
### -Administrator
126-
A comma separated capacity names to set as administrator on the capacity
125+
126+
### -Tag
127+
Key-value pairs in the form of a hash table set as tags on the capacity.
127128
128129
```yaml
129-
Type: String[]
130+
Type: Hashtable
130131
Parameter Sets: (All)
131132
Aliases:
132133

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ The Resume-AzureRmPowerBIEmbeddedCapacity cmdlet resumes an instance of PowerBI
3232

3333
### Example 1
3434
```
35-
PS C:\> Resume-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG"
36-
Sku : A1
37-
Tier : PBIE_Azure
38-
Administrator : {{[email protected]}}
35+
PS C:\> Resume-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG" -PassThru
36+
Administrator : {[email protected]}
3937
State : Succeeded
4038
ProvisioningState : Succeeded
4139
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
4240
Name : testcapacity
4341
Type : Microsoft.AnalysisServices/servers
4442
Location : West US
43+
Sku : A1
44+
Tier : PBIE_Azure
4545
Tag : {}
4646
```
4747

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ The Suspend-AzureRmPowerBIEmbeddedCapacity cmdlet suspends an instance of PowerB
3232

3333
### Example 1
3434
```
35-
PS C:\> Suspend-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG"
36-
Sku : A1
37-
Tier : PBIE_Azure
38-
Administrator : {{[email protected]}}
39-
State : Succeeded
40-
ProvisioningState : Succeeded
35+
PS C:\> Suspend-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG" -PassThru
36+
Administrator : {[email protected]}
37+
State : Paused
38+
ProvisioningState : Paused
4139
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBIDedicated/capacities/testcapacity
4240
Name : testcapacity
4341
Type : Microsoft.PowerBIDedicated/capacities
4442
Location : West US
43+
Sku : A1
44+
Tier : PBIE_Azure
4545
Tag : {}
4646
```
4747

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ The Update-AzureRmPowerBIEmbeddedCapacity cmdlet modifies an instance of PowerBI
3535

3636
### Example 1
3737
```
38-
PS C:\> Update-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -ResourceGroupName "testRG" -Tag "key1:value1,key2:value2" -Administrator "[email protected]"
39-
Sku : A1
40-
Tier : PBIE_Azure
41-
Administrator : {{[email protected]}}
38+
PS C:\> Update-AzureRmPowerBIEmbeddedCapacity -Name "testcapacity" -Tag @{"key1" = "value1";"key2" = "value2"} -Administrator "[email protected], [email protected]" -PassThru
39+
4240
State : Succeeded
4341
ProvisioningState : Succeeded
4442
Id : /subscriptions/78e47976-.../resourceGroups/testRG/providers/Microsoft.PowerBI/capacities/testcapacity
4543
Name : testcapacity
4644
Type : Microsoft.PowerBIDedicated/capacities
4745
Location : West US
48-
Tag : {{key1:value1},{key2:value2}}
46+
Sku : A1
47+
Tier : PBIE_Azure
48+
Tag : {[key1, value1], [key2, value2]}
4949
```
5050

5151
Modifies the capacity named testcapacity in resourcegroup testgroup to set the tags as key1:value1 and key2:value2 and administrator to [email protected]
@@ -81,7 +81,6 @@ Accept wildcard characters: False
8181
8282
### -Sku
8383
The name of the Sku for the capacity.
84-
Valid values are: 'A1', 'A2', 'A3', 'A4', 'A5', 'A6'
8584
8685
```yaml
8786
Type: String

0 commit comments

Comments
 (0)