Skip to content

Commit e6338b0

Browse files
Merge pull request #5 from Azure/master
merge
2 parents 1229c76 + 7b55679 commit e6338b0

File tree

933 files changed

+782300
-320095
lines changed

Some content is hidden

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

933 files changed

+782300
-320095
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
name: Az module bug report
3+
about: Report errors or unexpected behaviors for the Az module
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
12+
- Make sure you are able to reproduce this issue on the latest released version of Az
13+
- https://www.powershellgallery.com/packages/Az
14+
- Please search the existing issues to see if there has been a similar issue filed
15+
- For issue related to importing a module, please refer to our troubleshooting guide:
16+
- https://github.com/Azure/azure-powershell/blob/master/documentation/troubleshoot-module-load.md
17+
18+
-->
19+
20+
## Description
21+
22+
23+
24+
## Steps to reproduce
25+
26+
```powershell
27+
28+
```
29+
30+
## Environment data
31+
32+
<!-- Please run $PSVersionTable and paste the output in the below code block -->
33+
34+
```
35+
36+
```
37+
38+
## Module versions
39+
40+
<!-- Please run (Get-Module -Name Az.* -ListAvailable) and paste the output in the below code block -->
41+
42+
```powershell
43+
44+
```
45+
46+
## Debug output
47+
48+
<!-- Set $DebugPreference='Continue' before running the repro and paste the resulting debug stream in the below code block -->
49+
50+
```
51+
52+
```
53+
54+
## Error output
55+
56+
<!-- Please run Resolve-AzureRmError and paste the output in the below code block -->
57+
58+
```
59+
60+
```
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: AzureRM module bug report
3+
about: Report errors or unexpected behaviors for the AzureRM module
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
12+
- The AzureRM module has been replaced by the Az module; please see the following document for more information:
13+
- https://docs.microsoft.com/en-us/powershell/azure/new-azureps-module-az
14+
- If you are able to, please migrate to the Az module and see if the issue is reproducible
15+
- If so, please file an issue using the Az module template
16+
- Please search the existing issues to see if there has been a similar issue filed
17+
18+
-->
19+
20+
## Description
21+
22+
23+
24+
## Steps to reproduce
25+
26+
```powershell
27+
28+
```
29+
30+
## Module versions
31+
32+
<!-- Please run (Get-Module -Name AzureRM* -ListAvailable) and paste the output in the below code block -->
33+
34+
```powershell
35+
36+
```
37+
38+
## Debug output
39+
40+
<!-- Set $DebugPreference='Continue' before running the repro and paste the resulting debug stream in the below code block -->
41+
42+
```
43+
44+
```
45+
46+
## Error output
47+
48+
<!-- Please run Resolve-AzureRmError and paste the output in the below code block -->
49+
50+
```
51+
52+
```
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature or improvement
4+
title: ''
5+
labels: Feature Request
6+
assignees: ''
7+
8+
---
9+
10+
## Description of the new feature
11+
12+
## Proposed implementation details (optional)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Internal issue
3+
about: Azure PowerShell team only
4+
title: ''
5+
labels: Azure PS Team
6+
assignees: ''
7+
8+
---
9+
10+
## Description
11+
12+
## Cost

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Azure PowerShell specific
2+
Net472Tests/
23
artifacts/
34
src/Stack/
45
src/local-artifacts/*

ChangeLog.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,69 @@
1+
## 1.4.0 - February 2019
2+
#### Az.AnalysisServices
3+
* Deprecated AddAzureASAccount cmdlet
4+
5+
#### Az.Automation
6+
* Update help for Import-AzAutomationDscNodeConfiguration
7+
* Added configuration name validation to Import-AzAutomationDscConfiguration cmdlet
8+
* Improved error handling for Import-AzAutomationDscConfiguration cmdlet
9+
10+
#### Az.CognitiveServices
11+
* Added CustomSubdomainName as a new optional parameter for New-AzCognitiveServicesAccount which is used to specify subdomain for the resource.
12+
13+
#### Az.Compute
14+
* Fix issue with ID parameter sets
15+
* Update Get-AzVMExtension to list all installed extension if Name parameter is not provided
16+
* Add Tag and ResourceId parameters to Update-AzImage cmdlet
17+
* Get-AzVmssVM without instance ID and with InstanceView can list VMSS VMs with instance view.
18+
19+
#### Az.DataLakeStore
20+
* Add cmdlets for ADL deleted item enumerate and restore
21+
22+
#### Az.EventHub
23+
* Added new boolean property SkipEmptyArchives to Skip Empty Archives in CaptureDescription class of Eventhub
24+
25+
#### Az.KeyVault
26+
* Fix tagging on Set-AzKeyVaultSecret
27+
28+
#### Az.LogicApp
29+
* Add in Basic sku for Integration Accounts
30+
* Add in XSLT 2.0, XSLT 3.0 and Liquid Map Types
31+
* New cmdlets for Integration Account Assemblies
32+
- Get-AzIntegrationAccountAssembly
33+
- New-AzIntegrationAccountAssembly
34+
- Remove-AzIntegrationAccountAssembly
35+
- Set-AzIntegrationAccountAssembly
36+
* New cmdlets for Integration Account Batch Configuration
37+
- Get-AzIntegrationAccountBatchConfiguration
38+
- New-AzIntegrationAccountBatchConfiguration
39+
- Remove-AzIntegrationAccountBatchConfiguration
40+
- Set-AzIntegrationAccountBatchConfiguration
41+
* Update Logic App SDK to version 4.1.0
42+
43+
#### Az.Monitor
44+
* Update help for Get-AzMetric
45+
46+
#### Az.Network
47+
* Update help example for Add-AzApplicationGatewayCustomError
48+
49+
#### Az.OperationalInsights
50+
* Additional support for New and Get ApplicationInsights data source.
51+
- Added new 'ApplicationInsights' kind to support Get specific and Get all ApplicationInsights data sources for given workspace.
52+
- Added New-AzOperationalInsightsApplicationInsightsDataSource cmdlet for creating data source by given Application-Insights resource parameters: subscription Id, resourceGroupName and name.
53+
54+
#### Az.Resources
55+
* Fix for issue https://github.com/Azure/azure-powershell/issues/8166
56+
* Fix for issue https://github.com/Azure/azure-powershell/issues/8235
57+
* Fix for issue https://github.com/Azure/azure-powershell/issues/6219
58+
* Fix bug preventing repeat creation of KeyCredentials
59+
60+
#### Az.Sql
61+
* Add support for SQL DB Hyperscale tier
62+
* Fixed bug where restore could fail due to setting unnecessary properties in restore request
63+
64+
#### Az.Websites
65+
* Correct example in Get-AzWebAppSlotMetrics
66+
167
## 1.3.0 - February 2019
268
#### Az.Accounts
369
* Update to latest version of ClientRuntime

build.proj

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,20 @@
4848
<LibraryRoot>$(MSBuildThisFileDirectory)</LibraryRoot>
4949
<LibrarySourceFolder>$(LibraryRoot)src</LibrarySourceFolder>
5050
<LibraryToolsFolder>$(LibraryRoot)tools</LibraryToolsFolder>
51-
<LocalFeedFolder>$(LibraryToolsFolder)\LocalFeed</LocalFeedFolder>
51+
<LibraryArtifactsFolder>$(LibraryRoot)artifacts</LibraryArtifactsFolder>
52+
<LocalFeedFolder>$(LibraryToolsFolder)/LocalFeed</LocalFeedFolder>
5253
<Configuration Condition=" '$(Configuration)' != 'Release'">Debug</Configuration>
5354
<CodeSign>false</CodeSign>
5455
<!--Set this true only if you want to test the code sign workflow locally-->
5556
<DelaySign Condition =" '$(DelaySign)' == '' ">false</DelaySign>
5657
<SignedOutputRootDir>$(LibraryRoot)signed</SignedOutputRootDir>
57-
<PackageDirectory>$(LibraryRoot)\artifacts</PackageDirectory>
58-
<TestOutputDirectory>$(PackageDirectory)\Test</TestOutputDirectory>
58+
<PackageDirectory>$(LibraryRoot)artifacts</PackageDirectory>
59+
<TestOutputDirectory>$(PackageDirectory)/Test</TestOutputDirectory>
5960
<BuildInParallel Condition="'$(BuildInParallel)' == ''">true</BuildInParallel>
6061
<NuGetPublishingSource Condition=" '$(NuGetPublishingSource)' == '' ">$(LibrarySourceFolder)</NuGetPublishingSource>
6162
<Scope Condition="$(Scope) == ''" >All</Scope>
62-
<BuildTasksPath>$(LibraryToolsFolder)\BuildPackagesTask\Microsoft.Azure.Build.Tasks\bin\$(Configuration)</BuildTasksPath>
63-
<StackPackageFolder>$(LibrarySourceFolder)\Stack</StackPackageFolder>
63+
<BuildTasksPath>$(LibraryToolsFolder)/BuildPackagesTask/Microsoft.Azure.Build.Tasks/bin/$(Configuration)</BuildTasksPath>
64+
<StackPackageFolder>$(LibrarySourceFolder)/Stack</StackPackageFolder>
6465
<NetCore Condition="'$(NetCore)' != 'true'">false</NetCore>
6566
</PropertyGroup>
6667

@@ -130,7 +131,7 @@
130131
<Message Importance="high" Text="Cleaning Cmdlets..." />
131132

132133
<!-- Clean out the NuGet cache -->
133-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Remove-Item -Path (Join-Path ($env:USERPROFILE) .nuget packages) -Recurse -Force -Confirm:$false -ErrorAction Ignore&quot;" ContinueOnError="WarnAndContinue" IgnoreExitCode="true" />
134+
<Exec Command="dotnet nuget locals global-packages --clear" ContinueOnError="WarnAndContinue" IgnoreExitCode="true" />
134135

135136
<!-- Remove Package, Publish, bin, obj, and TestResults directories -->
136137
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;Remove-Item -Path $(PackageDirectory) -Recurse -Force -Confirm:$false -ErrorAction Ignore&quot;" ContinueOnError="WarnAndContinue" IgnoreExitCode="true" />
@@ -378,10 +379,14 @@
378379
<PropertyGroup Condition="'$(ExcludeAuthenticators)' == 'true'">
379380
<AuthenticatorExclusions>$(LibraryRoot)src/**/Authenticators.csproj;</AuthenticatorExclusions>
380381
</PropertyGroup>
382+
<PropertyGroup Condition="'$(Framework)' == ''">
383+
<Framework>netcoreapp2.0</Framework>
384+
</PropertyGroup>
381385

