Skip to content

Commit a0b309c

Browse files
committed
Merge branch 'preview' into NetCoreTestProjects
2 parents f020fc5 + e9dbc00 commit a0b309c

File tree

32 files changed

+7941
-32449
lines changed

32 files changed

+7941
-32449
lines changed

ChangeLog.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
## 6.1.0 - May 2018
1+
## 6.1.1 - May 2018
2+
#### AzureRM.Resources
3+
* Revert change to `New-AzureRmADServicePrincipal` that gave service principals `Contributor` permissions over the current subscription if no values were provided for the `Role` or `Scope` parameters
4+
- If no values are provided for `Role` or `Scope`, the service principal is created with no permissions
5+
- If a `Role` is provided, but no `Scope`, the service principal is created with the specified `Role` permissions over the current subscription
6+
- If a `Scope` is provided, but no `Role`, the service principal is created with `Contributor` permissions over the specified `Scope`
7+
- If both `Role` and `Scope` are provided, the service principal is created with the specified `Role` permissions over the specified `Scope`
8+
9+
## 6.1.0 - May 2018
210
#### AzureRM.Profile
311
* Fix issue where running 'Clear-AzureRmContext' would keep an empty context with the name of the previous default context, which prevented the user from creating a new context with the old name
412

src/Common/Commands.Common/AzurePowerShell.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public class AzurePowerShell
2626

2727
public const string AssemblyCopyright = "Copyright © Microsoft";
2828

29-
public const string AssemblyVersion = "6.0.0";
29+
public const string AssemblyVersion = "6.1.1";
3030

31-
public const string AssemblyFileVersion = "6.0.0";
31+
public const string AssemblyFileVersion = "6.1.1";
3232

3333
public const string ProfileFile = "AzureProfile.json";
3434

src/ResourceManager/DataFactoryV2/Changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
-->
2020

2121
## Current Release
22+
* Updated the ADF .Net SDK version to 0.8.0-preview containing following changes:
23+
- Added Configure factory repository operation
24+
- Updated QuickBooks LinkedService to expose consumerKey and consumerSecret properties
25+
- Updated Several model types from SecretBase to Object
26+
- Added Blob Events trigger
2227

2328
## Version 0.5.4
2429
* Set minimum dependency of module to PowerShell 5.0
@@ -29,7 +34,6 @@
2934
- Removed schema property from Teradata linked service
3035
- Added LinkedService, Dataset, CopySource for Responsys
3136

32-
3337
## Version 0.5.3
3438
* Updated to the latest version of the Azure ClientRuntime
3539

src/ResourceManager/DataFactoryV2/Commands.DataFactoryV2.Test/Commands.DataFactoryV2.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</Reference>
5454
<Reference Include="Microsoft.Azure.Management.DataFactory">
5555
<SpecificVersion>False</SpecificVersion>
56-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataFactory.0.7.0-preview\lib\net452\Microsoft.Azure.Management.DataFactory.dll</HintPath>
56+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataFactory.0.8.0-preview\lib\net452\Microsoft.Azure.Management.DataFactory.dll</HintPath>
5757
</Reference>
5858
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5959
<SpecificVersion>False</SpecificVersion>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
66
<package id="Microsoft.Azure.Management.Authorization" version="2.0.0" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.DataFactory" version="0.7.0-preview" targetFramework="net452" />
7+
<package id="Microsoft.Azure.Management.DataFactory" version="0.8.0-preview" targetFramework="net452" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
99
<package id="Microsoft.Azure.Test.Framework" version="1.0.6179.26854-prerelease" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.6.7-preview" targetFramework="net45" />

src/ResourceManager/DataFactoryV2/Commands.DataFactoryV2/Commands.DataFactoryV2.Netcore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.Azure.Management.DataFactory" Version="0.7.0-preview" />
31+
<PackageReference Include="Microsoft.Azure.Management.DataFactory" Version="0.8.0-preview" />
3232
<PackageReference Include="Microsoft.DataTransfer.Gateway.Encryption" Version="3.4.6604.1" />
3333
</ItemGroup>
3434

