Skip to content

Commit ee24b97

Browse files
authored
Merge branch 'release-4.3.0' into feature/updates4aug
2 parents 468d2e9 + f3ad702 commit ee24b97

File tree

879 files changed

+4087
-24681
lines changed

Some content is hidden

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

879 files changed

+4087
-24681
lines changed

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/help/Add-AzureAnalysisServicesAccount.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
213213
214214
## OUTPUTS
215215
216+
### Microsoft.Azure.Commands.AnalysisServices.Dataplane.AsAzureProfile
217+
216218
## NOTES
217219
Alias: Login-AzureAsAccount
218220

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Dataplane/help/Restart-AzureAnalysisServicesInstance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Accept wildcard characters: False
9595
9696
## OUTPUTS
9797
98+
### System.Boolean
99+
98100
## NOTES
99101
Alias: Restart-AzureAsInstance
100102

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Add-AzureRmApiManagementRegion.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
144144
145145
## INPUTS
146146
147+
### PsApiManagement
148+
149+
Parameter 'ApiManagement' accepts value of type 'PsApiManagement' from the pipeline
150+
147151
## OUTPUTS
148152
153+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
154+
149155
## NOTES
150156
* The cmdlet writes updated **PsApiManagement** instance to pipeline.
151157

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Backup-AzureRmApiManagement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
134134
135135
## OUTPUTS
136136
137+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
138+
137139
## NOTES
138140
139141
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Get-AzureRmApiManagement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8585
8686
## OUTPUTS
8787
88+
### System.Collections.Generic.List`1[Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement]
89+
8890
## NOTES
8991

9092
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Get-AzureRmApiManagementProperty.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
105105
106106
## OUTPUTS
107107
108+
### System.Collections.Generic.IList`1[Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProperty]
109+
110+
### Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementProperty
111+
108112
## NOTES
109113

110-
## RELATED LINKS
114+
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Get-AzureRmApiManagementSsoToken.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6767
6868
## OUTPUTS
6969
70+
### System.String
71+
7072
## NOTES
7173
7274
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Import-AzureRmApiManagementHostnameCertificate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
137137
138138
## OUTPUTS
139139
140+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameCertificate
141+
140142
## NOTES
141143
142144
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
265265
266266
## OUTPUTS
267267
268+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
269+
268270
## NOTES
269271
270272
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagementGroup.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ Accept wildcard characters: False
6262
```
6363
6464
### -ExternalId
65-
For external groups, this property contains the id of the group from the external identity provider, e.g. Azure Active Directory aad://contoso5api.onmicrosoft.com/groups/12ad42b1-592f-4664-a77b4250-2f2e82579f4c; otherwise the value is null.```yaml
65+
For external groups, this property contains the id of the group from the external identity provider, e.g. Azure Active Directory aad://contoso5api.onmicrosoft.com/groups/12ad42b1-592f-4664-a77b4250-2f2e82579f4c; otherwise the value is null.
66+
67+
```yaml
6668
Type: String
6769
Parameter Sets: (All)
6870
Aliases:
@@ -105,7 +107,9 @@ Accept wildcard characters: False
105107
```
106108
107109
### -Type
108-
Group Type. Custom Group is User defined Group. System Group includes Administrator, Developers and Guests. You cannot create or update a System Group. External Group is groups from External Identity Provider like Azure Active Directory. This parameter is optional and by default assumed to be a Custom Group.```yaml
110+
Group Type. Custom Group is User defined Group. System Group includes Administrator, Developers and Guests. You cannot create or update a System Group. External Group is groups from External Identity Provider like Azure Active Directory. This parameter is optional and by default assumed to be a Custom Group.
111+
112+
```yaml
109113
Type: PsApiManagementGroupType
110114
Parameter Sets: (All)
111115
Aliases:

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagementHostnameConfiguration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
7070
7171
## OUTPUTS
7272
73+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementHostnameConfiguration
74+
7375
## NOTES
7476
7577
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagementRegion.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
103103
104104
## OUTPUTS
105105
106+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementRegion
107+
106108
## NOTES
107109
108110
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/New-AzureRmApiManagementVirtualNetwork.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8888
8989
## OUTPUTS
9090
91+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagementVirtualNetwork
92+
9193
## NOTES
9294
9395
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
114114
115115
## OUTPUTS
116116
117+
### System.Boolean
118+
117119
## NOTES
118120
119121
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagementProductFromGroup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
102102
103103
## OUTPUTS
104104
105+
### System.Boolean
106+
105107
## NOTES
106108
107109
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagementRegion.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9393
9494
## INPUTS
9595
96+
### PsApiManagement
97+
98+
Parameter 'ApiManagement' accepts value of type 'PsApiManagement' from the pipeline
99+
96100
## OUTPUTS
97101
102+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
103+
98104
## NOTES
99105
100106
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Remove-AzureRmApiManagementUserFromGroup.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9999
100100
## OUTPUTS
101101
102+
### System.Boolean
103+
102104
## NOTES
103105
104106
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Restore-AzureRmApiManagement.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
129129
130130
## OUTPUTS
131131
132+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
133+
132134
## NOTES
133135
134136
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Set-AzureRmApiManagementHostnames.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
148148
149149
## INPUTS
150150
151+
### PsApiManagement
152+
153+
Parameter 'ApiManagement' accepts value of type 'PsApiManagement' from the pipeline
154+
151155
## OUTPUTS
152156
157+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
158+
153159
## NOTES
154160
155161
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Update-AzureRmApiManagementDeployment.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
259259
260260
## INPUTS
261261
262+
### PsApiManagement
263+
264+
Parameter 'ApiManagement' accepts value of type 'PsApiManagement' from the pipeline
265+
262266
## OUTPUTS
263267
268+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
269+
264270
## NOTES
265271
266272
## RELATED LINKS