382386
<CallTarget Targets="BinScopeCheck" Condition="'$(OnPremiseBuild)'" />
383387
<CallTarget Targets="RunPoliCheck" Condition="'$(OnPremiseBuild)'" />
384388

389+
<Message Importance="High" Text="Creating test output directory at '$(TestOutputDirectory)'" />
385390
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
386391
<Exec Command="dotnet new sln -n Azure.PowerShell --force" />
387392
<ItemGroup>
@@ -397,15 +402,41 @@
397402
<Exec Command="dotnet sln Azure.PowerShell.sln add $(LibraryRoot)tools/ScenarioTest.ResourceManager/ScenarioTest.ResourceManager.csproj $(LibraryRoot)tools/TestFx/TestFx.csproj" />
398403
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
399404
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
400-
<Exec Command="dotnet test Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework netcoreapp2.0 --logger trx" />
405+
<Exec Command="dotnet test Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework netcoreapp2.0 --logger trx --results-directory &quot;$(TestOutputDirectory)&quot;" />
406+
407+
<OnError ExecuteTargets="TestFailureErrorMessage" />
408+
</Target>
401409

410+
<Target Name="TestNet472">
411+
<Message Importance="high" Text="Running check in tests..." />
412+
<PropertyGroup>
413+
<AuthExclusions>$(LibraryRoot)src/**/Authenticators.csproj;</AuthExclusions>
414+
<AutomationExclusions>$(LibraryRoot)src/**/Automation.Test.csproj;</AutomationExclusions>
415+
<StorageExclusions>$(LibraryRoot)src/**/Storage.Test.csproj;</StorageExclusions>
416+
</PropertyGroup>
417+
418+
<MakeDir Directories="$(TestOutputDirectory)" ContinueOnError="false" />
419+
<Exec Command="dotnet new sln -n Azure.PowerShell --force" />
402420
<ItemGroup>
403-
<TestResults Include="$(LibraryRoot)src/**/TestResults/*.trx" />
421+
<ModuleCsprojFiles Include="$(LibraryRoot)src/**/*.csproj" Exclude="$(AuthExclusions);$(AutomationExclusions);$(StorageExclusions)"/>
404422
</ItemGroup>
405-
<Copy SourceFiles="@(TestResults)" DestinationFolder="$(TestOutputDirectory)" />
406-
423+
<!-- https://stackoverflow.com/a/35477012/294804 -->
424+
<ItemGroup>
425+
<ModuleCsprojFilesRelative Include="@(ModuleCsprojFiles)">
426+
<RelativePath>$([MSBuild]::MakeRelative($(LibraryRoot), %(ModuleCsprojFiles.FullPath)))</RelativePath>
427+
</ModuleCsprojFilesRelative>
428+
</ItemGroup>
429+
<Exec Command="dotnet sln Azure.PowerShell.sln add @(ModuleCsprojFilesRelative->'%(RelativePath)', ' ')" />
430+
<Exec Command="dotnet sln Azure.PowerShell.sln add $(LibraryRoot)tools/ScenarioTest.ResourceManager/ScenarioTest.ResourceManager.csproj $(LibraryRoot)tools/TestFx/TestFx.csproj" />
431+
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
432+
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
433+
<Exec Command="dotnet build Azure.PowerShell.sln --configuration $(Configuration)" />
434+
<Exec Command="dotnet new console -n Net472Tests" />
435+
<Exec Command="dotnet add Net472Tests package xunit.runner.console --version 2.4.0" />
436+
<Exec Command="dotnet restore --packages ./artifacts/tools -f --no-cache Net472Tests" />
437+
<Exec Command="$(PowerShellCommandPrefix) &quot;$(LibraryToolsFolder)/TestNet472Modules.ps1 -TestExecPath '$(LibraryArtifactsFolder)/tools/xunit.runner.console/2.4.0/tools/net472/xunit.console.exe' &quot;" />
407438
<OnError ExecuteTargets="TestFailureErrorMessage" />
408-
</Target>
439+
</Target>
409440

410441
<Target Name="TestFailureErrorMessage">
411442
<Error Text="Test failures occured, check the files in artifacts/Test" />
@@ -429,4 +460,4 @@
429460
<Error Text="PoliCheck failed with a Severity 1 issue, please check the report at in artifacts/PoliCheck-Scan.html" />
430461
</Target>
431462

432-
</Project>
463+
</Project>

0 commit comments

Comments
 (0)