Skip to content

Fix Get-AzureRmVM paging with ResourceGroupName #7365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 2, 2018

Conversation

jabbera
Copy link
Contributor

@jabbera jabbera commented Sep 24, 2018

Add paging support to Get-AzureRmVM when -ResourceGroupName parameter is set.

Many apologies. I was trying to make the change requested by the code review at Ignite on a new machine and accidentally rebased away all history on my branch causing the PR to close. (Curse you depth of 1 clone) I was not able to recover it.

Description

Checklist

Add paging support to Get-AzureRmVM when -ResourceGroupName parameter is set.
@cormacpayne
Copy link
Member

@jabbera @hyonholee do we know how long this scenario has been broken? It seems that there is already an existing test that covers this paging functionality (specifically, more than 50 entries), and it hasn't been failing, so do we know why this test isn't failing or how it was previously recorded?

@jabbera
Copy link
Contributor Author

jabbera commented Sep 25, 2018

Our vendor couldn’t reproduce the issue. Maybe it was tennant or subscription specific? It broke for us on 9/17 and was resolved yesterday.

@jabbera
Copy link
Contributor Author

jabbera commented Sep 25, 2018

As for why the test worked it’s because that api never seemed to page before. The test erroneously assumed it was because the paging code existed when in reality that api didn’t page.

@hyonholee
Copy link
Contributor

LGTM. Paging will be available only for the latest version (2018-10-01 version and after).

@cormacpayne Please merge this PR. Then I will update Compute client library to the latest version so that the cmdlet returns all pages. (Note that this PR does not break old API version, because for old API version, the service does not return nextlink, in which this PR behaves the same as before.)

Thanks,

@cormacpayne cormacpayne merged commit edd6562 into Azure:preview Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants