-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{PolicyInsights} Update SDK package azure-mgmt-policyinsights
to 1.1.0b2
#22043
Conversation
AzurePolicy |
@najagasi, |
@najagasi Any update? |
azure-mgmt-policyinsights==1.0.0 | ||
azure-mgmt-policyinsights==1.1.0b2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the SDK package is a beta version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the latest python sdk version https://pypi.org/project/azure-mgmt-policyinsights/1.1.0b2/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@najagasi In fact, what I want to ask is why the latest SDK version is a beta version, is because it contains some unstable features or big changes?
If so, will it affect the existing commands?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fixes an issue we had ran into wherein the python sdk was making GET calls for nextLink instead of POST calls. Fix was needed in Policy Insights swagger and
py sdk release
in this PR bumping it to 1.1.0b2 fixes the issue in cli
@najagasi Could you address these comments by tomorrow? If not, this PR will not be able to catch up with the release of the sprint, and it can only be postponed to the next sprint (05-24) |
Working on the feedback |
azure-mgmt-policyinsights
to 1.1.0b2
@zhoxing-ms I notive that my tests are passing in live mode in local but when it seems like its failing here. |
@zhoxing-ms thanks for your feeback, i updated the version in my local and reran the tests. |
@najagasi Please re-record the yaml file for this test |
i notice this CannotOverwriteExistingCassetteException, how can I resolve this ? I generally run this command in my local, once the test is passed I add @record_only on the test and then push it. Is there any other command or flow that i should follow ? |
@najagasi Did you temporarily remove the |
'--resource "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cheggpolicy/providers/microsoft.keyvault/vaults/cheggtmpkv"', | ||
'--resource "cheggkv" --namespace "microsoft.keyvault" --resource-type "vaults" -g "cheggpolicy"', | ||
'--resource "subnet2" --namespace "microsoft.network" --resource-type "subnets" --parent "virtualnetworks/cheggvnet" -g "cheggpolicy"', | ||
'-s "1f3afdf9-d0c9-4c3d-847f-89da613e70a8"', | ||
'-d "34c877ad-507e-4c82-993e-3452a6e0ad3c"', | ||
'-a "4d31128e32d04a0098fd536e"', | ||
'-a "f32eeddfc32345b585f9a70b" -g "cheggpolicy" ' | ||
'-g {resourceGroup}', | ||
'--resource "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/microsoft.keyvault/vaults/{keyVault}"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@najagasi Why do you want to replace the subscription id from 00000000-0000-0000-0000-000000000000
to 3593b919-b078-4cc1-902f-201232a97ac0
? Please don't replace it and try again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fixed it, thank you!
Please do not merge this yet |
azure-mgmt-policyinsights
to 1.1.0b2
azure-mgmt-policyinsights
to 1.1.0b2
We are good to merge this |
azure-mgmt-policyinsights
to 1.1.0b2
azure-mgmt-policyinsights
to 1.1.0b2
Description
This PR upgrades the azure-mgmt-policyinsights library to version 1.1.0b2 from 1.0.0
Testing Guide
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.