You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature
This checklist is used to make sure that common guidelines for a pull request are followed.
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:45: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.11/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.11/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.11/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
def getresponse(self, =False, **kwargs): """Retrieve the response""" # Check to see if the cassette has a response for this request. If so, # then return it if self.cassette.can_play_response_for(self.vcr_request): log.info(f"Playing response for {self.vcr_request} from cassette") response = self.cassette.play_response(self.vcr_request) return VCRHTTPResponse(response) else: if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request): > raise CannotOverwriteExistingCassetteException( cassette=self.cassette, failed_request=self.vcr_request, ) E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/identity/tests/latest/recordings/test_identity_management.yaml') in your current record mode ('once'). E No match for the request (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001?api-version=2022-09-01>) was found. E Found 2 similar requests with 2 different matcher(s) : E E 1 - (<Request (GET) https://management.azure.com/providers/Microsoft.ManagedIdentity/operations?api-version=2023-01-31>). E Matchers succeeded : ['method', 'scheme', 'host', 'port'] E Matchers failed : E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001 != /providers/Microsoft.ManagedIdentity/operations E custom_request_query_matcher - assertion failure : E None E E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_identity_mgmt_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2023-01-31>). E Matchers succeeded : ['method', 'scheme', 'host', 'port'] E Matchers failed : E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_identity_mgmt_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities E custom_request_query_matcher - assertion failure : E None
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:23: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.11/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.11/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.11/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
def getresponse(self, =False, **kwargs): """Retrieve the response""" # Check to see if the cassette has a response for this request. If so, # then return it if self.cassette.can_play_response_for(self.vcr_request): log.info(f"Playing response for {self.vcr_request} from cassette") response = self.cassette.play_response(self.vcr_request) return VCRHTTPResponse(response) else: if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request): > raise CannotOverwriteExistingCassetteException( cassette=self.cassette, failed_request=self.vcr_request, ) E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/identity/tests/latest/recordings/test_revoke_token.yaml') in your current record mode ('once'). E No match for the request (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001?api-version=2022-09-01>) was found. E Found 2 similar requests with 3 different matcher(s) : E E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide?api-version=2023-01-31>). E Matchers succeeded : ['scheme', 'host', 'port'] E Matchers failed : E method - assertion failure : E GET != PUT E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide E custom_request_query_matcher - assertion failure : E None E E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide/revokeTokens?api-version=2023-07-31-preview>). E Matchers succeeded : ['scheme', 'host', 'port'] E Matchers failed : E method - assertion failure : E GET != POST E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide/revokeTokens E custom_request_query_matcher - assertion failure : E None
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:127: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.11/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.11/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.11/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:45: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.9/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.9/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.9/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
def getresponse(self, =False, **kwargs): """Retrieve the response""" # Check to see if the cassette has a response for this request. If so, # then return it if self.cassette.can_play_response_for(self.vcr_request): log.info(f"Playing response for {self.vcr_request} from cassette") response = self.cassette.play_response(self.vcr_request) return VCRHTTPResponse(response) else: if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request): > raise CannotOverwriteExistingCassetteException( cassette=self.cassette, failed_request=self.vcr_request, ) E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/identity/tests/latest/recordings/test_identity_management.yaml') in your current record mode ('once'). E No match for the request (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001?api-version=2022-09-01>) was found. E Found 2 similar requests with 2 different matcher(s) : E E 1 - (<Request (GET) https://management.azure.com/providers/Microsoft.ManagedIdentity/operations?api-version=2023-01-31>). E Matchers succeeded : ['method', 'scheme', 'host', 'port'] E Matchers failed : E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001 != /providers/Microsoft.ManagedIdentity/operations E custom_request_query_matcher - assertion failure : E None E E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_identity_mgmt_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities?api-version=2023-01-31>). E Matchers succeeded : ['method', 'scheme', 'host', 'port'] E Matchers failed : E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_identity_mgmt_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_identity_mgmt_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities E custom_request_query_matcher - assertion failure : E None
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:23: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.9/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.9/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.9/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
def getresponse(self, =False, **kwargs): """Retrieve the response""" # Check to see if the cassette has a response for this request. If so, # then return it if self.cassette.can_play_response_for(self.vcr_request): log.info(f"Playing response for {self.vcr_request} from cassette") response = self.cassette.play_response(self.vcr_request) return VCRHTTPResponse(response) else: if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request): > raise CannotOverwriteExistingCassetteException( cassette=self.cassette, failed_request=self.vcr_request, ) E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/identity/tests/latest/recordings/test_revoke_token.yaml') in your current record mode ('once'). E No match for the request (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001?api-version=2022-09-01>) was found. E Found 2 similar requests with 3 different matcher(s) : E E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide?api-version=2023-01-31>). E Matchers succeeded : ['scheme', 'host', 'port'] E Matchers failed : E method - assertion failure : E GET != PUT E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide E custom_request_query_matcher - assertion failure : E None E E 2 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide/revokeTokens?api-version=2023-07-31-preview>). E Matchers succeeded : ['scheme', 'host', 'port'] E Matchers failed : E method - assertion failure : E GET != POST E path - assertion failure : E /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_revoke_token_000001 != /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_revoke_token_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ide/revokeTokens E custom_request_query_matcher - assertion failure : E None
src/azure-cli/azure/cli/command_modules/identity/tests/latest/test_identity.py:127: src/azure-cli-testsdk/azure/cli/testsdk/base.py:175: in cmd return execute(self.cli_ctx, command, expect_failure=expect_failure).assert_with_checks(checks) src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init self.in_process_execute(cli_ctx, command, expect_failure=expect_failure) src/azure-cli-testsdk/azure/cli/testsdk/base.py:301: in in_process_execute self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 env/lib/python3.9/site-packages/knack/cli.py:250: in invoke raise ex env/lib/python3.9/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:651: in execute self.validation(expanded_arg) env/lib/python3.9/site-packages/knack/invocation.py:118: in validation getattr(parsed_ns, 'parser', self.parser).validation_error(str(err)) src/azure-cli-core/azure/cli/core/parser.py:150: in validation_error self.exit(2)
RamyaElangovanP
changed the title
[Identity] Add: az storage remove: az identity revoke --id argument
[Identity] Add: az identity add: az identity revoke --id argument
Dec 11, 2023
RamyaElangovanP
changed the title
[Identity] Add: az identity add: az identity revoke --id argument
[Identity] Add: `az identity add': 'az identity revoke --id argument'
Dec 11, 2023
RamyaElangovanP
changed the title
[Identity] Add: `az identity add': 'az identity revoke --id argument'
[Identity] Add: az identity add: az identity revoke --id argumentDec 11, 2023
RamyaElangovanP
changed the title
[Identity] Add: az identity add: az identity revoke --id argument
[Identity] Add: az identity add: az identity revoke --id argumentDec 11, 2023
Let me check with you if the all changes of this PR are:
Add a command az identity revoke to revoke all tokens issued in the past for a specified user assigned identity
If so, suggested title is:
[Identity] az identity revoke: Add a command to revoke all tokens issued in the past for a specified user assigned identity
RamyaElangovanP
changed the title
[Identity] Add: az identity add: az identity revoke --id argument
[Identity] az identity revoke: Add a command to revoke all tokens issued in the past for a specified user assigned identity
Dec 12, 2023
Let me check with you if the all changes of this PR are: Add a command az identity revoke to revoke all tokens issued in the past for a specified user assigned identity
If so, suggested title is: [Identity] az identity revoke: Add a command to revoke all tokens issued in the past for a specified user assigned identity
yeah it is. Updated as suggested
RamyaElangovanP
changed the title
[Identity] az identity revoke: Add a command to revoke all tokens issued in the past for a specified user assigned identity
[Identity] az identity revoke: Add a command to revoke all tokens issued in the past for a specified user assigned identity
Dec 12, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…preview API version
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis 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.