Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huangpf PR: dev <- Azure:dev #616

Merged
merged 23 commits into from
Sep 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
94f35e3
Fixing creating a runbook schedule on a hybrid worker
rohitminni Sep 12, 2016
fce8e68
Update Build.ps1
rohitminni25 Sep 14, 2016
bf48396
Accelerated networking changes
Sep 15, 2016
f699a7f
Merge pull request #2943 from skomarag/release-2.2.0
shahabhijeet Sep 15, 2016
e7e6a4b
Updating Networking and AzureRm module to 2.2.0 for this release
shahabhijeet Sep 15, 2016
63106e7
Merge pull request #2948 from Azure/shahabhijeet-release-2.2.0
shahabhijeet Sep 15, 2016
24a817c
checked in recorded test that was failing
Sep 15, 2016
da57b59
Merge pull request #2950 from skomarag/release-2.2.0
shahabhijeet Sep 15, 2016
3ded07c
Add script to create a build drop from a sign job
cormacpayne Sep 16, 2016
c63eab5
Update script to handle re-ordering of entries
cormacpayne Sep 16, 2016
3ebc819
checked in recorded test that was failing
Sep 15, 2016
7fceb54
Merge branch 'release-2.2.0' of https://github.com/skomarag/azure-pow…
Sep 17, 2016
7efea26
Merging entire set of changes from PR 2958 plus the csproj update tha…
shahabhijeet Sep 17, 2016
c9ceceb
Merge pull request #2959 from Azure/shahabhijeet-release-2.2.0
shahabhijeet Sep 17, 2016
8b1d56b
changelog modified to contain the changes for 2.2.0 release
Sep 19, 2016
b963e8d
changelog modified to contain the changes for 2.2.0 release
Sep 19, 2016
26892f3
Merge branch 'release-2.2.0' of https://github.com/skomarag/azure-pow…
Sep 19, 2016
756f9d8
Merge branch 'release-2.2.0' of https://github.com/azure/azure-powers…
Sep 19, 2016
809c9a7
Merge pull request #2964 from skomarag/release-2.2.0
shahabhijeet Sep 20, 2016
4ab5080
Merge pull request #2976 from Azure/release-2.2.0
cormacpayne Sep 20, 2016
a7694fe
Merge pull request #2956 from cormacpayne/build-drop
markcowl Sep 21, 2016
928e682
Merge pull request #2977 from Azure/master
shahabhijeet Sep 21, 2016
1f46316
Merge pull request #2928 from rohitminni/dev
markcowl Sep 21, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2016.09.16 version 2.2.0
* Network
- New switch parameter added for network interface to enable/Disable accelerated networking -New-AzureRmNetworkInterface -EnableAcceleratedNetworking

## 2016.09.08 version 2.1.0
* Compute
* Add support for querying encryption status from the AzureDiskEncryptionForLinux extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public void RegisterAzureAutomationScheduledRunbookSuccessfull()
string accountName = "automation";
string runbookName = "runbook";
string scheduleName = "schedule";
string runOn = "hybridWorkerGroup";

this.mockAutomationClient.Setup(
f => f.RegisterScheduledRunbook(resourceGroupName, accountName, runbookName, scheduleName, null));
f => f.RegisterScheduledRunbook(resourceGroupName, accountName, runbookName, scheduleName, null, runOn));

// Test
this.cmdlet.ResourceGroupName = resourceGroupName;
Expand All @@ -62,7 +63,7 @@ public void RegisterAzureAutomationScheduledRunbookSuccessfull()
this.cmdlet.ExecuteCmdlet();

// Assert
this.mockAutomationClient.Verify(f => f.RegisterScheduledRunbook(resourceGroupName, accountName, runbookName, scheduleName, null), Times.Once());
this.mockAutomationClient.Verify(f => f.RegisterScheduledRunbook(resourceGroupName, accountName, runbookName, scheduleName, null, runOn), Times.Once());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,23 @@ public class RegisterAzureAutomationScheduledRunbook : AzureAutomationBaseCmdlet
HelpMessage = "The runbook parameters.")]
public IDictionary Parameters { get; set; }

/// <summary>
/// Gets or sets the optional hybrid agent friendly name upon which the runbook should be executed.
/// </summary>
[Alias("HybridWorker")]
[Parameter(ParameterSetName = AutomationCmdletParameterSets.ByRunbookNameAndScheduleName, Mandatory = false, ValueFromPipelineByPropertyName = true,
HelpMessage = "The name of the hybrid runbook worker group.")]
public string RunOn { get; set; }