src/ResourceManager/DataFactoryV2/Commands.DataFactoryV2/Commands.DataFactoryV2.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<ItemGroup>
5151
<Reference Include="Microsoft.Azure.Management.DataFactory">
5252
<SpecificVersion>False</SpecificVersion>
53-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataFactory.0.7.0-preview\lib\net452\Microsoft.Azure.Management.DataFactory.dll</HintPath>
53+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.DataFactory.0.8.0-preview\lib\net452\Microsoft.Azure.Management.DataFactory.dll</HintPath>
5454
</Reference>
5555
<Reference Include="Microsoft.DataTransfer.Gateway.Encryption, Version=3.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5656
<SpecificVersion>False</SpecificVersion>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Azure.Management.DataFactory" version="0.7.0-preview" targetFramework="net452" />
3+
<package id="Microsoft.Azure.Management.DataFactory" version="0.8.0-preview" targetFramework="net452" />
44
<package id="Microsoft.DataTransfer.Gateway.Encryption" version="3.4.6604.1" targetFramework="net45" />
55
</packages>

src/ResourceManager/PowerBIEmbedded/Commands.PowerBI.Test/SessionRecords/Microsoft.Azure.Commands.PowerBI.Test.ScenarioTests.PowerBITests/TestNegativePBIECapacity.json

Lines changed: 436 additions & 247 deletions
Large diffs are not rendered by default.

src/ResourceManager/PowerBIEmbedded/Commands.PowerBI.Test/SessionRecords/Microsoft.Azure.Commands.PowerBI.Test.ScenarioTests.PowerBITests/TestPBIECapacity.json

Lines changed: 678 additions & 31428 deletions
Large diffs are not rendered by default.

src/ResourceManager/PowerBIEmbedded/Commands.PowerBI.Test/SessionRecords/Microsoft.Azure.Commands.PowerBI.Test.ScenarioTests.PowerBITests/TestPBIECapacityScale.json

Lines changed: 854 additions & 401 deletions
Large diffs are not rendered by default.

src/ResourceManager/Profile/AzureRM.Profile.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ RequiredAssemblies = '.\Microsoft.Azure.Commands.Common.Authentication.Abstracti
8080
'.\Microsoft.Threading.Tasks.Extensions.dll',
8181
'.\Microsoft.Threading.Tasks.Extensions.Desktop.dll',
8282
'.\Microsoft.WindowsAzure.Management.dll', '.\Newtonsoft.Json.dll',
83-
'.\NewAssemblies\Newtonsoft.Json.dll',
83+
'.\Newtonsoft.Json.10.dll',
8484
'.\System.Net.Http.Extensions.dll',
8585
'.\System.Net.Http.Primitives.dll'
8686

src/ResourceManager/Profile/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Fix issue where version 10.0.3 of Newtonsoft.Json wasn't being loaded on module import
2122

2223
## Version 5.1.0
2324
* Fix issue where running `Clear-AzureRmContext` would keep an empty context with the name of the previous default context, which prevented the user from creating a new context with the old name

src/ResourceManager/Profile/Commands.Profile/Commands.Profile.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@
205205
</ItemGroup>
206206
<Copy SourceFiles="@(OutFiles)" DestinationFiles="@(OutFiles->'..\..\..\Stack\$(Configuration)\ResourceManager\AzureResourceManager\AzureRM.Profile\%(RecursiveDir)%(Filename)%(Extension)')" />
207207
<Copy SourceFiles="@(MarkdownFiles)" DestinationFolder="$(OutputPath)\help\" ContinueOnError="false" />
208-
<Copy SourceFiles="@(NewtonsoftJson)" DestinationFolder="$(OutputPath)\NewAssemblies\" ContinueOnError="false" />
208+
<Copy SourceFiles="@(NewtonsoftJson)" DestinationFiles="$(OutputPath)\Newtonsoft.Json.10.dll" />
209209
</Target>
210210
</Project>