src/ResourceManager/ApiManagement/Commands.ApiManagement/help/Update-AzureRmApiManagementRegion.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,14 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
132132
133133
## INPUTS
134134
135+
### PsApiManagement
136+
137+
Parameter 'ApiManagement' accepts value of type 'PsApiManagement' from the pipeline
138+
135139
## OUTPUTS
136140
141+
### Microsoft.Azure.Commands.ApiManagement.Models.PsApiManagement
142+
137143
## NOTES
138144
139145
## RELATED LINKS

src/ResourceManager/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
## Current Release
2121
* Made changes to AutomationDSC* cmdlets to pull more than 100 records
2222
* Resolved the issue where the Verbose streams stop working after calling some Automation cmdlets (for example Get-AzureRmAutomationVariable, Get-AzureRmAutomationJob).
23+
* Support for NodeConfiguration Build versioning added in StartAzureAutomationDscCompilationJob and ImportAzureAutomationDscNodeConfiguration.
2324
* Bug fixes for existing issues - Fixes the alias issue is #3775 and the runOn alias and support for HybridWorkers.
2425

2526
## Version 3.2.1

src/ResourceManager/Automation/Commands.Automation.Test/Commands.Automation.Test.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
<Compile Include="UnitTests\GetAzureAutomationScheduleTest.cs" />
170170
<Compile Include="UnitTests\GetAzureAutomationVariableTest.cs" />
171171
<Compile Include="UnitTests\GetAzureAutomationWebhookTest.cs" />
172+
<Compile Include="UnitTests\ImportAzureAutomationDscNodeConfigurationTest.cs" />
172173
<Compile Include="UnitTests\NewAzureAutomationAccountTest.cs" />
173174
<Compile Include="UnitTests\GetAzureAutomationAccountTest.cs" />
174175
<Compile Include="UnitTests\NewAzureAutomationCertificateTest.cs" />
@@ -194,6 +195,7 @@
194195
<Compile Include="UnitTests\SetAzureAutomationRunbookTest.cs" />
195196
<Compile Include="UnitTests\SetAzureAutomationScheduleTest.cs" />
196197
<Compile Include="UnitTests\SetAzureAutomationWebhookTest.cs" />
198+
<Compile Include="UnitTests\StartAzureAutomationDscCompilationJobTest.cs" />
197199
<Compile Include="UnitTests\StartAzureAutomationRunbookTest.cs" />
198200
<Compile Include="UnitTests\StopAzureAutomationJobTest.cs" />
199201
<Compile Include="UnitTests\SuspendAzureAutomationJobTest.cs" />
@@ -239,6 +241,7 @@
239241
<None Include="ScenarioTests\Resources\fastjob.ps1">
240242
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
241243
</None>
244+
<None Include="ScenarioTests\Resources\ContosoDscConfiguration.ps1" />
242245
<None Include="ScenarioTests\Resources\Test-Workflow.ps1">
243246
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
244247
</None>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Configuration ContosoDscConfiguration {
2+
3+
Node "TEST-PC1" {
4+
WindowsFeature MyFeatureInstance {
5+
Ensure = "Present"
6+
Name = "RSAT"
7+
}
8+
WindowsFeature My2ndFeatureInstance {
9+
Ensure = "Present"
10+
Name = "Bitlocker"
11+
}
12+
}
13+
}
14+
15+
ContosoDscConfiguration
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Automation.Cmdlet;
16+
using Microsoft.Azure.Commands.Automation.Common;
17+
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
18+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
19+
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
20+
using Moq;
21+
using Xunit;
22+
23+
namespace Microsoft.Azure.Commands.ResourceManager.Automation.Test.UnitTests
24+
{
25+
public class ImportAzureAutomationDscNodeConfigurationTest : RMTestBase
26+
{
27+
private Mock<IAutomationClient> mockAutomationClient;
28+
29+
private MockCommandRuntime mockCommandRuntime;
30+
31+
private ImportAzureAutomationDscNodeConfiguration cmdlet;
32+
33+
public ImportAzureAutomationDscNodeConfigurationTest()
34+
{
35+
this.mockAutomationClient = new Mock<IAutomationClient>();
36+
this.mockCommandRuntime = new MockCommandRuntime();
37+
38+
this.cmdlet = new ImportAzureAutomationDscNodeConfiguration
39+
{
40+
AutomationClient = this.mockAutomationClient.Object,
41+
CommandRuntime = this.mockCommandRuntime
42+
};
43+
}
44+
45+
[Fact]
46+
[Trait(Category.AcceptanceType, Category.CheckIn)]
47+
public void ImportAzureAutomationDscNodeConfigurationTestWithNullNodeConfiguration()
48+
{
49+
// Setup
50+
string resourceGroupName = "resourceGroup";
51+
string accountName = "automation";
52+
string configurationName = "runbook";
53+
string path = "/path/to/configuration";
54+
string nodeConfigurationName = "runbook.configuration";
55+
bool incrementNodeConfigBuild = false;
56+
57+
this.mockAutomationClient.Setup(
58+
f =>
59+
f.CreateNodeConfiguration(resourceGroupName, accountName, path, configurationName, incrementNodeConfigBuild, false)
60+
);
61+
62+
this.mockAutomationClient.Setup(
63+
f => f.GetNodeConfiguration(resourceGroupName, accountName, nodeConfigurationName, null)
64+
);
65+
66+
// Test
67+
this.cmdlet.ResourceGroupName = resourceGroupName;
68+
this.cmdlet.AutomationAccountName = accountName;
69+
this.cmdlet.ConfigurationName = configurationName;
70+
this.cmdlet.Path = path;
71+
this.cmdlet.IncrementNodeConfigurationBuild = incrementNodeConfigBuild;
72+
this.cmdlet.Force = false;
73+
74+
this.cmdlet.ExecuteCmdlet();
75+
76+
// Assert
77+
this.mockAutomationClient.Verify(f => f.CreateNodeConfiguration(resourceGroupName, accountName, path, configurationName, incrementNodeConfigBuild, false),
78+
Times.Once());
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)