Skip to content

[Release 1.6.0] [AzureRT] Sprint 61 #2564

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

Merged
merged 19 commits into from
Jul 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
831770b
Update Name and version for extensions to optional as before.
hyonholee Jun 28, 2016
773a7af
Fix typo for help message
hyonholee Jun 28, 2016
6e3dcfd
New-AzureRMVM should be able to get license type from VM object
hyonholee Jun 28, 2016
727549e
Fix NullReferenceException error when there is no data disk or networ…
hyonholee Jun 30, 2016
68ffc7a
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Jun 30, 2016
8a7b2cd
Update Compute library to 13.0.4-prelease and re-generate cmdlets.
hyonholee Jul 1, 2016
c9e8da0
Add ADDomain extension cmdlets and tests.
hyonholee Jul 2, 2016
c2e61c9
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Jul 2, 2016
b3d6299
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Jul 5, 2016
d049d04
Update Compute help file
hyonholee Jul 5, 2016
52d736a
Add ShouldProcess to new, update, and set cmdlets
hyonholee Jul 5, 2016
7960fad
Updated package and assembly versions for release 1.6.0
Jul 5, 2016
affcaf8
Merge branch 'release-1.6.0' of https://github.com/Azure/azure-powers…
hyonholee Jul 5, 2016
86dbf4f
Merge branch 'release-1.6.0' of github.com:Azure/azure-powershell int…
Jul 6, 2016
690f96a
Upgraded Microsoft.Azure.Test.Framework to version 1.0.6026.28191-pre…
Jul 6, 2016
06adf01
Merge branch 'release-1.6.0' of https://github.com/hovsepm/azure-powe…
hyonholee Jul 6, 2016
b5558e7
Re-record ADDomain extension tests
hyonholee Jul 6, 2016
cc6a9f5
Merge branch 'release-1.6.0' of https://github.com/Azure/azure-powers…
hyonholee Jul 6, 2016
f7c0d31
Add SupportsShouldProcess attribute.
hyonholee Jul 6, 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
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.Compute">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.13.0.1-prerelease\lib\net45\Microsoft.Azure.Management.Compute.dll</HintPath>
<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=5.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down Expand Up @@ -353,6 +353,12 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineAccessExtension.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineADDomainExtension.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineADDomainExtensionDomainJoin.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineBginfoExtension.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# limitations under the License.
# ----------------------------------------------------------------------------------

$PLACEHOLDER = "PLACEHOLDER"

<#
.SYNOPSIS
Gets valid resource name for compute test
Expand Down Expand Up @@ -113,7 +115,7 @@ function Create-VirtualMachine($rgname, $vmname, $loc)
$rgname = if ([string]::IsNullOrEmpty($rgname)) { Get-ComputeTestResourceName } else { $rgname }
$vmname = if ([string]::IsNullOrEmpty($vmname)) { 'vm' + $rgname } else { $vmname }
$loc = if ([string]::IsNullOrEmpty($loc)) { Get-ComputeVMLocation } else { $loc }
Write-Host $vmname
Write-Host $vmname

# Common
$g = New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
Expand Down Expand Up @@ -479,17 +481,17 @@ function Get-SasUri
{
param ([string] $storageAccount, [string] $storageKey, [string] $container, [string] $file, [TimeSpan] $duration, [Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPermissions] $type)

$uri = [string]::Format("https://{0}.blob.core.windows.net/{1}/{2}", $storageAccount, $container, $file);
$uri = [string]::Format("https://{0}.blob.core.windows.net/{1}/{2}", $storageAccount, $container, $file);

$destUri = New-Object -TypeName System.Uri($uri);
$cred = New-Object -TypeName Microsoft.WindowsAzure.Storage.Auth.StorageCredentials($storageAccount, $storageKey);
$destBlob = New-Object -TypeName Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob($destUri, $cred);
$policy = New-Object Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy;
$policy.Permissions = $type;
$policy.SharedAccessExpiryTime = [DateTime]::UtcNow.Add($duration);
$uri += $destBlob.GetSharedAccessSignature($policy);
$destUri = New-Object -TypeName System.Uri($uri);
$cred = New-Object -TypeName Microsoft.WindowsAzure.Storage.Auth.StorageCredentials($storageAccount, $storageKey);
$destBlob = New-Object -TypeName Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob($destUri, $cred);
$policy = New-Object Microsoft.WindowsAzure.Storage.Blob.SharedAccessBlobPolicy;
$policy.Permissions = $type;
$policy.SharedAccessExpiryTime = [DateTime]::UtcNow.Add($duration);
$uri += $destBlob.GetSharedAccessSignature($policy);

return $uri;
return $uri;
}

# Get a Location according to resource provider.
Expand Down Expand Up @@ -564,13 +566,13 @@ function Get-SubscriptionIdFromResourceGroup
{
param ([string] $rgname)

$rg = Get-AzureRmResourceGroup -ResourceGroupName $rgname;
$rg = Get-AzureRmResourceGroup -ResourceGroupName $rgname;

$rgid = $rg.ResourceId;
$rgid = $rg.ResourceId;

# ResouceId is a form of "/subscriptions/<subId>/resourceGroups/<resourgGroupName>"
# So return the second part to get subscription Id
$first = $rgid.IndexOf('/', 1);
$last = $rgid.IndexOf('/', $first + 1);
return $rgid.Substring($first + 1, $last - $first - 1);
# ResouceId is a form of "/subscriptions/<subId>/resourceGroups/<resourgGroupName>"
# So return the second part to get subscription Id
$first = $rgid.IndexOf('/', 1);
$last = $rgid.IndexOf('/', $first + 1);
return $rgid.Substring($first + 1, $last - $first - 1);
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,19 @@ public void TestVirtualMachineExtensionWithSwitch()
{
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineExtensionWithSwitch");
}

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

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