Skip to content
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

adding API Version for snapshots #1314

Merged
merged 1 commit into from
Feb 15, 2021
Merged

adding API Version for snapshots #1314

merged 1 commit into from
Feb 15, 2021

Conversation

Makdaam
Copy link
Contributor

@Makdaam Makdaam commented Feb 15, 2021

Which issue this PR addresses:

Relates to #1313 (quickfix, needs a proper solution for all resource types)

What this PR does / why we need it:

If List Azure Resources Geneva Action is run in a cluster which has VM snapshots in its resource group, the old code will fail due to API Version mismatch. This PR adds a snapshot specific API Version.

Test plan for issue:

I ran a List on snapshots with 2020-05-01 and it didn't fail.
also ((Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute).ResourceTypes | Where-Object ResourceTypeName -eq snapshots).ApiVersions shows that the API version is available.

Is there any documentation that needs to be updated for this PR?

N/A - fixes issue with existing code.

@troy0820
Copy link
Contributor

/lgtm

@jim-minter jim-minter merged commit 0aa1bbd into Azure:master Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants