Skip to content

Commit dd96183

Browse files
committed
Merge https://github.com/Azure/azure-powershell into operationalinsights-sku-pergb2018
2 parents 1dd64ee + 5fe49e1 commit dd96183

File tree

5,266 files changed

+5628825
-993038
lines changed

Some content is hidden

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

5,266 files changed

+5628825
-993038
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
variables:
2+
WindowsName: windows
3+
WindowsImage: VS2017-Win2016
4+
LinuxName: linux
5+
LinuxImage: Ubuntu-16.04
6+
MacOSName: macOS
7+
MacOSImage: macOS-10.13
8+
TestFramework: netcoreapp2.1
9+
TestTarget: Test
10+
Configuration: Debug
11+
12+
jobs:
13+
- job: Build
14+
displayName: Build
15+
condition: succeeded()
16+
strategy:
17+
matrix:
18+
windows:
19+
OSName: ${{ variables.WindowsName }}
20+
ImageName: ${{ variables.WindowsImage }}
21+
linux:
22+
OSName: ${{ variables.LinuxName }}
23+
ImageName: ${{ variables.LinuxImage }}
24+
macOS:
25+
OSName: ${{ variables.MacOSName }}
26+
ImageName: ${{ variables.MacOSImage }}
27+
pool:
28+
vmImage: $(ImageName)
29+
30+
steps:
31+
- template: util/build-steps.yml
32+
parameters:
33+
osName: $(OSName)
34+
testFramework: ${{ variables.TestFramework }}
35+
configuration: ${{ variables.Configuration }}
36+
37+
- job: Analyze
38+
displayName: Analyze
39+
dependsOn: Build
40+
condition: succeeded()
41+
strategy:
42+
matrix:
43+
windows:
44+
OSName: ${{ variables.WindowsName }}
45+
ImageName: ${{ variables.WindowsImage }}
46+
linux:
47+
OSName: ${{ variables.LinuxName }}
48+
ImageName: ${{ variables.LinuxImage }}
49+
macOS:
50+
OSName: ${{ variables.MacOSName }}
51+
ImageName: ${{ variables.MacOSImage }}
52+
pool:
53+
vmImage: $(ImageName)
54+
55+
steps:
56+
- template: util/analyze-steps.yml
57+
parameters:
58+
osName: $(OSName)
59+
configuration: ${{ variables.Configuration }}
60+
61+
- job: Test
62+
displayName: Test
63+
dependsOn: Build
64+
condition: succeeded()
65+
timeoutInMinutes: 120
66+
strategy:
67+
matrix:
68+
windows:
69+
OSName: ${{ variables.WindowsName }}
70+
ImageName: ${{ variables.WindowsImage }}
71+
linux:
72+
OSName: ${{ variables.LinuxName }}
73+
ImageName: ${{ variables.LinuxImage }}
74+
macOS:
75+
OSName: ${{ variables.MacOSName }}
76+
ImageName: ${{ variables.MacOSImage }}
77+
pool:
78+
vmImage: $(ImageName)
79+
80+
steps:
81+
- template: util/test-steps.yml
82+
parameters:
83+
osName: $(OSName)
84+
testFramework: ${{ variables.TestFramework }}
85+
testTarget: ${{ variables.TestTarget }}
86+
configuration: ${{ variables.Configuration }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
parameters:
2+
osName: ''
3+
configuration: ''
4+
5+
steps:
6+
- template: download-build-steps.yml
7+
parameters:
8+
osName: ${{ parameters.osName }}
9+
10+
- pwsh: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
11+
displayName: 'Install platyPS'
12+
13+
- task: DotNetCoreCLI@2
14+
displayName: 'Generate Help'
15+
inputs:
16+
command: custom
17+
custom: msbuild
18+
arguments: 'build.proj /t:GenerateHelp /p:Configuration=${{ parameters.configuration }}'
19+
20+
- task: DotNetCoreCLI@2
21+
displayName: 'Static Analysis'
22+
inputs:
23+
command: custom
24+
custom: msbuild
25+
arguments: 'build.proj /t:StaticAnalysis /p:Configuration=${{ parameters.configuration }}'
26+
27+
- template: publish-artifacts-steps.yml
28+
parameters:
29+
artifactName: analyze-${{ parameters.osName }}

.azure-pipelines/util/build-steps.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
parameters:
2+
osName: ''
3+
testFramework: ''
4+
configuration: ''
5+
6+
steps:
7+
- task: DotNetCoreCLI@2
8+
displayName: Build
9+
inputs:
10+
command: custom
11+
custom: msbuild
12+
arguments: 'build.proj /t:Build /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }}'
13+
14+
- template: publish-artifacts-steps.yml
15+
parameters:
16+
artifactName: build-${{ parameters.osName }}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parameters:
2+
osName: ''
3+
4+
steps:
5+
- task: DownloadPipelineArtifact@0
6+
displayName: 'Download build-${{ parameters.osName }}'
7+
inputs:
8+
artifactName: build-${{ parameters.osName }}
9+
targetPath: artifacts
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
parameters:
2+
artifactName: ''
3+
4+
steps:
5+
- task: PublishPipelineArtifact@0
6+
displayName: 'Save ${{ parameters.artifactName }}'
7+
inputs:
8+
artifactName: ${{ parameters.artifactName }}
9+
targetPath: artifacts
10+
condition: succeededOrFailed()

.azure-pipelines/util/test-steps.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
parameters:
2+
osName: ''
3+
testFramework: ''
4+
testTarget: ''
5+
configuration: ''
6+
7+
steps:
8+
- template: download-build-steps.yml
9+
parameters:
10+
osName: ${{ parameters.osName }}
11+
12+
- task: DotNetCoreCLI@2
13+
displayName: Test
14+
inputs:
15+
command: custom
16+
custom: msbuild
17+
arguments: 'build.proj /t:${{ parameters.testTarget }} /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }}'
18+
19+
- template: publish-artifacts-steps.yml
20+
parameters:
21+
artifactName: test-${{ parameters.osName }}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
variables:
2+
WindowsName: windows
3+
WindowsImage: VS2017-Win2016
4+
TestFramework: net472
5+
TestTarget: TestNet472
6+
Configuration: Debug
7+
8+
jobs:
9+
- job: Build
10+
displayName: Build
11+
condition: succeeded()
12+
pool:
13+
vmImage: ${{ variables.WindowsImage }}
14+
15+
steps:
16+
- template: util/build-steps.yml
17+
parameters:
18+
osName: ${{ variables.WindowsName }}
19+
testFramework: ${{ variables.TestFramework }}
20+
configuration: ${{ variables.Configuration }}
21+
22+
- job: Analyze
23+
displayName: Analyze
24+
dependsOn: Build
25+
condition: succeeded()
26+
pool:
27+
vmImage: ${{ variables.WindowsImage }}
28+
29+
steps:
30+
- template: util/analyze-steps.yml
31+
parameters:
32+
osName: ${{ variables.WindowsName }}
33+
configuration: ${{ variables.Configuration }}
34+
- task: PowerShell@2
35+
displayName: 'Cleanup Build'
36+
inputs:
37+
targetType: filePath
38+
filePath: tools/CleanupBuild.ps1
39+
pwsh: true
40+
- task: NuGetCommand@2
41+
displayName: 'Download BinSkim'
42+
inputs:
43+
command: custom
44+
arguments: 'install Microsoft.CodeAnalysis.BinSkim -OutputDirectory $(System.DefaultWorkingDirectory)/tools/SecurityTools'
45+
- task: PowerShell@2
46+
displayName: 'Run BinSkim'
47+
inputs:
48+
targetType: filePath
49+
filePath: tools/SecurityTools/RunBinSkim.ps1
50+
pwsh: true
51+
52+
- job: Test
53+
displayName: Test
54+
dependsOn: Build
55+
condition: succeeded()
56+
timeoutInMinutes: 120
57+
pool:
58+
vmImage: ${{ variables.WindowsImage }}
59+
60+
steps:
61+
- template: util/test-steps.yml
62+
parameters:
63+
osName: ${{ variables.WindowsName }}
64+
testFramework: ${{ variables.TestFramework }}
65+
testTarget: ${{ variables.TestTarget }}
66+
configuration: ${{ variables.Configuration }}

.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 -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-AzError and paste the output in the below code block -->
57+
58+
```
59+
60+
```

0 commit comments

Comments
 (0)