Skip to content

Commit 1f946cc

Browse files
committed
Merge branch 'regenerate-cmdlets' of https://github.com/cormacpayne/azure-powershell into regenerate-cmdlets
2 parents 45ab56f + 0e184fa commit 1f946cc

File tree

44 files changed

+2361
-959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2361
-959
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ function Test-VirtualMachine
236236

237237
$vm2 = Get-AzureRmVM -Name $vmname2 -ResourceGroupName $rgname;
238238
Assert-NotNull $vm2;
239-
# Assert-AreEqual $vm2.AvailabilitySetReference.Id $asetId;
240-
# Assert-True { $vm2.ResourceGroupName -eq $rgname }
239+
$vm2_out = $vm2 | Out-String
240+
Assert-True {$vm2_out.Contains("AvailabilitySetReference")};
241+
Assert-AreEqual $vm2.AvailabilitySetReference.Id $asetId;
242+
Assert-True { $vm2.ResourceGroupName -eq $rgname }
241243

242244
# Remove
243245
Remove-AzureRmVM -Name $vmname2 -ResourceGroupName $rgname -Force;

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/VirtualMachineBaseCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ private static int GetTabLength(Object obj, int max, int depth, List<Tuple<strin
186186
else
187187
{
188188
tupleList.Add(MakeTuple(property.Name, GetChildProperties(childObject), depth));
189+
max = Math.Max(max, property.Name.Length);
189190
}
190191
}
191192
}

src/ResourceManager/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.0.18.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
5252
</Reference>
5353
<Reference Include="Microsoft.Azure.Management.HDInsight, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
54-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.HDInsight.2.0.0\lib\net40\Microsoft.Azure.Management.HDInsight.dll</HintPath>
54+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.HDInsight.2.0.1\lib\net40\Microsoft.Azure.Management.HDInsight.dll</HintPath>
5555
<Private>True</Private>
5656
</Reference>
5757
<Reference Include="Microsoft.Azure.Management.HDInsight.Job">

src/ResourceManager/HDInsight/Commands.HDInsight.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Authorization" version="0.18.2-preview" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.HDInsight" version="2.0.0" targetFramework="net45" />
9+
<package id="Microsoft.Azure.Management.HDInsight" version="2.0.1" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Management.HDInsight.Job" version="2.0.3" targetFramework="net45" />
1111
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
1212
<package id="Microsoft.Azure.Management.Storage" version="2.4.0-preview" targetFramework="net45" />

src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@
128128
<Reference Include="Microsoft.Azure.Graph.RBAC">
129129
<HintPath>..\..\..\packages\Microsoft.Azure.Graph.RBAC.3.2.0-preview\lib\net45\Microsoft.Azure.Graph.RBAC.dll</HintPath>
130130
</Reference>
131-
<Reference Include="Microsoft.Azure.Management.HDInsight">
132-
<SpecificVersion>False</SpecificVersion>
133-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.HDInsight.2.0.0\lib\net40\Microsoft.Azure.Management.HDInsight.dll</HintPath>
131+
<Reference Include="Microsoft.Azure.Management.HDInsight, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
132+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.HDInsight.2.0.1\lib\net40\Microsoft.Azure.Management.HDInsight.dll</HintPath>
133+
<Private>True</Private>
134134
</Reference>
135135
<Reference Include="Microsoft.Azure.Management.HDInsight.Job">
136136
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/HDInsight/Commands.HDInsight/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
66
<package id="Microsoft.Azure.Graph.RBAC" version="3.2.0-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net45" />
8-
<package id="Microsoft.Azure.Management.HDInsight" version="2.0.0" targetFramework="net45" />
8+
<package id="Microsoft.Azure.Management.HDInsight" version="2.0.1" targetFramework="net45" />
99
<package id="Microsoft.Azure.Management.HDInsight.Job" version="2.0.3" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
1111
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />

