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.
def in_process_execute(self, cli_ctx, command, expect_failure=False): from io import StringIO from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '): command = command[3:]
stdout_buf = StringIO() logging_buf = StringIO() try: # issue: stderr cannot be redirect in this form, as a result some failure information # is lost when command fails. > self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: env/lib/python3.12/site-packages/knack/cli.py:245: in invoke exit_code = self.exception_handler(ex) src/azure-cli-core/azure/cli/core/init.py:129: in exception_handler return handle_exception(ex) src/azure-cli-testsdk/azure/cli/testsdk/patches.py:33: in handle_main_exception raise ex env/lib/python3.12/site-packages/knack/cli.py:233: in invoke cmd_result = self.invocation.execute(args) src/azure-cli-core/azure/cli/core/commands/init.py:666: in execute raise ex src/azure-cli-core/azure/cli/core/commands/init.py:734: in run_jobs_serially results.append(self.run_job(expanded_arg, cmd_copy)) src/azure-cli-core/azure/cli/core/commands/init.py:726: in run_job return cmd_copy.exception_handler(ex) src/azure-cli/azure/cli/command_modules/appservice/commands.py:46: in ex_handler raise ex src/azure-cli-core/azure/cli/core/commands/init.py:703: in run_job result = cmd_copy(params) src/azure-cli-core/azure/cli/core/commands/init.py:336: in call return self.handler(*args, **kwargs) src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler return op(**command_args) src/azure-cli/azure/cli/command_modules/appservice/custom.py:169: in create_webapp name_validation = get_site_availability(cmd, name) src/azure-cli/azure/cli/command_modules/appservice/create_util.py:327: in get_site_availability availability = client.check_name_availability(name, 'Site') env/lib/python3.12/site-packages/azure/mgmt/web/operations_mixin.py:92: in check_name_availability return mixin_instance.check_name_availability(name, type, is_fqdn, environment_id, **kwargs) env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer return func(*args, **kwargs) env/lib/python3.12/site-packages/azure/mgmt/web/v2023_12_01/operations/web_site_management_client_operations.py:1121: in check_name_availability pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access env/lib/python3.12/site-packages/azure/core/pipeline/base.py:229: in run return first_node.send(pipeline_request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:47: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:197: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:532: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:147: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.12/site-packages/azure/core/pipeline/base.py:118: in send self.sender.send(request.http_request, **request.context.options), env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:355: in send response = self.session.request( # type: ignore env/lib/python3.12/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) env/lib/python3.12/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) env/lib/python3.12/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( env/lib/python3.12/site-packages/urllib3/connectionpool.py:715: in urlopen httplib_response = self.make_request( env/lib/python3.12/site-packages/urllib3/connectionpool.py:458: in make_request httplib_response = conn.getresponse(buffering=True)
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/appservice/tests/latest/recordings/test_webapp_slot_clone.yaml') in your current record mode ('once'). E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-12-01>) was found. E Found 1 similar requests with 1 different matcher(s) : E E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-01-01>). E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path'] E Matchers failed : E custom_request_query_matcher - assertion failure : E None
def _in_process_execute(self, cli_ctx, command, expect_failure=False): from io import StringIO from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '): command = command[3:]
stdout_buf = StringIO() logging_buf = StringIO() try: # issue: stderr cannot be redirect in this form, as a result some failure information # is lost when command fails. self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 self.output = stdout_buf.getvalue() self.applog = logging_buf.getvalue()
def in_process_execute(self, cli_ctx, command, expect_failure=False): from io import StringIO from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '): command = command[3:]
stdout_buf = StringIO() logging_buf = StringIO() try: # issue: stderr cannot be redirect in this form, as a result some failure information # is lost when command fails. > self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0
src/azure-cli-testsdk/azure/cli/testsdk/base.py:302: env/lib/python3.9/site-packages/knack/cli.py:245: in invoke exit_code = self.exception_handler(ex) src/azure-cli-core/azure/cli/core/init.py:129: in exception_handler return handle_exception(ex) src/azure-cli-testsdk/azure/cli/testsdk/patches.py:33: in handle_main_exception 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:666: in execute raise ex src/azure-cli-core/azure/cli/core/commands/init.py:734: in run_jobs_serially results.append(self.run_job(expanded_arg, cmd_copy)) src/azure-cli-core/azure/cli/core/commands/init.py:726: in run_job return cmd_copy.exception_handler(ex) src/azure-cli/azure/cli/command_modules/appservice/commands.py:46: in ex_handler raise ex src/azure-cli-core/azure/cli/core/commands/init.py:703: in run_job result = cmd_copy(params) src/azure-cli-core/azure/cli/core/commands/init.py:336: in call return self.handler(*args, **kwargs) src/azure-cli-core/azure/cli/core/commands/command_operation.py:120: in handler return op(**command_args) src/azure-cli/azure/cli/command_modules/appservice/custom.py:169: in create_webapp name_validation = get_site_availability(cmd, name) src/azure-cli/azure/cli/command_modules/appservice/create_util.py:327: in get_site_availability availability = client.check_name_availability(name, 'Site') env/lib/python3.9/site-packages/azure/mgmt/web/operations_mixin.py:92: in check_name_availability return mixin_instance.check_name_availability(name, type, is_fqdn, environment_id, **kwargs) env/lib/python3.9/site-packages/azure/core/tracing/decorator.py:94: in wrapper_use_tracer return func(*args, **kwargs) env/lib/python3.9/site-packages/azure/mgmt/web/v2023_12_01/operations/web_site_management_client_operations.py:1121: in check_name_availability pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access env/lib/python3.9/site-packages/azure/core/pipeline/base.py:229: in run return first_node.send(pipeline_request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/mgmt/core/policies/base.py:47: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/policies/redirect.py:197: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/policies/retry.py:532: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/policies/authentication.py:147: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:86: in send response = self.next.send(request) env/lib/python3.9/site-packages/azure/core/pipeline/base.py:118: in send self.sender.send(request.http_request, **request.context.options), env/lib/python3.9/site-packages/azure/core/pipeline/transport/requests_basic.py:355: in send response = self.session.request( # type: ignore env/lib/python3.9/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) env/lib/python3.9/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) env/lib/python3.9/site-packages/requests/adapters.py:667: in send resp = conn.urlopen( env/lib/python3.9/site-packages/urllib3/connectionpool.py:715: in urlopen httplib_response = self.make_request( env/lib/python3.9/site-packages/urllib3/connectionpool.py:458: in make_request httplib_response = conn.getresponse(buffering=True)
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/appservice/tests/latest/recordings/test_webapp_slot_clone.yaml') in your current record mode ('once'). E No match for the request (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-12-01>) was found. E Found 1 similar requests with 1 different matcher(s) : E E 1 - (<Request (POST) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-01-01>). E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path'] E Matchers failed : E custom_request_query_matcher - assertion failure : E None
def _in_process_execute(self, cli_ctx, command, expect_failure=False): from io import StringIO from vcr.errors import CannotOverwriteExistingCassetteException
if command.startswith('az '): command = command[3:]
stdout_buf = StringIO() logging_buf = StringIO() try: # issue: stderr cannot be redirect in this form, as a result some failure information # is lost when command fails. self.exit_code = cli_ctx.invoke(shlex.split(command), out_file=stdout_buf) or 0 self.output = stdout_buf.getvalue() self.applog = logging_buf.getvalue()
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.
Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:
@cephalin something is wrong with the pipeline checks. im getting the same errors in my PRs. you shouldn't have to do anything else here since your change is just a simple string change. it shouldn't cause any issues.
@zhoxing-ms can you help us figure out what happened here? i'm seeing the same errors on my PRs. #30986 #30990
please note that Azure CLI will have a code freeze on 03/25/2025 07:00 UTC for the upcoming release. If you want to catch this release train, please address the commands ASAP, otherwise it has to be postponed to next sprint (05-06).
please note that Azure CLI will have a code freeze on 04/21/2025 07:00 UTC for the upcoming release. Please address the comments ASAP, otherwise it has to be postponed to next sprint (05-19).
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.
Related command
Description
This doc https://learn.microsoft.com/en-us/cli/azure/webapp/deployment/source contains a dummy link https://github.com/foo/foo-web that shouldn't be a live link, and is falsely showing up in our broken link report.
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.