azure-cli
azure-cli copied to clipboard
{Service Connector} `az functionapp connection`: Update passwordless extension integration
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE: az command a
: Make some customer-facing breaking change
[Component Name 2] az command b
: Add some customer-facing feature
This checklist is used to make sure that common guidelines for a pull request are followed.
-
[ ] The PR title and description has followed the guideline in Submitting Pull Requests.
-
[ ] I adhere to the Command Guidelines.
-
[ ] I adhere to the Error Handling Guidelines.
❌AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.11
️✔️3.9
️✔️ams
️✔️latest
️✔️3.11
️✔️3.9
️✔️apim
️✔️latest
️✔️3.11
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.11
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️aro
️✔️latest
️✔️3.11
️✔️3.9
️✔️backup
️✔️latest
️✔️3.11
️✔️3.9
️✔️batch
️✔️latest
️✔️3.11
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.11
️✔️3.9
️✔️billing
️✔️latest
️✔️3.11
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.11
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.11
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️config
️✔️latest
️✔️3.11
️✔️3.9
️✔️configure
️✔️latest
️✔️3.11
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.11
️✔️3.9
️✔️container
️✔️latest
️✔️3.11
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.11
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.11
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️dla
️✔️latest
️✔️3.11
️✔️3.9
️✔️dls
️✔️latest
️✔️3.11
️✔️3.9
️✔️dms
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.11
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.11
️✔️3.9
️✔️find
️✔️latest
️✔️3.11
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.11
️✔️3.9
️✔️identity
️✔️latest
️✔️3.11
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.11
️✔️3.9
️✔️lab
️✔️latest
️✔️3.11
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️maps
️✔️latest
️✔️3.11
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.11
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.11
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.11
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.11
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.11
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.11
️✔️3.9
️✔️profile
️✔️latest
️✔️3.11
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.11
️✔️3.9
️✔️redis
️✔️latest
️✔️3.11
️✔️3.9
️✔️relay
️✔️latest
️✔️3.11
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️role
️✔️latest
️✔️3.11
️✔️3.9
️✔️search
️✔️latest
️✔️3.11
️✔️3.9
️✔️security
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.11
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.11
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.11
️✔️3.9
❌sql
❌latest
❌3.11
Type Test Case Error Message Line Failed test_sql_mi_refresh_external_governance_status self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fe586c464d0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fe586c3ecd0>
command = 'sql mi create -g CustomerExperienceTeam_RG -n clitestmi000001 -l westcentralus -u admin123 -p SecretPassword123Secret...rage 32 --edition GeneralPurpose --family Gen5 --tags --proxy-override Proxy --bsr Geo --public-data-endpoint-enabled'
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:301:
env/lib/python3.11/site-packages/knack/cli.py:245: in invoke
exit_code = self.exception_handler(ex)
src/azure-cli-core/azure/cli/core/init.py:127: 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.11/site-packages/knack/cli.py:233: in invoke
cmd_result = self.invocation.execute(args)
src/azure-cli-core/azure/cli/core/commands/init.py:663: in execute
raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:726: in run_jobs_serially
results.append(self.run_job(expanded_arg, cmd_copy))
src/azure-cli-core/azure/cli/core/commands/init.py:697: in run_job
result = cmd_copy(params)
src/azure-cli-core/azure/cli/core/commands/init.py:333: in call
return self.handler(*args, **kwargs)
src/azure-cli-core/azure/cli/core/commands/command_operation.py:121: in handler
return op(**command_args)
src/azure-cli/azure/cli/command_modules/sql/custom.py:5000: in managed_instance_create
return client.begin_create_or_update(
env/lib/python3.11/site-packages/azure/core/tracing/decorator.py:76: in wrapper_use_tracer
return func(*args, **kwargs)
env/lib/python3.11/site-packages/azure/mgmt/sql/operations/managed_instances_operations.py:989: in begin_create_or_update
raw_result = self.create_or_update_initial(
env/lib/python3.11/site-packages/azure/mgmt/sql/operations/managed_instances_operations.py:847: in create_or_update_initial
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:213: in run
return first_node.send(pipeline_request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/mgmt/core/policies/base.py:47: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/policies/redirect.py:181: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/policies/retry.py:467: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/policies/authentication.py:115: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.11/site-packages/azure/core/pipeline/base.py:108: in send
self.sender.send(request.http_request, **request.context.options),
env/lib/python3.11/site-packages/azure/core/pipeline/transport/requests_basic.py:338: in send
response = self.session.request( # type: ignore
env/lib/python3.11/site-packages/requests/sessions.py:589: in request
resp = self.send(prep, **send_kwargs)
env/lib/python3.11/site-packages/requests/sessions.py:703: in send
r = adapter.send(request, **kwargs)
env/lib/python3.11/site-packages/requests/adapters.py:486: in send
resp = conn.urlopen(
env/lib/python3.11/site-packages/urllib3/connectionpool.py:715: in urlopen
httplib_response = self.make_request(
env/lib/python3.11/site-packages/urllib3/connectionpool.py:458: in make_request
httplib_response = conn.getresponse(buffering=True)
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.yaml object at 0x7fe5869e6250>
= False, kwargs = {'buffering': True}
def getresponse(self, =False, **kwargs):
"""Retrieve the response"""
# Check to see if the cassette has a response for this request. If so,
# then return it
if self.cassette.can_play_response_for(self.vcr_request):
log.info(f"Playing response for {self.vcr_request} from cassette")
response = self.cassette.play_response(self.vcr_request)
return VCRHTTPResponse(response)
else:
if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request):
> raise CannotOverwriteExistingCassetteException(
cassette=self.cassette,
failed_request=self.vcr_request,
)
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2023-05-01-preview>) 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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2022-08-01-preview>).
E Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path']
E Matchers failed :
E custom_request_query_matcher - assertion failure :
E None
env/lib/python3.11/site-packages/vcr/stubs/init.py:263: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.sql.tests.latest.test_sql_commands.ManagedInstancePreparer object at 0x7fe58c8c1650>
name = 'clitestmi000001', kwargs = {}, location = 'westcentralus'
subnet = '/subscriptions/8313371e-0879-428e-b1da-6353575a9192/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance'
v_core = 4
template = 'az sql mi create -g {} -n {} -l {} -u {} -p {} --subnet {} --license-type {} --collation {} --capacity {} --storage {} --edition {} --family {} --tags {} --proxy-override {} --bsr Geo --public-data-endpoint-enabled'
def create_resource(self, name, **kwargs):
location = self.location
subnet = self.subnet
v_core = self.v_core
template = 'az sql mi create -g {} -n {} -l {} -u {} -p {} --subnet {} --license-type {}' <br> ' --collation {} --capacity {} --storage {} --edition {} --family {} --tags {}' <br> ' --proxy-override {} --bsr Geo'
if self.public:
template += ' --public-data-endpoint-enabled'
if self.minimalTlsVersion:
template += f" --minimal-tls-version {self.minimalTlsVersion}"
if self.identityType == ResourceIdType.system_assigned_user_assigned.value or self.identityType == ResourceIdType.user_assigned.value:
template += f" --assign-identity --user-assigned-identity-id {self.userAssignedIdentityId} --identity-type {self.identityType} --pid {self.pid}"
if self.identityType == ResourceIdType.system_assigned.value:
template += f" --assign-identity"
if self.otherParams:
template += f" {self.otherParams}"
if self.is_geo_secondary:
location = self.sec_location
subnet = self.sec_subnet
v_core = 4
> execute(DummyCli(), template.format(
self.group, name, location,
self.admin_user, self.admin_password,
subnet, self.licence, self.collation,
v_core, self.storage, self.edition,
self.family, self.tags, self.proxy))
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py:160:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fe586c464d0>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fe586c3ecd0>
command = 'sql mi create -g CustomerExperienceTeam_RG -n clitestmi000001 -l westcentralus -u admin123 -p SecretPassword123Secret...rage 32 --edition GeneralPurpose --family Gen5 --tags --proxy-override Proxy --bsr Geo --public-data-endpoint-enabled'
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/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2023-05-01-preview>) 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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2022-08-01-preview>).
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:306: AssertionErrorazure/cli/command_modules/sql/tests/latest/test_sql_commands.py:7475 ❌3.9
Type Test Case Error Message Line Failed test_sql_mi_refresh_external_governance_status self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fc4a87c7760>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fc4a87b27f0>
command = 'sql mi create -g CustomerExperienceTeam_RG -n clitestmi000001 -l westcentralus -u admin123 -p SecretPassword123Secret...rage 32 --edition GeneralPurpose --family Gen5 --tags --proxy-override Proxy --bsr Geo --public-data-endpoint-enabled'
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:301:
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:127: 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:663: in execute
raise ex
src/azure-cli-core/azure/cli/core/commands/init.py:726: in run_jobs_serially
results.append(self.run_job(expanded_arg, cmd_copy))
src/azure-cli-core/azure/cli/core/commands/init.py:697: in run_job
result = cmd_copy(params)
src/azure-cli-core/azure/cli/core/commands/init.py:333: in call
return self.handler(*args, **kwargs)
src/azure-cli-core/azure/cli/core/commands/command_operation.py:121: in handler
return op(**command_args)
src/azure-cli/azure/cli/command_modules/sql/custom.py:5000: in managed_instance_create
return client.begin_create_or_update(
env/lib/python3.9/site-packages/azure/core/tracing/decorator.py:76: in wrapper_use_tracer
return func(*args, **kwargs)
env/lib/python3.9/site-packages/azure/mgmt/sql/operations/managed_instances_operations.py:989: in begin_create_or_update
raw_result = self.create_or_update_initial(
env/lib/python3.9/site-packages/azure/mgmt/sql/operations/managed_instances_operations.py:847: in create_or_update_initial
pipeline_response: PipelineResponse = self.client.pipeline.run( # pylint: disable=protected-access
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:213: in run
return first_node.send(pipeline_request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/mgmt/core/policies/base.py:47: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/redirect.py:181: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/retry.py:467: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/policies/authentication.py:115: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:70: in send
response = self.next.send(request)
env/lib/python3.9/site-packages/azure/core/pipeline/base.py:108: in send
self.sender.send(request.http_request, **request.context.options),
env/lib/python3.9/site-packages/azure/core/pipeline/transport/requests_basic.py:338: 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:486: in send
resp = conn.urlopen(
env/lib/python3.9/site-packages/urllib3/connectionpool.py:715: in urlopen
httplib_response = self.make_request(
env/lib/python3.9/site-packages/urllib3/connectionpool.py:458: in make_request
httplib_response = conn.getresponse(buffering=True)
self = <vcr.patch.VCRRequestsHTTPSConnection/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.yaml object at 0x7fc4a8566850>
= False, kwargs = {'buffering': True}
def getresponse(self, =False, **kwargs):
"""Retrieve the response"""
# Check to see if the cassette has a response for this request. If so,
# then return it
if self.cassette.can_play_response_for(self.vcr_request):
log.info(f"Playing response for {self.vcr_request} from cassette")
response = self.cassette.play_response(self.vcr_request)
return VCRHTTPResponse(response)
else:
if self.cassette.write_protected and self.cassette.filter_request(self.vcr_request):
> raise CannotOverwriteExistingCassetteException(
cassette=self.cassette,
failed_request=self.vcr_request,
)
E vcr.errors.CannotOverwriteExistingCassetteException: Can't overwrite existing cassette ('/mnt/vss/work/1/s/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2023-05-01-preview>) 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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2022-08-01-preview>).
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:263: CannotOverwriteExistingCassetteException
During handling of the above exception, another exception occurred:
self = <azure.cli.command_modules.sql.tests.latest.test_sql_commands.ManagedInstancePreparer object at 0x7fc4aa5d39d0>
name = 'clitestmi000001', kwargs = {}, location = 'westcentralus'
subnet = '/subscriptions/8313371e-0879-428e-b1da-6353575a9192/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance'
v_core = 4
template = 'az sql mi create -g {} -n {} -l {} -u {} -p {} --subnet {} --license-type {} --collation {} --capacity {} --storage {} --edition {} --family {} --tags {} --proxy-override {} --bsr Geo --public-data-endpoint-enabled'
def create_resource(self, name, **kwargs):
location = self.location
subnet = self.subnet
v_core = self.v_core
template = 'az sql mi create -g {} -n {} -l {} -u {} -p {} --subnet {} --license-type {}' <br> ' --collation {} --capacity {} --storage {} --edition {} --family {} --tags {}' <br> ' --proxy-override {} --bsr Geo'
if self.public:
template += ' --public-data-endpoint-enabled'
if self.minimalTlsVersion:
template += f" --minimal-tls-version {self.minimalTlsVersion}"
if self.identityType == ResourceIdType.system_assigned_user_assigned.value or self.identityType == ResourceIdType.user_assigned.value:
template += f" --assign-identity --user-assigned-identity-id {self.userAssignedIdentityId} --identity-type {self.identityType} --pid {self.pid}"
if self.identityType == ResourceIdType.system_assigned.value:
template += f" --assign-identity"
if self.otherParams:
template += f" {self.otherParams}"
if self.is_geo_secondary:
location = self.sec_location
subnet = self.sec_subnet
v_core = 4
> execute(DummyCli(), template.format(
self.group, name, location,
self.admin_user, self.admin_password,
subnet, self.licence, self.collation,
v_core, self.storage, self.edition,
self.family, self.tags, self.proxy))
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py:160:
src/azure-cli-testsdk/azure/cli/testsdk/base.py:250: in init
self.in_process_execute(cli_ctx, command, expect_failure=expect_failure)
self = <azure.cli.testsdk.base.ExecutionResult object at 0x7fc4a87c7760>
cli_ctx = <azure.cli.core.mock.DummyCli object at 0x7fc4a87b27f0>
command = 'sql mi create -g CustomerExperienceTeam_RG -n clitestmi000001 -l westcentralus -u admin123 -p SecretPassword123Secret...rage 32 --edition GeneralPurpose --family Gen5 --tags --proxy-override Proxy --bsr Geo --public-data-endpoint-enabled'
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/sql/tests/latest/recordings/test_sql_mi_refresh_external_governance_status.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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2023-05-01-preview>) 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/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2022-08-01-preview>).
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:306: AssertionErrorazure/cli/command_modules/sql/tests/latest/test_sql_commands.py:7475 ️✔️sqlvm
️✔️latest
️✔️3.11
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.11
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️util
️✔️latest
️✔️3.11
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
Hi @xfz11, Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.
️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes
Service Connector
Please fix CI issues