src/ResourceManager/ServiceBus/Commands.ServiceBus/Microsoft.Azure.Commands.ServiceBus.dll-Help.xml

Lines changed: 1283 additions & 577 deletions
Large diffs are not rendered by default.

src/ResourceManager/ServiceBus/Commands.ServiceBus/help/Get-AzureRmServiceBusNamespace.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ schema: 2.0.0
77
# Get-AzureRmServiceBusNamespace
88

99
## SYNOPSIS
10-
{{Fill in the Synopsis}}
10+
Gets a description for the specified Service Bus namespace within the resource group.
1111

1212
## SYNTAX
1313

@@ -16,21 +16,21 @@ Get-AzureRmServiceBusNamespace [[-ResourceGroup] <String>] [[-NamespaceName] <St
1616
```
1717

1818
## DESCRIPTION
19-
{{Fill in the Description}}
19+
The **Get-AzureRmServiceBusNamespace** cmdlet gets a description for the specified Service Bus namespace within the resource group.
2020

2121
## EXAMPLES
2222

2323
### Example 1
2424
```
25-
PS C:\> {{ Add example code here }}
25+
PS C:\> Get-AzureRmServiceBusNamespace -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1
2626
```
2727

28-
{{ Add example description here }}
28+
Returns a description of the specified Service Bus namespace.
2929

3030
## PARAMETERS
3131

3232
### -NamespaceName
33-
Namespace Name.
33+
Namespace name.
3434

3535
```yaml
3636
Type: String
@@ -45,7 +45,7 @@ Accept wildcard characters: False
4545
```
4646
4747
### -ResourceGroup
48-
The name of the resource group
48+
The name of the resource group.
4949
5050
```yaml
5151
Type: String
@@ -64,12 +64,28 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6464
6565
## INPUTS
6666
67-
### System.String
67+
###-ResourceGroup
68+
System.String
69+
70+
###-NamespaceName
71+
System.String
6872
6973
## OUTPUTS
7074
7175
### System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ServiceBus.Models.NamespaceAttributes, Microsoft.Azure.Commands.ServiceBus, Version=0.0.1.0, Culture=neutral, PublicKeyToken=null]]
7276

77+
Name : SB-Example1
78+
Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example1
79+
Location : West US
80+
Sku : Name : Standard , Capacity : 1 , Tier : Standard
81+
ProvisioningState : Succeeded
82+
Status : Active
83+
CreatedAt : 1/20/2017 1:40:01 AM
84+
UpdatedAt : 1/20/2017 1:40:24 AM
85+
ServiceBusEndpoint : https://SB-Example1.servicebus.windows.net:443/
86+
Enabled : True
87+
88+
7389
## NOTES
7490

7591
## RELATED LINKS

src/ResourceManager/ServiceBus/Commands.ServiceBus/help/Get-AzureRmServiceBusNamespaceAuthorizationRule.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ schema: 2.0.0
77
# Get-AzureRmServiceBusNamespaceAuthorizationRule
88

99
## SYNOPSIS
10-
{{Fill in the Synopsis}}
10+
Gets a description of the specified authorization rule for a given namespace.
1111

1212
## SYNTAX
1313

@@ -17,21 +17,21 @@ Get-AzureRmServiceBusNamespaceAuthorizationRule [-ResourceGroup] <String> [-Name
1717
```
1818

1919
## DESCRIPTION
20-
{{Fill in the Description}}
20+
The **Get-AzureRmServiceBusNamespaceAuthorizationRule** cmdlet gets the description of the specified authorization rule in the given namespace.
2121

2222
## EXAMPLES
2323

2424
### Example 1
2525
```
26-
PS C:\> {{ Add example code here }}
26+
PS C:\> Get-AzureRmServiceBusNamespaceAuthorizationRule -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -AuthorizationRuleName AuthoRule1
2727
```
2828

29-
{{ Add example description here }}
29+
Returns the specified authorization rule description for a specified namespace.
3030

3131
## PARAMETERS
3232

3333
### -AuthorizationRuleName
34-
ServiceBus Namespace AuthorizationRule Name.
34+
The Service Bus namespace authorization rule name.
3535

3636
```yaml
3737
Type: String
@@ -46,7 +46,7 @@ Accept wildcard characters: False
4646
```
4747
4848
### -NamespaceName
49-
ServiceBus Namespace Name.
49+
The Service Bus namespace name.
5050
5151
```yaml
5252
Type: String
@@ -61,7 +61,7 @@ Accept wildcard characters: False
6161
```
6262
6363
### -ResourceGroup
64-
The name of the resource group
64+
The name of the resource group.
6565
6666
```yaml
6767
Type: String
@@ -80,12 +80,27 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8080
8181
## INPUTS
8282
83-
### System.String
83+
###-ResourceGroup
84+
System.String
85+
86+
###-NamespaceName
87+
System.String
88+
89+
###-AuthorizationRuleName
90+
System.String
8491
8592
## OUTPUTS
8693
8794
### System.Collections.Generic.List`1[[Microsoft.Azure.Commands.ServiceBus.Models.SharedAccessAuthorizationRuleAttributes, Microsoft.Azure.Commands.ServiceBus, Version=0.0.1.0, Culture=neutral, PublicKeyToken=null]]
8895

96+
Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example1/AuthorizationRules/AuthoRule1
97+
Type : Microsoft.ServiceBus/AuthorizationRules
98+
Name : AuthoRule1
99+
Location :
100+
Tags :
101+
Rights : {Listen, Send}
102+
103+
89104
## NOTES
90105

91106
## RELATED LINKS

src/ResourceManager/ServiceBus/Commands.ServiceBus/help/Get-AzureRmServiceBusNamespaceKey.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ schema: 2.0.0
77
# Get-AzureRmServiceBusNamespaceKey
88

99
## SYNOPSIS
10-
{{Fill in the Synopsis}}
10+
Gets the primary and secondary connection strings for the namespace.
1111

1212
## SYNTAX
1313

@@ -17,21 +17,21 @@ Get-AzureRmServiceBusNamespaceKey [-ResourceGroup] <String> [-NamespaceName] <St
1717
```
1818

1919
## DESCRIPTION
20-
{{Fill in the Description}}
20+
The **Get-AzureRmServiceBusNamespaceKey** cmdlet returns the primary and secondary connection strings for the given namespace.
2121

2222
## EXAMPLES
2323

2424
### Example 1
2525
```
26-
PS C:\> {{ Add example code here }}
26+
PS C:\> Get-AzureRmServiceBusNamespaceKey -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -AuthorizationRuleName AuthoRule1
2727
```
2828

29-
{{ Add example description here }}
29+
Primary and secondary connection string to the specified namespace.
3030

3131
## PARAMETERS
3232

3333
### -AuthorizationRuleName
34-
ServiceBus Namespace AuthorizationRule Name.
34+
Service Bus namespace authorization rule name.
3535

3636
```yaml
3737
Type: String
@@ -46,7 +46,7 @@ Accept wildcard characters: False
4646
```
4747
4848
### -NamespaceName
49-
ServiceBus Namespace Name.
49+
Service Bus namespace name.
5050
5151
```yaml
5252
Type: String
@@ -61,7 +61,7 @@ Accept wildcard characters: False
6161
```
6262
6363
### -ResourceGroup
64-
The name of the resource group
64+
The name of the resource group.
6565
6666
```yaml
6767
Type: String
@@ -80,12 +80,25 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8080
8181
## INPUTS
8282
83-
### System.String
83+
###-ResourceGroup
84+
System.String
85+
86+
###-NamespaceName
87+
System.String
88+
89+
###-AuthorizationRuleName
90+
System.String
8491
8592
## OUTPUTS
8693
8794
### Microsoft.Azure.Management.ServiceBus.Models.ResourceListKeys
8895
96+
PrimaryConnectionString : Endpoint=sb://sb-example1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey={SharedAccessKey value}
97+
SecondaryConnectionString : Endpoint=sb://sb-example1.servicebus.windows.net/;SharedAccessKeyName=AuthoRule1;SharedAccessKey={SharedAccessKey value}
98+
PrimaryKey : {PrimaryKey value}
99+
SecondaryKey : {SecondaryKey value}
100+
KeyName : AuthoRule1
101+
89102
## NOTES
90103
91104
## RELATED LINKS

src/ResourceManager/ServiceBus/Commands.ServiceBus/help/Get-AzureRmServiceBusQueue.md

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ schema: 2.0.0
77
# Get-AzureRmServiceBusQueue
88

99
## SYNOPSIS
10-
{{Fill in the Synopsis}}
10+
Returns a description for the specified Service Bus queue.
1111

1212
## SYNTAX
1313

@@ -17,21 +17,21 @@ Get-AzureRmServiceBusQueue [-ResourceGroup] <String> [-NamespaceName] <String> [
1717
```
1818

1919
## DESCRIPTION
20-
{{Fill in the Description}}
20+
The **Get-AzureRmServiceBusQueue** cmdlet returns a description of the specified Service Bus queue.
2121

2222
## EXAMPLES
2323

2424
### Example 1
2525
```
26-
PS C:\> {{ Add example code here }}
26+
PS C:\> Get-AzureRmServiceBusQueue -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -QueueName SB-Queue_example1
2727
```
2828

29-
{{ Add example description here }}
29+
Returns the description of the queue.
3030

3131
## PARAMETERS
3232

3333
### -NamespaceName
34-
Namespace Name.
34+
The Service Bus namespace name.
3535

3636
```yaml
3737
Type: String
@@ -46,7 +46,7 @@ Accept wildcard characters: False
4646
```
4747
4848
### -QueueName
49-
Queue Name.
49+
The queue name.
5050
5151
```yaml
5252
Type: String
@@ -61,7 +61,7 @@ Accept wildcard characters: False
6161
```
6262
6363
### -ResourceGroup
64-
The name of the resource group
64+
The name of the resource group.
6565
6666
```yaml
6767
Type: String
@@ -80,11 +80,45 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8080
8181
## INPUTS
8282
83-
### System.String
83+
###-ResourceGroup
84+
System.String
85+
86+
###-NamespaceName
87+
System.String
88+
89+
###-QueueName
90+
System.String
8491
8592
## OUTPUTS
8693
8794
### Microsoft.Azure.Commands.ServiceBus.Models.QueueAttributes
95+
LockDuration :
96+
AccessedAt : 1/1/0001 12:00:00 AM
97+
AutoDeleteOnIdle : 10675199.02:48:05.4775807
98+
EntityAvailabilityStatus :
99+
CreatedAt : 1/20/2017 2:51:35 AM
100+
DefaultMessageTimeToLive : 10675199.02:48:05.4775807
101+
DuplicateDetectionHistoryTimeWindow :
102+
EnableBatchedOperations : True
103+
DeadLetteringOnMessageExpiration : False
104+
EnableExpress : False
105+
EnablePartitioning : True
106+
IsAnonymousAccessible : False
107+
MaxDeliveryCount :
108+
MaxSizeInMegabytes : 16384
109+
MessageCount :
110+
CountDetails : Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails
111+
RequiresDuplicateDetection : False
112+
RequiresSession : False
113+
SizeInBytes :
114+
Status : Active
115+
SupportOrdering : False
116+
UpdatedAt : 1/20/2017 2:51:37 AM
117+
Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example1/queues/S
118+
B-Queue_example1
119+
Name : SB-Queue_example1
120+
Type : Microsoft.ServiceBus/Queues
121+
Location : West US
88122
89123
## NOTES
90124

0 commit comments

Comments
 (0)