[App Service] `az functionapp create`: Add the --domain-name-scope support
Related command az functionapp create
Description
The change adds the support of --domain-name-scope parameter. The parameter helps customers to specify the domain name scope for the function app. When creating the function app with --domain-name-scope SubscriptionReuse, it will functionapp with the domain of the format of [appnames]-[unique-string].[region].azurewebsites.net instead of the default domain of [appnames].azurewebsites.net.
Testing Guide az functionapp create -g [resrouce-group] -n [functionapp-name] -s [storage-account-name] --functions-version 4 --runtime python --runtime-version 3.11 --flexconsumption-location [region] --domain-name-scope SubscriptionReuse
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
-
[x] The PR title and description has followed the guideline in Submitting Pull Requests.
-
[x] I adhere to the Command Guidelines.
-
[x] I adhere to the Error Handling Guidelines.
❌AzureCLI-FullTest
🔄acr
🔄latest
️✔️3.12
🔄3.9
🔄acs
🔄latest
🔄3.12
🔄3.9
🔄advisor
🔄latest
️✔️3.12
🔄3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
🔄apim
🔄latest
🔄3.12
🔄3.9
🔄appconfig
🔄latest
🔄3.12
🔄3.9
❌appservice
❌latest
❌3.12
Type Test Case Error Message Line Failed test_logicapp_config_appsettings_e2e self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f38490a2810>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f384b72e9f0>
command = 'appservice plan create -g clitest.rg000001 -n logic-e2e-plan000003 --sku WS1'
expect_failure = False
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:303:
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:3163: in create_app_service_plan
existing_plan = get_resource_if_exists(client.app_service_plans,
src/azure-cli/azure/cli/command_modules/appservice/utils.py:117: in get_resource_if_exists
return resource.get(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1330: in get
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.12/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_logicapp_config_appsettings_e2e.yaml object at 0x7f3848da80b0>
= False, kwargs = {}
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_logicapp_config_appsettings_e2e.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/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?api-version=2024-04-01>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?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
env/lib/python3.12/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.appservice.tests.latest.test_logicapp_commands.LogicappBasicE2ETest testMethod=test_logicapp_config_appsettings_e2e>
resource_group = 'clitest.rg000001'
@ResourceGroupPreparer(location=DEFAULT_LOCATION)
def test_logicapp_config_appsettings_e2e(self, resource_group):
logicapp_name = self.create_random_name(prefix='logic-e2e', length=24)
plan = self.create_random_name(prefix='logic-e2e-plan', length=24)
storage = self.create_random_name(prefix='logicstorage', length=24)
> self.cmd('appservice plan create -g {} -n {} --sku WS1'.format(resource_group, plan)).get_output_in_json()['id']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:160:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f38490a2810>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f384b72e9f0>
command = 'appservice plan create -g clitest.rg000001 -n logic-e2e-plan000003 --sku WS1'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_logicapp_config_appsettings_e2e.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/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?api-version=2024-04-01>) was found.
E Found 2 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/logic-e2e-plan000003?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:154 Failed test_logicapp_e2e The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:30 Failed test_logicapp_e2etest_logicapp_versions_e2e The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:110 Failed test_logicapp_https_only The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:144 Failed test_logicapp_scale_e2e The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:197 Failed test_logicapp_update The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:223 Failed test_asp_ws1_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:325 Failed test_asp_ws2_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:330 Failed test_asp_ws3_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:335 Failed test_autocreate_asp_for_logicapp The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:340 Failed test_update_asp_to_logicapp_sku_fails The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:351 Failed test_update_logicapp_asp_sku The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:358 Failed test_logicapp_on_linux The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_logicapp_commands.py:366 Failed test_staticapp_appsettings The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_staticapp_commands.py:49 Failed test_staticapp_linked_backends The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_staticapp_commands.py:11 Failed test_webapp_access_restriction_add The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:104 Failed test_webapp_access_restriction_add_internal_service_tag_validation The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:189 Failed test_webapp_access_restriction_add_ip_address_validation The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:124 Failed test_webapp_access_restriction_add_scm The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:370 Failed test_webapp_access_restriction_add_service_endpoint The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:258 Failed test_webapp_access_restriction_add_service_tag_validation The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:159 Failed test_webapp_access_restriction_mixed_remove The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:309 Failed test_webapp_access_restriction_remove The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:283 Failed test_webapp_access_restriction_remove_scm The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:390 Failed test_webapp_access_restriction_set_complex The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:84 Failed test_webapp_access_restriction_set_simple The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:53 Failed test_webapp_access_restriction_show The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:28 Failed test_webapp_access_restriction_slot The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_access_restriction_commands.py:416 Failed test_webapp_e2e The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:44 Failed test_webapp_runtimes The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:134 Failed test_create_in_different_group The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:239 Failed test_create_in_different_group_name The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:252 Failed test_linux_webapp_multicontainer_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:204 Failed test_linux_webapp_quick_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:184 Failed test_linux_webapp_quick_create_cd The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:221 Failed test_win_webapp_quick_create The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:141 Failed test_win_webapp_quick_create_cd The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:171 Failed test_win_webapp_quick_create_runtime The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:154 Failed test_backup_with_name The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:303 Failed test_config_backup_delete The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:366 Failed test_config_backup_restore The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:337 Failed test_webapp_backup_update The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:432 Failed test_download_win_web_log The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:472 Failed test_auto_delete_plan The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:557 Failed test_elastic_scale_plan The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:496 Failed test_retain_plan The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:545 Failed test_zone_redundant_plan The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:577 Failed test_webapp_elastic_scale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:601 Failed test_webapp_elastic_scale_min_elastic_instance_count The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:653 Failed test_webapp_elastic_scale_prewarmed_instance_count The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:626 Failed test_update_webapp_settings_thru_json The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:961 Failed test_webapp_config The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:680 Failed test_webapp_config_appsettings The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:931 Failed test_webapp_update_site_configs_persists_ip_restrictions The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:904 Failed test_webapp_scale The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1141 Failed test_linux_webapp The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1206 Failed test_linux_webapp_remote_ssh The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1310 Failed test_linux_webapp_multicontainer_slot The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1325 Failed test_acr_integration The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1370 Failed test_linux_slot_container_settings_override The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1392 Failed test_webapp_git The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1443 Failed test_webapp_slot The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1470 Failed test_webapp_slot_clone The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1555 Failed test_traffic_routing The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1593 Failed test_functionapp_cors The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1650 Failed test_webapp_cors The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1621 Failed test_webapp_slot_swap The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1673 Failed test_webapp_ssl The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1717 Failed test_webapp_ssl_specify_hostname The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1786 Failed test_webapp_deleted_restore_to_existing_site The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1922 Failed test_webapp_deleted_restore_to_non_existent_site The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1953 Failed test_webapp_deleted_restore_to_non_existent_site_fails_when_asp_argument_is_not_provided_or_does_not_exist The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:1986 Failed test_webapp_authentication The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2020 Failed test_webapp_update The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2073 Failed test_deploy_zip The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2137 Failed test_webapp_list_locations_free_sku The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2258 Failed test_webapp_list_locations_hyperv_workers_enabled The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2266 Failed test_container_webapp_docker_image_name The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2291 Failed test_container_webapp_long_server_url The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2277 Failed test_webapp_hyperv_acr_use_identity The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2407 Failed test_webapp_linux_acr_use_identity The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2449 Failed test_webapp_create_vnetE2E The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2577 Failed test_webapp_create_with_vnet_by_subnet_rid The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2604 Failed test_webapp_create_with_vnet_by_vnet_rid The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2630 Failed test_webapp_create_with_vnet_no_subnet The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2726 Failed test_webapp_create_with_vnet_no_vnet The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2691 Failed test_webapp_create_with_vnet_wrong_location The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2673 Failed test_webapp_create_with_vnet_wrong_rg The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2706 Failed test_webapp_create_with_vnet_wrong_sku The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2656 Failed test_webapp_hybridconnectionE2E The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2488 Failed test_webapp_vnetDelegation The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2743 Failed test_webapp_vnetE2E The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2534 Failed test_webapp_vnetRouteAll The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2854 Failed test_webapp_vnetSameName The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2775 Failed test_webapp_vnetSubnetId The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2825 Failed test_webapp_list_deployment_logs The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2903 Failed test_webapp_show_deployment_logs The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2881 Failed test_webapp_local_context The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2929 Failed test_one_deploy_scm The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2952 Failed test_webapp_sitecontainers_create_update_show_delete The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:2987 Failed test_webapp_sitecontainers_createfromspecs_and_list_containers The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3027 Failed test_webapp_deployment_source_disable_tracking_runtimestatus The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3122 Failed test_webapp_deployment_source_track_runtimestatus_buildfailed The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3155 Failed test_webapp_deployment_source_track_runtimestatus_runtimefailed The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3167 Failed test_webapp_deployment_source_track_runtimestatus_runtimesucessful The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3136 Failed test_webapp_track_runtimestatus_buildfailed The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3098 Failed test_webapp_track_runtimestatus_runtimefailed The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3110 Failed test_webapp_track_runtimestatus_runtimesucessful The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3079 Failed test_webapp_list_show_details The error message is too long, please check the pipeline log for details. azure/cli/command_modules/appservice/tests/latest/test_webapp_commands.py:3294 🔄3.9
🔄aro
🔄latest
️✔️3.12
🔄3.9
🔄backup
🔄latest
🔄3.12
🔄3.9
🔄batch
🔄latest
🔄3.12
🔄3.9
🔄batchai
🔄latest
️✔️3.12
🔄3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
🔄botservice
🔄latest
️✔️3.12
🔄3.9
🔄cdn
🔄latest
️✔️3.12
🔄3.9
🔄cloud
🔄latest
️✔️3.12
🔄3.9
🔄cognitiveservices
🔄latest
🔄3.12
🔄3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
🔄computefleet
🔄latest
️✔️3.12
🔄3.9
🔄config
🔄latest
️✔️3.12
🔄3.9
🔄configure
🔄latest
️✔️3.12
🔄3.9
🔄consumption
🔄latest
🔄3.12
🔄3.9
🔄container
🔄latest
🔄3.12
🔄3.9
❌containerapp
❌latest
❌3.12
Type Test Case Error Message Line Failed test_containerapp_get_customdomainverificationid_e2e The error message is too long, please check the pipeline log for details. azure/cli/command_modules/containerapp/tests/latest/test_containerapp_commands.py:2008 🔄3.9
🔄core
🔄latest
️✔️3.12
🔄3.9
🔄cosmosdb
🔄latest
🔄3.12
🔄3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
🔄dls
🔄latest
️✔️3.12
🔄3.9
🔄dms
🔄latest
🔄3.12
🔄3.9
🔄eventgrid
🔄latest
️✔️3.12
🔄3.9
🔄eventhubs
🔄latest
️✔️3.12
🔄3.9
🔄feedback
🔄latest
🔄3.12
🔄3.9
🔄find
🔄latest
️✔️3.12
🔄3.9
🔄hdinsight
🔄latest
🔄3.12
🔄3.9
🔄identity
🔄latest
🔄3.12
🔄3.9
🔄iot
🔄latest
️✔️3.12
🔄3.9
🔄keyvault
🔄latest
️✔️3.12
🔄3.9
🔄lab
🔄latest
️✔️3.12
🔄3.9
🔄managedservices
🔄latest
🔄3.12
🔄3.9
🔄maps
🔄latest
🔄3.12
🔄3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
❌monitor
❌latest
❌3.12
Type Test Case Error Message Line Failed test_metric_alert_v2_scenario self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fc741e4db20>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fc745686000>
command = 'appservice plan create -g cli_test_metric_alert_v2000001 -n plan1'
expect_failure = False
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:303:
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:3173: in create_app_service_plan
return sdk_no_wait(no_wait, client.app_service_plans.begin_create_or_update, name=name,
src/azure-cli-core/azure/cli/core/util.py:744: in sdk_no_wait
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1507: in begin_create_or_update
raw_result = self.create_or_update_initial(
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1393: in create_or_update_initial
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.12/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml object at 0x7fc73fb1d250>
= False, kwargs = {}
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/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?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
env/lib/python3.12/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.monitor.tests.latest.test_monitor_metric_alert_scenarios.MonitorTests testMethod=test_metric_alert_v2_scenario>
resource_group = 'cli_test_metric_alert_v2000001'
storage_account = 'clitest000002'
@ResourceGroupPreparer(name_prefix='cli_test_metric_alert_v2')
@StorageAccountPreparer()
def test_metric_alert_v2_scenario(self, resource_group, storage_account):
from azure.mgmt.core.tools import resource_id
self.kwargs.update({
'alert': 'alert1',
'sa': storage_account,
'plan': 'plan1',
'app': self.create_random_name('app', 15),
'ag1': 'ag1',
'ag2': 'ag2',
'webhooks': '{{test=banoodle}}',
'sub': self.get_subscription_id(),
'sa_id': resource_id(
resource_group=resource_group,
subscription=self.get_subscription_id(),
name=storage_account,
namespace='Microsoft.Storage',
type='storageAccounts')
})
self.cmd('monitor action-group create -g {rg} -n {ag1}')
self.cmd('monitor action-group create -g {rg} -n {ag2}')
self.cmd('monitor metrics alert create -g {rg} -n {alert} --scopes {sa_id} --action {ag1} --region westus --description "Test" --condition "total transactions > 5 where ResponseType includes Success and ApiName includes GetBlob" --condition "avg SuccessE2ELatency > 250 where ApiName includes GetBlob"', checks=[
self.check('description', 'Test'),
self.check('severity', 2),
self.check('autoMitigate', None),
self.check('windowSize', 'PT5M'),
self.check('evaluationFrequency', 'PT1M'),
self.check('length(criteria.allOf)', 2),
self.check('length(criteria.allOf[0].dimensions)', 2),
self.check('length(criteria.allOf[1].dimensions)', 1)
])
self.cmd('monitor metrics alert update -g {rg} -n {alert} --severity 3 --description "alt desc" --add-action "ag2 test=best" --remove-action ag1 --remove-conditions cond0 --evaluation-frequency 5m --window-size 15m --tags foo=boo --auto-mitigate', checks=[
self.check('description', 'alt desc'),
self.check('severity', 3),
self.check('autoMitigate', True),
self.check('windowSize', 'PT15M'),
self.check('evaluationFrequency', 'PT5M'),
self.check('length(criteria.allOf)', 1),
self.check('length(criteria.allOf[0].dimensions)', 1),
self.check("contains(actions[0].actionGroupId, 'actionGroups/ag2')", True),
self.check('length(actions)', 1)
])
self.cmd('monitor metrics alert update -g {rg} -n {alert} --enabled false', checks=[
self.check('enabled', False)
])
self.cmd('monitor metrics alert update -g {rg} -n {alert} --add-action ag2 test=best2', checks=[
self.check("contains(actions[0].actionGroupId, 'actionGroups/ag2')", True),
self.check('length(actions)', 1)
])
self.cmd('monitor metrics alert list -g {rg}',
checks=self.check('length(@)', 1))
self.cmd('monitor metrics alert show -g {rg} -n {alert}')
self.cmd('monitor metrics alert delete -g {rg} -n {alert}')
self.cmd('monitor metrics alert list -g {rg}',
checks=self.check('length(@)', 0))
self.cmd('monitor metrics alert create -g {rg} -n {alert} --scopes {sa_id} --region westus --action {ag1} --description "Test2" --condition "avg SuccessE2ELatency > 250 where ApiName includes GetBlob:"', checks=[
self.check('description', 'Test2'),
self.check('severity', 2),
self.check('length(criteria.allOf)', 1),
self.check('criteria.allOf[0].dimensions[0].values[0]', 'GetBlob:'),
])
# test appservice plan with dimensions *
> self.cmd('appservice plan create -g {rg} -n {plan}')
src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_metric_alert_scenarios.py:81:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fc741e4db20>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fc745686000>
command = 'appservice plan create -g cli_test_metric_alert_v2000001 -n plan1'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/monitor/tests/latest/test_monitor_metric_alert_scenarios.py:14 🔄3.9
🔄mysql
🔄latest
🔄3.12
🔄3.9
🔄netappfiles
🔄latest
🔄3.12
🔄3.9
❌network
❌latest
❌3.12
Type Test Case Error Message Line Failed test_private_endpoint_connection_webapp self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f7c9f905d60>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f7ca05bf4d0>
command = 'appservice plan create -g clitest.rg000001 -n webapp-privatelink-asp000003 --sku P1V2'
expect_failure = False
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:303:
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:3173: in create_app_service_plan
return sdk_no_wait(no_wait, client.app_service_plans.begin_create_or_update, name=name,
src/azure-cli-core/azure/cli/core/util.py:744: in sdk_no_wait
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1507: in begin_create_or_update
raw_result = self.create_or_update_initial(
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1393: in create_or_update_initial
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.12/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_webapp.yaml object at 0x7f7c9d389400>
= False, kwargs = {}
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/network/tests/latest/recordings/test_private_endpoint_connection_webapp.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000003?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000003?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
env/lib/python3.12/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkWebappScenarioTest testMethod=test_private_endpoint_connection_webapp>
resource_group = 'clitest.rg000001'
@ResourceGroupPreparer(location='westus')
def test_private_endpoint_connection_webapp(self, resource_group):
self.kwargs.update({
'resource_group': resource_group,
'webapp_name': self.create_random_name('webapp-privatelink-webapp', 40),
'plan_name': self.create_random_name('webapp-privatelink-asp', 40),
'vnet_name': self.create_random_name('webapp-privatelink-vnet', 40),
'subnet_name': self.create_random_name('webapp-privatelink-subnet', 40),
'endpoint_name': self.create_random_name('webapp-privatelink-endpoint', 40),
'endpoint_conn_name': self.create_random_name('webapp-privatelink-endpointconn', 40),
'second_endpoint_name': self.create_random_name('webapp-privatelink-endpoint2', 40),
'second_endpoint_conn_name': self.create_random_name('webapp-privatelink-endpointconn2', 40),
'description_msg': 'somedescription'
})
# Prepare network
self.cmd('network vnet create -n {vnet_name} -g {resource_group} --subnet-name {subnet_name}',
checks=self.check('length(newVNet.subnets)', 1))
self.cmd('network vnet subnet update -n {subnet_name} --vnet-name {vnet_name} -g {resource_group} '
'--disable-private-endpoint-network-policies true',
checks=self.check('privateEndpointNetworkPolicies', 'Disabled'))
# Create appService
> self.cmd('appservice plan create -g {resource_group} -n {plan_name} --sku P1V2')
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1136:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f7c9f905d60>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f7ca05bf4d0>
command = 'appservice plan create -g clitest.rg000001 -n webapp-privatelink-asp000003 --sku P1V2'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_endpoint_connection_webapp.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000003?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000003?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1112 Failed test_private_link_resource_webapp self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f7ca057a5d0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f7c9fe14860>
command = 'appservice plan create -g clitest.rg000001 -n webapp-privatelink-asp000002 --sku P1V2'
expect_failure = False
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:303:
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:3173: in create_app_service_plan
return sdk_no_wait(no_wait, client.app_service_plans.begin_create_or_update, name=name,
src/azure-cli-core/azure/cli/core/util.py:744: in sdk_no_wait
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1507: in begin_create_or_update
raw_result = self.create_or_update_initial(
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/app_service_plans_operations.py:1393: in create_or_update_initial
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.12/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_webapp.yaml object at 0x7f7c9e674110>
= False, kwargs = {}
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/network/tests/latest/recordings/test_private_link_resource_webapp.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000002?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000002?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
env/lib/python3.12/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.network.tests.latest.test_private_endpoint_commands.NetworkPrivateLinkWebappScenarioTest testMethod=test_private_link_resource_webapp>
resource_group = 'clitest.rg000001'
@ResourceGroupPreparer(location='westus')
def test_private_link_resource_webapp(self, resource_group):
self.kwargs.update({
'plan_name': self.create_random_name('webapp-privatelink-asp', 40),
'webapp_name': self.create_random_name('webapp-privatelink-webapp', 40),
'resource_group': resource_group
})
> self.cmd('appservice plan create -g {resource_group} -n {plan_name} --sku P1V2')
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1105:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f7ca057a5d0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f7c9fe14860>
command = 'appservice plan create -g clitest.rg000001 -n webapp-privatelink-asp000002 --sku P1V2'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/network/tests/latest/recordings/test_private_link_resource_webapp.yaml') in your current record mode ('once').
E No match for the request (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000002?api-version=2024-04-01>) was found.
E Found 1 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (PUT) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/webapp-privatelink-asp000002?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/network/tests/latest/test_private_endpoint_commands.py:1097 🔄3.9
🔄policyinsights
🔄latest
️✔️3.12
🔄3.9
🔄privatedns
🔄latest
🔄3.12
🔄3.9
🔄profile
🔄latest
️✔️3.12
🔄3.9
🔄rdbms
🔄latest
🔄3.12
🔄3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
🔄relay
🔄latest
🔄3.12
🔄3.9
🔄resource
🔄latest
️✔️3.12
🔄3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
🔄search
🔄latest
️✔️3.12
🔄3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
🔄servicebus
🔄latest
🔄3.12
🔄3.9
❌serviceconnector
❌latest
❌3.12
Type Test Case Error Message Line Failed test_webapp_storage_blob_null_auth self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f5cff085010>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f5d02e57290>
command = 'webapp identity show -g service-connector-int-test -n servicelinker-optouttest-e2e'
expect_failure = False
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:303:
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: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:362: in handler
show_exception_handler(ex)
src/azure-cli-core/azure/cli/core/commands/arm.py:432: in show_exception_handler
raise ex
src/azure-cli-core/azure/cli/core/commands/command_operation.py:360: in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/appservice/custom.py:1655: in show_identity
web_app = generic_site_operation(cmd.cli_ctx, resource_group_name, name, 'get', slot)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/azure-cli/azure/cli/command_modules/appservice/appservice_utils.py:20: in generic_site_operation
return (operation(resource_group_name, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/web/v2024_04_01/operations/web_apps_operations.py:17153: in get
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
env/lib/python3.12/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.12/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.yaml object at 0x7f5cfeea2630>
= False, kwargs = {}
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/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.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/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?api-version=2024-04-01>) was found.
E Found 3 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 3 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
env/lib/python3.12/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.serviceconnector.tests.latest.test_webpp_connection_scenario.WebAppConnectionScenarioTest testMethod=test_webapp_storage_blob_null_auth>
@record_only()
def test_webapp_storage_blob_null_auth(self):
self.kwargs.update({
'subscription': get_subscription_id(self.cli_ctx),
'source_resource_group': 'service-connector-int-test',
'target_resource_group': 'service-connector-int-test',
'site': 'servicelinker-optouttest-e2e',
'account': 'servicelinkerinttest'
})
# prepare params
name = 'testconn'
source_id = SOURCE_RESOURCES.get(RESOURCE.WebApp).format(**self.kwargs)
target_id = TARGET_RESOURCES.get(RESOURCE.StorageBlob).format(**self.kwargs)
# create connection
self.cmd('webapp connection create storage-blob --connection {} --source-id {} --target-id {} '
'--opt-out auth configinfo'.format(name, source_id, target_id))
# list connection
connections = self.cmd(
'webapp connection list --source-id {}'.format(source_id),
checks = [
self.check('length(@)', 1),
self.check('[0].authInfo', 'None'),
]
).get_output_in_json()
connection_id = connections[0].get('id')
# validate connection, auth should not be validated
self.cmd('webapp connection validate --id {}'.format(connection_id),
checks= [
self.check('length(@)', 2), # target existence, and network
])
# check system identity is not enabled
> validate_result = self.cmd('webapp identity show -g {} -n {}'.format(self.kwargs['source_resource_group'],
self.kwargs['site']),
).output
src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1899:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f5cff085010>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f5d02e57290>
command = 'webapp identity show -g service-connector-int-test -n servicelinker-optouttest-e2e'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.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/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?api-version=2024-04-01>) was found.
E Found 3 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 3 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1863 Failed test_webapp_storage_blob_system_identity_opt_out_auth The error message is too long, please check the pipeline log for details. azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1806 Failed test_webapp_storageblob_secret_opt_out_config The error message is too long, please check the pipeline log for details. azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1660 ❌3.9
Type Test Case Error Message Line Failed test_webapp_storage_blob_null_auth self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f9d153ec220>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f9d1d572610>
command = 'webapp identity show -g service-connector-int-test -n servicelinker-optouttest-e2e'
expect_failure = False
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:303:
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: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:362: in handler
show_exception_handler(ex)
src/azure-cli-core/azure/cli/core/commands/arm.py:432: in show_exception_handler
raise ex
src/azure-cli-core/azure/cli/core/commands/command_operation.py:360: in handler
return op(**command_args)
src/azure-cli/azure/cli/command_modules/appservice/custom.py:1655: in show_identity
web_app = generic_site_operation(cmd.cli_ctx, resource_group_name, name, 'get', slot)
src/azure-cli/azure/cli/command_modules/appservice/appservice_utils.py:20: in generic_site_operation
return (operation(resource_group_name, name)
env/lib/python3.9/site-packages/azure/core/tracing/decorator.py:119: in wrapper_use_tracer
return func(*args, **kwargs)
env/lib/python3.9/site-packages/azure/mgmt/web/v2024_04_01/operations/web_apps_operations.py:17153: in get
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:242: in run
return first_node.send(pipeline_request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/mgmt/core/policies/base.py:95: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/redirect.py:205: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/retry.py:545: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/authentication.py:159: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:98: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:130: in send
self.sender.send(request.http_request, **request.context.options),
env/lib/python3.9/site-packages/azure/core/pipeline/transport/requests_basic.py:365: 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:787: in urlopen
response = self.make_request(
env/lib/python3.9/site-packages/urllib3/connectionpool.py:534: in make_request
response = conn.getresponse()
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.yaml object at 0x7f9d15648b80>
= False, kwargs = {}
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/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.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/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?api-version=2024-04-01>) was found.
E Found 3 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 3 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
env/lib/python3.9/site-packages/vcr/stubs/init.py:264: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.serviceconnector.tests.latest.test_webpp_connection_scenario.WebAppConnectionScenarioTest testMethod=test_webapp_storage_blob_null_auth>
@record_only()
def test_webapp_storage_blob_null_auth(self):
self.kwargs.update({
'subscription': get_subscription_id(self.cli_ctx),
'source_resource_group': 'service-connector-int-test',
'target_resource_group': 'service-connector-int-test',
'site': 'servicelinker-optouttest-e2e',
'account': 'servicelinkerinttest'
})
# prepare params
name = 'testconn'
source_id = SOURCE_RESOURCES.get(RESOURCE.WebApp).format(**self.kwargs)
target_id = TARGET_RESOURCES.get(RESOURCE.StorageBlob).format(**self.kwargs)
# create connection
self.cmd('webapp connection create storage-blob --connection {} --source-id {} --target-id {} '
'--opt-out auth configinfo'.format(name, source_id, target_id))
# list connection
connections = self.cmd(
'webapp connection list --source-id {}'.format(source_id),
checks = [
self.check('length(@)', 1),
self.check('[0].authInfo', 'None'),
]
).get_output_in_json()
connection_id = connections[0].get('id')
# validate connection, auth should not be validated
self.cmd('webapp connection validate --id {}'.format(connection_id),
checks= [
self.check('length(@)', 2), # target existence, and network
])
# check system identity is not enabled
> validate_result = self.cmd('webapp identity show -g {} -n {}'.format(self.kwargs['source_resource_group'],
self.kwargs['site']),
).output
src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1899:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:177: 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:252: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7f9d153ec220>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7f9d1d572610>
command = 'webapp identity show -g service-connector-int-test -n servicelinker-optouttest-e2e'
expect_failure = False
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()
except CannotOverwriteExistingCassetteException as ex:
> raise AssertionError(ex)
E AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/serviceconnector/tests/latest/recordings/test_webapp_storage_blob_null_auth.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/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?api-version=2024-04-01>) was found.
E Found 3 similar requests with 1 different matcher(s) :
E
E 1 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 2 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
E
E 3 - (<Request (GET) https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/service-connector-int-test/providers/Microsoft.Web/sites/servicelinker-optouttest-e2e?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
src/azure-cli-testsdk/azure/cli/testsdk/base.py:308: AssertionErrorazure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1863 Failed test_webapp_storage_blob_system_identity_opt_out_auth The error message is too long, please check the pipeline log for details. azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1806 Failed test_webapp_storageblob_secret_opt_out_config The error message is too long, please check the pipeline log for details. azure/cli/command_modules/serviceconnector/tests/latest/test_webpp_connection_scenario.py:1660 🔄servicefabric
🔄latest
️✔️3.12
🔄3.9
🔄signalr
🔄latest
️✔️3.12
🔄3.9
🔄sql
🔄latest
️✔️3.12
🔄3.9
🔄sqlvm
🔄latest
️✔️3.12
🔄3.9
🔄storage
🔄latest
🔄3.12
🔄3.9
🔄synapse
🔄latest
️✔️3.12
🔄3.9
🔄telemetry
🔄latest
🔄3.12
🔄3.9
🔄util
🔄latest
️✔️3.12
🔄3.9
🔄vm
🔄latest
🔄3.12
🔄3.9
Hi @khkh-ms, Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.
⚠️AzureCLI-BreakingChangeTest
⚠️appservice
rule cmd_name rule_message suggest_message ⚠️ 1006 - ParaAdd functionapp create cmd functionapp createadded parameterauto_generated_domain_name_label_scope
Thank you for your contribution! We will review the pull request and get back to you soon.
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:
pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
Could you please resolve these conflicts?
@khkh-ms please note that Azure CLI will have a code freeze on 05/27/2025 07:00 UTC for the upcoming release. Please address these comments ASAP, otherwise it has to be postponed to next sprint (07-01).
@khkh-ms Any update?
please note that Azure CLI will have a code freeze on 06/24/2025 07:00 UTC for the upcoming release. Please address this conflict ASAP, otherwise it has to be postponed to next sprint (08-05).
@khkh-ms Could you please resolve these CI issues and conflicts?
Please note that Azure CLI will freeze the code on 07/29/2025 07:00 UTC for the upcoming release. If you want to catch this release train, please resolve these comments ASAP, otherwise this PR has to be postponed to next sprint.
please note that the code completion date for the upcoming release is 08/26/2025 at 07:00 UTC. If you want to catch this release train, please address the comments ASAP, otherwise it has to be postponed to next sprint (10/14).