/// <summary>
/// Execute this cmdlet.
/// </summary>
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
protected override void AutomationProcessRecord()
{
JobSchedule jobSchedule;

jobSchedule = this.AutomationClient.RegisterScheduledRunbook(
this.ResourceGroupName, this.AutomationAccountName, this.RunbookName, this.ScheduleName, this.Parameters);

{
var jobSchedule = this.AutomationClient.RegisterScheduledRunbook(
this.ResourceGroupName, this.AutomationAccountName, this.RunbookName, this.ScheduleName, this.Parameters, this.RunOn);

this.WriteObject(jobSchedule);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ public IEnumerable<JobSchedule> ListJobSchedulesByScheduleName(string resourceGr
}

public JobSchedule RegisterScheduledRunbook(string resourceGroupName, string automationAccountName, string runbookName,
string scheduleName, IDictionary parameters)
string scheduleName, IDictionary parameters, string runOn)
{
var processedParameters = this.ProcessRunbookParameters(resourceGroupName, automationAccountName, runbookName, parameters);
var sdkJobSchedule = this.automationManagementClient.JobSchedules.Create(
Expand All @@ -1519,7 +1519,8 @@ public JobSchedule RegisterScheduledRunbook(string resourceGroupName, string aut
{
Schedule = new ScheduleAssociationProperty { Name = scheduleName },
Runbook = new RunbookAssociationProperty { Name = runbookName },
Parameters = processedParameters
Parameters = processedParameters,
RunOn = runOn
}
}).JobSchedule;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ IEnumerable<JobStream> GetJobStream(string resourceGroupName, string automationA
IEnumerable<JobSchedule> ListJobSchedulesByRunbookName(string resourceGroupName, string automationAccountName, string runbookName);

IEnumerable<JobSchedule> ListJobSchedulesByScheduleName(string resourceGroupName, string automationAccountName, string scheduleName);

JobSchedule RegisterScheduledRunbook(string resourceGroupName, string automationAccountName, string runbookName, string scheduleName, IDictionary parameters);
JobSchedule RegisterScheduledRunbook(string resourceGroupName, string automationAccountName, string runbookName, string scheduleName, IDictionary parameters, string RunOn);

void UnregisterScheduledRunbook(string resourceGroupName, string automationAccountName, Guid jobScheduleId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public JobSchedule(string resourceGroupName, string automationAccountName, Azure
this.RunbookName = jobSchedule.Properties.Runbook.Name;
this.ScheduleName = jobSchedule.Properties.Schedule.Name;
this.Parameters = new Hashtable(StringComparer.InvariantCultureIgnoreCase);
this.RunOn = jobSchedule.Properties.RunOn;
foreach (var kvp in jobSchedule.Properties.Parameters.Where(kvp => 0 != String.Compare(kvp.Key, Constants.JobStartedByParameterName, CultureInfo.InvariantCulture,
CompareOptions.IgnoreCase)))
{
Expand All @@ -65,6 +66,8 @@ public JobSchedule()
/// </summary>
public string ResourceGroupName { get; set; }

public string RunOn { get; set; }

/// <summary>
/// Gets or sets the automation account name.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.13.0.4-prerelease\lib\net45\Microsoft.Azure.Management.Compute.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Management.Network, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.6.1.1-preview\lib\net45\Microsoft.Azure.Management.Network.dll</HintPath>

<Reference Include="Microsoft.Azure.Management.Network, Version=7.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.7.1.0-preview\lib\net45\Microsoft.Azure.Management.Network.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Management.Storage, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down Expand Up @@ -398,6 +398,12 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineNetworkInterfaceTests\TestVirtualMachineSingleNetworkInterface.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineNetworkInterfaceTests\TestVirtualMachineSingleNetworkInterfaceWithAcceleratedNetworking.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineNetworkInterfaceTests\TestVMNicWithAcceleratedNetworkingValidations.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests\TestVirtualMachineProfileWithoutAUC.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,19 @@ public void TestEffectiveRoutesAndNsg()
{
ComputeTestController.NewInstance.RunPsTest("Test-EffectiveRoutesAndNsg");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualMachineSingleNetworkInterfaceWithAcceleratedNetworking()
{
ComputeTestController.NewInstance.RunPsTest("Test-SingleNetworkInterfaceWithAcceleratedNetworking");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVMNicWithAcceleratedNetworkingValidations()
{
ComputeTestController.NewInstance.RunPsTest("Test-VMNicWithAcceleratedNetworkingValidations");
}
}
}
Loading