Skip to content

Commit 61f3940

Browse files
committed
Merging with upstream
2 parents b6fcd49 + dbb3dc4 commit 61f3940

File tree

377 files changed

+168864
-91051
lines changed

Some content is hidden

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

377 files changed

+168864
-91051
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<LibraryRoot>$(MSBuildThisFileDirectory)</LibraryRoot>
4949
<LibrarySourceFolder>$(LibraryRoot)src</LibrarySourceFolder>
5050
<LibraryToolsFolder>$(LibraryRoot)tools</LibraryToolsFolder>
51-
<LocalFeedFolder>$(LibraryToolsFolder)/LocalFeed</LocalFeedFolder>
52-
<Configuration Condition=" '$(Configuration)' != 'Release'">Debug</Configuration>
51+
<LibraryArtifactsFolder>$(LibraryRoot)artifacts</LibraryArtifactsFolder>
52+
<LocalFeedFolder>$(LibraryToolsFolder)/LocalFeed</LocalFeedFolder> <Configuration Condition=" '$(Configuration)' != 'Release'">Debug</Configuration>
5353
<CodeSign>false</CodeSign>
5454
<!--Set this true only if you want to test the code sign workflow locally-->
5555
<DelaySign Condition =" '$(DelaySign)' == '' ">false</DelaySign>
@@ -378,6 +378,9 @@
378378
<PropertyGroup Condition="'$(ExcludeAuthenticators)' == 'true'">
379379
<AuthenticatorExclusions>$(LibraryRoot)src/**/Authenticators.csproj;</AuthenticatorExclusions>
380380
</PropertyGroup>
381+
<PropertyGroup Condition="'$(Framework)' == ''">
382+
<Framework>netcoreapp2.0</Framework>
383+
</PropertyGroup>
381384

382385
<CallTarget Targets="BinScopeCheck" Condition="'$(OnPremiseBuild)'" />
383386
<CallTarget Targets="RunPoliCheck" Condition="'$(OnPremiseBuild)'" />
@@ -398,10 +401,47 @@
398401
<Exec Command="dotnet sln Azure.PowerShell.sln add $(LibraryRoot)tools/ScenarioTest.ResourceManager/ScenarioTest.ResourceManager.csproj $(LibraryRoot)tools/TestFx/TestFx.csproj" />
399402
<!-- https://github.com/Microsoft/msbuild/issues/3157#issuecomment-378002971 -->
400403
<!-- https://github.com/xunit/xunit/issues/1154#issuecomment-405366373 -->
401-
<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;" />
404+
<Exec Command="dotnet test Azure.PowerShell.sln --filter &quot;AcceptanceType=CheckIn%26RunType!=DesktopOnly&quot; --configuration $(Configuration) --framework $(Framework) --logger trx" />
405+
406+
<ItemGroup>
407+
<TestResults Include="$(LibraryRoot)src/**/TestResults/*.trx" />
408+
</ItemGroup>
409+
<Copy SourceFiles="@(TestResults)" DestinationFolder="$(TestOutputDirectory)" />
410+
402411
<OnError ExecuteTargets="TestFailureErrorMessage" />
403412
</Target>
404413

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

src/Accounts/Accounts/help/Get-AzSubscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ the current account.
4747

4848
### Example 2: Get all subscriptions for a specific tenant
4949
```
50-
PS C:\>Get-AzSubscription -TenantId "xxxx-xxxx-xxxx-xxxx"
50+
PS C:\>Get-AzSubscription -TenantId "aaaa-aaaa-aaaa-aaaa"
5151
5252
Name Id TenantId State
5353
---- -- -------- -----

src/AnalysisServices/AnalysisServices.Dataplane/Commands/AddAzureASAccount.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
2424
using Microsoft.WindowsAzure.Commands.Common;
2525
using System;
26+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2627

2728
namespace Microsoft.Azure.Commands.AnalysisServices.Dataplane
2829
{
2930
/// <summary>
3031
/// Cmdlet to log into an Analysis Services environment
3132
/// </summary>
33+
[CmdletDeprecation("2.0.0")]
3234
[Cmdlet("Add", ResourceManager.Common.AzureRMConstants.AzurePrefix + "AnalysisServicesAccount", DefaultParameterSetName = "UserParameterSetName", SupportsShouldProcess =true)]
3335
[Alias("Login-AzureAsAccount", "Login-AzAsAccount")]
3436
[OutputType(typeof(AsAzureProfile))]

0 commit comments

Comments
 (0)