Skip to content

Commit 1450844

Browse files
committed
Fix Get-AzureRmVM paging with ResourceGroupName
Add paging support to Get-AzureRmVM when -ResourceGroupName parameter is set.
0 parents  commit 1450844

File tree

19,439 files changed

+13515211
-0
lines changed

Some content is hidden

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

19,439 files changed

+13515211
-0
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Exclude all.
2+
**/*
3+
4+
# Include the build.
5+
!src/Package/Release/ResourceManager/**/*
6+
!src/Package/Debug/ResourceManager/**/*
7+
!tools/InstallationTests/NetcoreTests/**/*

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Set default behaviour, in case users don't have core.autocrlf set.
2+
* text=auto
3+
4+
*.sln text eol=crlf
5+
*.cs text eol=crlf
6+
*.csproj text eol=crlf
7+
*.ps1 text eol=crlf
8+
*.psd1 text eol=crlf
9+
*.psm1 text eol=crlf
10+
*.ps1xml text eol=crlf
11+
build.proj text eol=crlf

.github/ISSUE_TEMPLATE.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!--
2+
3+
If this issue is a bug report:
4+
- Upgrade to the latest version of AzureRM and verify you are able to reproduce the issue
5+
- You can install the latest version of AzureRM from the PowerShell Gallery
6+
- https://www.powershellgallery.com/packages/AzureRM
7+
- You can also install the latest version from the Releases section
8+
- https://github.com/Azure/azure-powershell/releases
9+
- Ensure that you repro the issue with $DebugPreference = "Continue" to receive the debug stream
10+
- If this bug involves an exception being thrown, please run Resolve-AzureRmError to receive extended information on the error
11+
- Fill out the below template
12+
13+
If this issue is not a bug report, please remove the below template
14+
15+
-->
16+
17+
### Description
18+
19+
<!-- Please provide a description of the issue you are facing -->
20+
21+
### Script/Steps for Reproduction
22+
23+
<!-- Please provide the necessary script(s) that reproduce the issue -->
24+
25+
```powershell
26+
27+
```
28+
29+
### Module Version
30+
31+
<!-- Please run (Get-Module -ListAvailable) to get the version(s) of all modules, including Azure installed on your machine -->
32+
33+
```powershell
34+
Get-Module -ListAvailable
35+
```
36+
37+
### Environment Data
38+
39+
<!-- Please run $PSVersionTable to get the necessary environment data -->
40+
41+
```powershell
42+
$PSVersionTable
43+
```
44+
45+
### Debug Output
46+
47+
<!-- Please run the above script with $DebugPreference='Continue' and paste the resulting debug stream in the below code block -->
48+
49+
```
50+
51+
```

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- DO NOT DELETE THIS TEMPLATE -->
2+
3+
## Description
4+
5+
<!-- Please add a brief description of the changes made in this PR -->
6+
7+
## Checklist
8+
9+
- [ ] I have read the [_Submitting Changes_](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md)
10+
- [ ] The title of the PR is clear and informative
11+
- [ ] The appropriate [change log has been updated](https://github.com/Azure/azure-powershell/blob/preview/CONTRIBUTING.md#updating-the-change-log)
12+
- [ ] The PR does not introduce [breaking changes](https://github.com/Azure/azure-powershell/blob/preview/documentation/breaking-changes/breaking-changes-definition.md)
13+
- [ ] If applicable, the changes made in the PR have proper test coverage
14+
- [ ] For public API changes to cmdlets:
15+
- [ ] the changes have gone through a [cmdlet design review](https://github.com/Azure/azure-powershell-cmdlet-review-pr)
16+
- [ ] the cmdlet markdown files were [generated using the `platyPS` module](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/help-generation.md)

.gitignore

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
# Azure PowerShell specific
2+
src/Publish/
3+
src/Package/
4+
src/Stack/
5+
src/local-artifacts/*
6+
!.placeholder
7+
8+
obj
9+
TestResults
10+
*.orig
11+
*.ncrunchsolution
12+
*.patch
13+
msbuild.log
14+
15+
# app.config is not useful for PowerShell.
16+
# please do not commit any app.config files.
17+
app.config
18+
!src/ResourceManager/Profile/Commands.Profile.Test/App.config
19+
!src/ResourceManager/ManagedServiceIdentity/Commands.ManagedServiceIdentity.Test/App.config
20+
!src/Storage/Commands.Storage.Test/app.config
21+
22+
## Ignore Visual Studio temporary files, build results, and
23+
## files generated by popular Visual Studio add-ons.
24+
25+
# User-specific files
26+
*.suo
27+
*.user
28+
*.userprefs
29+
*.sln.docstates
30+
.vscode
31+
*.userosscache
32+
33+
# Build results
34+
[Dd]ebug/
35+
[Dd]ebugPublic/
36+
[Rr]elease/
37+
[Rr]eleases/
38+
x64/
39+
build/
40+
bld/
41+
src/*/[Bb]in/
42+
setup/**/*/[Bb]in/
43+
setup/[Bb]in/
44+
[Oo]bj/
45+
46+
# Roslyn cache directories
47+
*.ide/
48+
49+
# MSTest test Results
50+
[Tt]est[Rr]esult*/
51+
[Bb]uild[Ll]og.*
52+
53+
#NUNIT
54+
*.VisualState.xml
55+
TestResult.xml
56+
57+
# Build Results of an ATL Project
58+
[Dd]ebugPS/
59+
[Rr]eleasePS/
60+
dlldata.c
61+
62+
*_i.c
63+
*_p.c
64+
*_i.h
65+
*.ilk
66+
*.meta
67+
*.obj
68+
*.pch
69+
*.pdb
70+
*.pgc
71+
*.pgd
72+
*.rsp
73+
*.sbr
74+
*.tlb
75+
*.tli
76+
*.tlh
77+
*.tmp
78+
*.tmp_proj
79+
*.log
80+
*.vspscc
81+
*.vssscc
82+
.builds
83+
*.pidb
84+
*.svclog
85+
*.scc
86+
87+
# Chutzpah Test files
88+
_Chutzpah*
89+
90+
# Visual C++ cache files
91+
ipch/
92+
*.aps
93+
*.ncb
94+
*.opensdf
95+
*.sdf
96+
*.cachefile
97+
98+
# Visual Studio profiler
99+
*.psess
100+
*.vsp
101+
*.vspx
102+
103+
# TFS 2012 Local Workspace
104+
$tf/
105+
106+
# Guidance Automation Toolkit
107+
*.gpState
108+
109+
# ReSharper is a .NET coding add-in
110+
_ReSharper*/
111+
*.[Rr]e[Ss]harper
112+
*.DotSettings.user
113+
114+
# JustCode is a .NET coding addin-in
115+
.JustCode
116+
117+
# TeamCity is a build add-in
118+
_TeamCity*
119+
120+
# DotCover is a Code Coverage Tool
121+
*.dotCover
122+
123+
# NCrunch
124+
_NCrunch_*
125+
.*crunch*.local.xml
126+
127+
# MightyMoose
128+
*.mm.*
129+
AutoTest.Net/
130+
131+
# Web workbench (sass)
132+
.sass-cache/
133+
134+
# Installshield output folder
135+
[Ee]xpress/
136+
137+
# DocProject is a documentation generator add-in
138+
DocProject/buildhelp/
139+
DocProject/Help/*.HxT
140+
DocProject/Help/*.HxC
141+
DocProject/Help/*.hhc
142+
DocProject/Help/*.hhk
143+
DocProject/Help/*.hhp
144+
DocProject/Help/Html2
145+
DocProject/Help/html
146+
147+
# Publish Web Output
148+
*.[Pp]ublish.xml
149+
*.azurePubxml
150+
## TODO: Comment the next line if you want to checkin your
151+
## web deploy settings but do note that will include unencrypted
152+
## passwords
153+
*.pubxml
154+
155+
# NuGet Packages Directory
156+
packages/
157+
## TODO: If the tool you use requires repositories.config
158+
## uncomment the next line
159+
#!packages/repositories.config
160+
161+
# Enable "build/" folder in the NuGet Packages folder since
162+
# NuGet packages use it for MSBuild targets.
163+
# This line needs to be after the ignore of the build folder
164+
# (and the packages folder if the line above has been uncommented)
165+
!packages/build/
166+
167+
# Microsoft Azure Build Output
168+
csx/
169+
*.build.csdef
170+
171+
# Windows Store app package directory
172+
AppPackages/
173+
174+
# Others
175+
*.Cache
176+
ClientBin/
177+
[Ss]tyle[Cc]op.*
178+
~$*
179+
*~
180+
*.dbmdl
181+
*.dbproj.schemaview
182+
node_modules/
183+
.pshproj
184+
/tools/*.xml
185+
/tools/BuildPackagesTask/*.dll
186+
/tools/BuildPackagesTask/*.xml
187+
/restore.config
188+
189+
# RIA/Silverlight projects
190+
Generated_Code/
191+
192+
# Backup & report files from converting an old project file
193+
# to a newer Visual Studio version. Backup files are not needed,
194+
# because we have git ;-)
195+
_UpgradeReport_Files/
196+
Backup*/
197+
UpgradeLog*.XML
198+
UpgradeLog*.htm
199+
200+
# The Backup*/ rule will ignore the backup and restore cmdlets
201+
# for Azure web apps. Exclude that directory from being ignored here.
202+
!/src/ResourceManager/Websites/Commands.Websites/Cmdlets/BackupRestore
203+
204+
# SQL Server files
205+
*.mdf
206+
*.ldf
207+
208+
# Business Intelligence projects
209+
*.rdl.data
210+
*.bim.layout
211+
*.bim_*.settings
212+
213+
# Microsoft Fakes
214+
FakesAssemblies/
215+
216+
.vs/
217+
/tools/*.dll
218+
*.GhostDoc.xml
219+
pingme.txt
220+
groupMapping*.json
221+
/tools/index.json
222+
/Package/index.json
223+
/tools/outputtypes.json
224+
/Package/outputtypes.json
225+
226+
*.msi
227+
*.wixpdb
228+
229+
.vscode/
230+
/tools/AutomationTestFramework/Runbooks
231+
Results
232+
Package
233+
.DS_Store
234+
.idea
235+
/src/ResourceManager/RecoveryServices.Backup/**/bin
236+
launchSettings.json
237+
/src/StackAdmin/AzureRM/AzureRM.psm1
238+
/src/StackAdmin/AzureStack/AzureStack.psm1
239+
/tools/AzureRM.Netcore/AzureRM.Netcore.psm1
240+
/ModuleMappings.json
241+
/SolutionMappings.json
242+
/TestMappings.json
243+
/tools/Modules/tmp

.travis.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
sudo: required
2+
language: csharp
3+
mono: none
4+
dotnet: 2.1.400
5+
dist: trusty
6+
7+
env:
8+
- NAME="azure-powershell-core" CONFIG="Debug"
9+
10+
services:
11+
- docker
12+
13+
before_install:
14+
- sudo apt-get update
15+
- sudo apt-get install docker-ce
16+
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
17+
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
18+
- wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
19+
- sudo dpkg -i packages-microsoft-prod.deb
20+
- sudo apt-get install apt-transport-https
21+
- sudo apt-get update
22+
- sudo apt-get install -y powershell
23+
- sudo pwsh -NonInteractive -NoLogo -NoProfile -Command "Install-Module platyPS -Force -Confirm:\$false -Scope CurrentUser"
24+
25+
# https://github.com/travis-ci/travis-ci/issues/1066#issuecomment-383489298
26+
script:
27+
- sudo dotnet msbuild build.proj /t:BuildNetcore /p:Configuration=$CONFIG || travis_terminate 1
28+
- sudo dotnet tools/StaticAnalysis/bin/$CONFIG/netcoreapp2.1/StaticAnalysis.Netcore.dll -p src/Package/$CONFIG -r src/Package -u || travis_terminate 1
29+
- sudo pwsh -NonInteractive -NoLogo -NoProfile -File tools/TestModuleLoading.ps1 || travis_terminate 1
30+
- sudo dotnet pack src/TestPrerequisites/Common.TestPrerequisites.sln --configuration $CONFIG || travis_terminate 1
31+
- sudo dotnet test src/Azure.PowerShell.Netcore.Test.sln --filter "AcceptanceType=CheckIn&RunType!=DesktopOnly" --configuration $CONFIG --framework netcoreapp2.0
32+
33+
after_success:
34+
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
35+
docker build . -t $DOCKER_USER/$NAME:$TRAVIS_COMMIT --build-arg CONFIG=$CONFIG;
36+
docker tag $DOCKER_USER/$NAME:$TRAVIS_COMMIT $DOCKER_USER/$NAME:$TRAVIS_BRANCH;
37+
38+
echo "$DOCKER_PASS" | docker login -u $DOCKER_USER --password-stdin;
39+
40+
docker push $DOCKER_USER/$NAME:$TRAVIS_COMMIT;
41+
docker push $DOCKER_USER/$NAME:$TRAVIS_BRANCH;
42+
43+
if [ "$TRAVIS_BRANCH" == "master" ]; then
44+
docker tag $DOCKER_USER/$NAME:$TRAVIS_COMMIT $DOCKER_USER/$NAME:latest;
45+
docker push $DOCKER_USER/$NAME:latest;
46+
fi;
47+
fi

0 commit comments

Comments
 (0)