src/ResourceManager/Resources/AzureRM.Resources.psd1

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '6.0.0'
15+
ModuleVersion = '6.0.1'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -164,21 +164,11 @@ PrivateData = @{
164164
# IconUri = ''
165165

166166
# ReleaseNotes of this module
167-
ReleaseNotes = '* Set minimum dependency of module to PowerShell 5.0
168-
* Remove obsolete parameter -AtScopeAndBelow from Get-AzureRmRoledefinition call
169-
* Include assignments to deleted Users/Groups/ServicePrincipals in Get-AzureRmRoleAssignment result
170-
* Add convenience cmdlet for creating ServicePrincipals
171-
* Add Tab completers for Scope and ResourceType
172-
* Merge Get- and Find- functionality in Get-AzureRmResource
173-
* Add AD Cmdlets:
174-
- Remove-AzureRmADGroupMember
175-
- Get-AzureRmADGroup
176-
- New-AzureRmADGroup
177-
- Remove-AzureRmADGroup
178-
- Remove-AzureRmADUser
179-
- Update-AzureRmADApplication
180-
- Update-AzureRmADServicePrincipal
181-
- Update-AzureRmADUser'
167+
ReleaseNotes = '* Revert change to `New-AzureRmADServicePrincipal` that gave service principals `Contributor` permissions over the current subscription if no values were provided for the `Role` or `Scope` parameters
168+
- If no values are provided for `Role` or `Scope`, the service principal is created with no permissions
169+
- If a `Role` is provided, but no `Scope`, the service principal is created with the specified `Role` permissions over the current subscription
170+
- If a `Scope` is provided, but no `Role`, the service principal is created with `Contributor` permissions over the specified `Scope`
171+
- If both `Role` and `Scope` are provided, the service principal is created with the specified `Role` permissions over the specified `Scope`'
182172

183173
# Prerelease string of this module
184174
# Prerelease = ''

src/ResourceManager/Resources/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
## Current Release
2121
* Fix issue with `Properties` property of `PSResource` object(s) returned from `Get-AzureRmResource`
2222

23+
## Version 6.0.1
24+
* Revert change to `New-AzureRmADServicePrincipal` that gave service principals `Contributor` permissions over the current subscription if no values were provided for the `Role` or `Scope` parameters
25+
- If no values are provided for `Role` or `Scope`, the service principal is created with no permissions
26+
- If a `Role` is provided, but no `Scope`, the service principal is created with the specified `Role` permissions over the current subscription
27+
- If a `Scope` is provided, but no `Role`, the service principal is created with `Contributor` permissions over the specified `Scope`
28+
- If both `Role` and `Scope` are provided, the service principal is created with the specified `Role` permissions over the specified `Scope`
29+
2330
## Version 6.0.0
2431
* Set minimum dependency of module to PowerShell 5.0
2532
* Remove obsolete parameter -AtScopeAndBelow from Get-AzureRmRoledefinition call

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
[assembly: ComVisible(false)]
2626
[assembly: CLSCompliant(false)]
2727
[assembly: Guid("e8f34267-c461-4eae-b156-5f3528553d10")]
28-
[assembly: AssemblyVersion("6.0.0")]
29-
[assembly: AssemblyFileVersion("6.0.0")]
28+
[assembly: AssemblyVersion("6.0.1")]
29+
[assembly: AssemblyFileVersion("6.0.1")]
3030
#if SIGN
3131
[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.Resources.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
3232
[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.MachineLearning.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]

src/ResourceManager/Resources/Commands.Resources.Test/Commands.Resources.Test.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,15 @@
363363
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestGetADUserWithMail.json">
364364
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
365365
</None>
366+
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestNewADServicePrincipalWithCustomScope.json">
367+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
368+
</None>
366369
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestNewADServicePrincipalWithoutApp.json">
367370
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
368371
</None>
372+
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests\TestNewADServicePrincipalWithReaderRole.json">
373+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
374+
</None>
369375
<None Include="SessionRecords\Microsoft.Azure.Commands.Resources.Test.ScenarioTests.DeploymentTests\TestCrossResourceGroupDeploymentFromTemplateFile.json">
370376
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
371377
</None>

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ActiveDirectoryTests.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,27 @@ public void TestNewADApplication()
564564
ResourcesController.NewInstance.RunPsTest("Test-NewADApplication");
565565
}
566566

567-
[Fact(Skip = "Need AD team to re-record test")]
567+
[Fact]
568568
[Trait(Category.AcceptanceType, Category.CheckIn)]
569569
public void TestNewADServicePrincipalWithoutApp()
570570
{
571571
ResourcesController.NewInstance.RunPsTest("Test-NewADServicePrincipalWithoutApp");
572572
}
573573

574+
[Fact]
575+
[Trait(Category.AcceptanceType, Category.CheckIn)]
576+
public void TestNewADServicePrincipalWithReaderRole()
577+
{
578+
ResourcesController.NewInstance.RunPsTest("Test-NewADServicePrincipalWithReaderRole");
579+
}
580+
581+
[Fact]
582+
[Trait(Category.AcceptanceType, Category.CheckIn)]
583+
public void TestNewADServicePrincipalWithCustomScope()
584+
{
585+
ResourcesController.NewInstance.RunPsTest("Test-NewADServicePrincipalWithCustomScope");
586+
}
587+
574588
[Fact(Skip = "Not working in playback.")]
575589
[Trait(Category.AcceptanceType, Category.CheckIn)]
576590
public void TestCreateDeleteAppPasswordCredentials()

0 commit comments

Comments
 (0)