From 0e277748bafa1c8ba19e87d7153c5882e3d8abe0 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Mon, 20 Jul 2026 06:12:54 +0000 Subject: [PATCH 1/6] Configurations: 'specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine/tspconfig.yaml', API Version: 2023-10-01, SDK Release Type: stable, and CommitSHA: 'cf49df24bee763924bb4d9abceebe4fd1916a6ad' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6585898 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-mgmt-sqlvirtualmachine/CHANGELOG.md | 4 + .../_metadata.json | 6 +- sdk/sql/azure-mgmt-sqlvirtualmachine/api.md | 45 -------- .../api.metadata.yml | 2 +- .../apiview-properties.json | 2 +- .../sqlvirtualmachine/_utils/model_base.py | 19 +-- .../azure/mgmt/sqlvirtualmachine/_version.py | 2 +- .../azure/mgmt/sqlvirtualmachine/types.py | 108 ------------------ .../pyproject.toml | 4 +- .../tsp-location.yaml | 2 +- 10 files changed, 23 insertions(+), 171 deletions(-) diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md index 5f0ea0ede5e0..4094208c1e6d 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 0.6.0 (2026-07-20) + +change log generation failed!!! You need to write it manually!!! + ## 1.0.0b7 (2026-07-07) ### Features Added diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json b/sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json index 4da5a8935df1..02f6a78aa8f6 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/_metadata.json @@ -3,9 +3,9 @@ "apiVersions": { "Microsoft.SqlVirtualMachine": "2023-10-01" }, - "commit": "a7bdbe741c0ef1f1b159d8569b173757bd823ae9", + "commit": "cf49df24bee763924bb4d9abceebe4fd1916a6ad", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine", - "emitterVersion": "0.63.2", - "httpClientPythonVersion": "^0.34.0" + "emitterVersion": "0.63.3", + "httpClientPythonVersion": "^0.34.2" } \ No newline at end of file diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/api.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/api.md index b5268ab01ba6..960f60bbc3c9 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/api.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/api.md @@ -2026,30 +2026,6 @@ namespace azure.mgmt.sqlvirtualmachine.types run_disk_config_rules: bool - class azure.mgmt.sqlvirtualmachine.types.ErrorAdditionalInfo(TypedDict, total=False): - key "info": Any - key "type": str - info: Any - type: str - - - class azure.mgmt.sqlvirtualmachine.types.ErrorDetail(TypedDict, total=False): - key "code": str - key "message": str - key "target": str - additionalInfo: list[ErrorAdditionalInfo] - additional_info: list[ErrorAdditionalInfo] - code: str - details: list[ErrorDetail] - message: str - target: str - - - class azure.mgmt.sqlvirtualmachine.types.ErrorResponse(TypedDict, total=False): - key "error": ForwardRef('ErrorDetail', module='types') - error: ErrorDetail - - class azure.mgmt.sqlvirtualmachine.types.KeyVaultCredentialSettings(TypedDict, total=False): key "azureKeyVaultUrl": str key "credentialName": str @@ -2083,27 +2059,6 @@ namespace azure.mgmt.sqlvirtualmachine.types sql_virtual_machine_instance: str - class azure.mgmt.sqlvirtualmachine.types.Operation(TypedDict, total=False): - key "display": ForwardRef('OperationDisplay', module='types') - key "name": str - key "origin": Union[str, OperationOrigin] - display: OperationDisplay - name: str - origin: Union[str, OperationOrigin] - properties: dict[str, Any] - - - class azure.mgmt.sqlvirtualmachine.types.OperationDisplay(TypedDict, total=False): - key "description": str - key "operation": str - key "provider": str - key "resource": str - description: str - operation: str - provider: str - resource: str - - class azure.mgmt.sqlvirtualmachine.types.PrivateIPAddress(TypedDict, total=False): key "ipAddress": str key "subnetResourceId": str diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/api.metadata.yml b/sdk/sql/azure-mgmt-sqlvirtualmachine/api.metadata.yml index f4303db47e2f..1c12a33a0daf 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/api.metadata.yml +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/api.metadata.yml @@ -1,3 +1,3 @@ -apiMdSha256: 4bc0c7ae08b300bf1b7f48fa671c54907cf6ad7409dd5834022dcc4b30684e25 +apiMdSha256: 1ef6f3166f23f1774ef20543671d8801c80347869077d96a6a417f2743740cfd parserVersion: 0.3.28 pythonVersion: 3.13.14 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/apiview-properties.json b/sdk/sql/azure-mgmt-sqlvirtualmachine/apiview-properties.json index 9cc89ac28593..14ef47160907 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/apiview-properties.json +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/apiview-properties.json @@ -122,5 +122,5 @@ "azure.mgmt.sqlvirtualmachine.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot", "azure.mgmt.sqlvirtualmachine.aio.operations.SqlVirtualMachineTroubleshootOperations.begin_troubleshoot": "Microsoft.SqlVirtualMachine.SqlVirtualMachines.troubleshoot" }, - "CrossLanguageVersion": "1b8fa6253c13" + "CrossLanguageVersion": "eeff62122fe4" } \ No newline at end of file diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_utils/model_base.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_utils/model_base.py index b93f5120d517..0f2c5bdfe70f 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_utils/model_base.py +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_utils/model_base.py @@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool: def keys(self) -> typing.KeysView[str]: """ - :returns: a set-like object providing a view on D's keys + :returns: a set-like object providing a view on the mapping's keys :rtype: ~typing.KeysView """ return self._data.keys() def values(self) -> typing.ValuesView[typing.Any]: """ - :returns: an object providing a view on D's values + :returns: an object providing a view on the mapping's values :rtype: ~typing.ValuesView """ return self._data.values() def items(self) -> typing.ItemsView[str, typing.Any]: """ - :returns: set-like object providing a view on D's items + :returns: a set-like object providing a view on the mapping's items :rtype: ~typing.ItemsView """ return self._data.items() @@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any: Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ try: @@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]: Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple - :raises KeyError: if D is empty. + :raises KeyError: if the dictionary is empty. """ return self._data.popitem() def clear(self) -> None: """ - Remove all items from D. + Remove all items from the dictionary. """ self._data.clear() def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ """ - Updates D from mapping/iterable E and F. + Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. """ self._data.update(*args, **kwargs) @@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any: """ - Same as calling D.get(k, d), and setting D[k]=d if k not found + Return the value for key if key is in the dictionary; otherwise set the key to + default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary - :returns: D[k] if k in D, else d. + :returns: The value for key if key is in the dictionary, else default. :rtype: any """ if default is _UNSET: diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py index 84058978c521..05792b6158a5 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b7" +VERSION = "0.6.0" diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/types.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/types.py index fbebab49e2fc..60f5b1394e04 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/types.py +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/types.py @@ -29,7 +29,6 @@ FullBackupFrequencyType, IdentityType, LeastPrivilegeMode, - OperationOrigin, OsType, ReadableSecondary, Role, @@ -348,59 +347,6 @@ class DiskConfigAssessmentRequest(TypedDict, total=False): """Boolean to run disk config Assessment. Use false to fetch past Assessment.""" -class ErrorAdditionalInfo(TypedDict, total=False): - """The resource management error additional info. - - :ivar type: The additional info type. - :vartype type: str - :ivar info: The additional info. - :vartype info: Any - """ - - type: str - """The additional info type.""" - info: Any - """The additional info.""" - - -class ErrorDetail(TypedDict, total=False): - """The error detail. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The error target. - :vartype target: str - :ivar details: The error details. - :vartype details: list["ErrorDetail"] - :ivar additional_info: The error additional info. - :vartype additional_info: list["ErrorAdditionalInfo"] - """ - - code: str - """The error code.""" - message: str - """The error message.""" - target: str - """The error target.""" - details: list["ErrorDetail"] - """The error details.""" - additionalInfo: list["ErrorAdditionalInfo"] - """The error additional info.""" - - -class ErrorResponse(TypedDict, total=False): - """Error response. - - :ivar error: The error object. - :vartype error: "ErrorDetail" - """ - - error: "ErrorDetail" - """The error object.""" - - class KeyVaultCredentialSettings(TypedDict, total=False): """Configure your SQL virtual machine to be able to connect to the Azure Key Vault service. @@ -474,60 +420,6 @@ class MultiSubnetIpConfiguration(TypedDict, total=False): listener. Required.""" -class Operation(TypedDict, total=False): - """Result of the request to list SQL operations. - - :ivar name: The name of the operation being performed on this particular object.". - :vartype name: str - :ivar display: he localized display information for this particular operation / action. - :vartype display: "OperationDisplay" - :ivar origin: The intended executor of the operation.". Known values are: "user" and "system". - :vartype origin: Union[str, "OperationOrigin"] - :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, Any] - """ - - name: str - """The name of the operation being performed on this particular object.\".""" - display: "OperationDisplay" - """he localized display information for this particular operation / action.""" - origin: Union[str, "OperationOrigin"] - """The intended executor of the operation.\". Known values are: \"user\" and \"system\".""" - properties: dict[str, Any] - """Additional descriptions for the operation.""" - - -class OperationDisplay(TypedDict, total=False): - """Display metadata associated with the operation. - - :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft - Monitoring Insights" or "Microsoft Compute". - :vartype provider: str - :ivar resource: The localized friendly name of the resource type related to this operation. - E.g. "Virtual Machines" or "Job Schedule Collections". - :vartype resource: str - :ivar operation: The concise, localized friendly name for the operation; suitable for - dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - :vartype operation: str - :ivar description: The short, localized friendly description of the operation; suitable for - tool tips and detailed views. - :vartype description: str - """ - - provider: str - """The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring - Insights\" or \"Microsoft Compute\".""" - resource: str - """The localized friendly name of the resource type related to this operation. E.g. \"Virtual - Machines\" or \"Job Schedule Collections\".""" - operation: str - """The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create - or Update Virtual Machine\", \"Restart Virtual Machine\".""" - description: str - """The short, localized friendly description of the operation; suitable for tool tips and detailed - views.""" - - class PrivateIPAddress(TypedDict, total=False): """A private IP address bound to the availability group listener. diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml b/sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml index ba17c12bb879..aa0ab0401ab8 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Sqlvirtualmachine Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -79,7 +79,7 @@ package_name = "azure-mgmt-sqlvirtualmachine" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Sql Virtual Machine Management" package_doc_id = "" -is_stable = false +is_stable = true is_arm = true title = "SqlVirtualMachineManagementClient" need_msrestazure = false diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tsp-location.yaml b/sdk/sql/azure-mgmt-sqlvirtualmachine/tsp-location.yaml index cd9506f8f537..63eb853b2a69 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/tsp-location.yaml +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/SqlVirtualMachine -commit: a7bdbe741c0ef1f1b159d8569b173757bd823ae9 +commit: cf49df24bee763924bb4d9abceebe4fd1916a6ad repo: Azure/azure-rest-api-specs additionalDirectories: From 15e898734ef0092f3de703ccc33568ddb9fe895f Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:19:23 +0800 Subject: [PATCH 2/6] Update CHANGELOG.md --- sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md index 4094208c1e6d..8b5bb0882235 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md @@ -1,8 +1,10 @@ # Release History -## 0.6.0 (2026-07-20) +## 1.0.0 (2026-07-20) -change log generation failed!!! You need to write it manually!!! +### Other Changes + + - First GA ## 1.0.0b7 (2026-07-07) From 7b504c40cbe2aa47396c8505429771482d1c1497 Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:19:42 +0800 Subject: [PATCH 3/6] Update _version.py --- .../azure/mgmt/sqlvirtualmachine/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py index 05792b6158a5..0ec13ea52bbf 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.6.0" +VERSION = "1.0.0" From 531d638362c4ab94d027f08394a8bbbdb2ea63a5 Mon Sep 17 00:00:00 2001 From: "Chenxi Jiang (WICRESOFT NORTH AMERICA LTD)" Date: Mon, 20 Jul 2026 14:19:45 +0800 Subject: [PATCH 4/6] Optimize changelog and set version to 1.0.0 for azure-mgmt-sqlvirtualmachine Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md index 8b5bb0882235..0db28195097c 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md @@ -4,7 +4,8 @@ ### Other Changes - - First GA + - Deleted unused TypedDict aliases `ErrorAdditionalInfo`/`ErrorDetail`/`ErrorResponse`/`Operation`/`OperationDisplay` from `azure.mgmt.sqlvirtualmachine.types` + - First stable release of the Azure SQL Virtual Machine Management client library. ## 1.0.0b7 (2026-07-07) From fcbe4d91609c377191b08e8f5daca49df4cadadd Mon Sep 17 00:00:00 2001 From: "Chenxi Jiang (WICRESOFT NORTH AMERICA LTD)" Date: Mon, 20 Jul 2026 14:25:00 +0800 Subject: [PATCH 5/6] Add live tests for azure-mgmt-sqlvirtualmachine --- .../dev_requirements.txt | 1 + .../tests/conftest.py | 47 +++++++++++++++++++ ...achine_management_operations_async_test.py | 27 +++++++++++ ...tual_machine_management_operations_test.py | 26 ++++++++++ ...al_machine_groups_operations_async_test.py | 27 +++++++++++ ..._virtual_machine_groups_operations_test.py | 26 ++++++++++ ..._virtual_machines_operations_async_test.py | 27 +++++++++++ ...nt_sql_virtual_machines_operations_test.py | 26 ++++++++++ 8 files changed, 207 insertions(+) create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/conftest.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_async_test.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_test.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_async_test.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_test.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_async_test.py create mode 100644 sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_test.py diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/dev_requirements.txt b/sdk/sql/azure-mgmt-sqlvirtualmachine/dev_requirements.txt index a4eaf63f2d63..0ba5a8e23a88 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/dev_requirements.txt +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/dev_requirements.txt @@ -1,2 +1,3 @@ -e ../../../eng/tools/azure-sdk-tools aiohttp +azure-identity diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/conftest.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/conftest.py new file mode 100644 index 000000000000..6178d9a74c5e --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/conftest.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import os +import pytest +from dotenv import load_dotenv +from devtools_testutils import ( + test_proxy, + add_general_regex_sanitizer, + add_body_key_sanitizer, + add_header_regex_sanitizer, +) + +load_dotenv() + + +# For security, please avoid record sensitive identity information in recordings +@pytest.fixture(scope="session", autouse=True) +def add_sanitizers(test_proxy): + sqlvirtualmachinemanagement_subscription_id = os.environ.get( + "AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000" + ) + sqlvirtualmachinemanagement_tenant_id = os.environ.get("AZURE_TENANT_ID", "00000000-0000-0000-0000-000000000000") + sqlvirtualmachinemanagement_client_id = os.environ.get("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + sqlvirtualmachinemanagement_client_secret = os.environ.get( + "AZURE_CLIENT_SECRET", "00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=sqlvirtualmachinemanagement_subscription_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=sqlvirtualmachinemanagement_tenant_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=sqlvirtualmachinemanagement_client_id, value="00000000-0000-0000-0000-000000000000" + ) + add_general_regex_sanitizer( + regex=sqlvirtualmachinemanagement_client_secret, value="00000000-0000-0000-0000-000000000000" + ) + + add_header_regex_sanitizer(key="Set-Cookie", value="[set-cookie;]") + add_header_regex_sanitizer(key="Cookie", value="cookie;") + add_body_key_sanitizer(json_path="$..access_token", value="access_token") diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_async_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_async_test.py new file mode 100644 index 000000000000..98663c6c5965 --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_async_test.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine.aio import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_test.py new file mode 100644 index 000000000000..2e19a4703c51 --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_operations_test.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_operations_list(self, resource_group): + response = self.client.operations.list() + result = [r for r in response] + assert len(result) >= 0 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_async_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_async_test.py new file mode 100644 index 000000000000..6fd5ba26cbd1 --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_async_test.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine.aio import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementSqlVirtualMachineGroupsOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_sql_virtual_machine_groups_list(self, resource_group): + response = self.client.sql_virtual_machine_groups.list() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_test.py new file mode 100644 index 000000000000..e51adbef537b --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machine_groups_operations_test.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementSqlVirtualMachineGroupsOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_sql_virtual_machine_groups_list(self, resource_group): + response = self.client.sql_virtual_machine_groups.list() + result = [r for r in response] + assert len(result) >= 0 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_async_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_async_test.py new file mode 100644 index 000000000000..1de75fc1c818 --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_async_test.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine.aio import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer +from devtools_testutils.aio import recorded_by_proxy_async + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementSqlVirtualMachinesOperationsAsync(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient, is_async=True) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy_async + async def test_sql_virtual_machines_list(self, resource_group): + response = self.client.sql_virtual_machines.list() + result = [r async for r in response] + assert len(result) >= 0 diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_test.py b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_test.py new file mode 100644 index 000000000000..2dc92a1e66a3 --- /dev/null +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/tests/test_sql_virtual_machine_management_sql_virtual_machines_operations_test.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import pytest +from azure.mgmt.sqlvirtualmachine import SqlVirtualMachineManagementClient + +from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy + +AZURE_LOCATION = "eastus" + + +@pytest.mark.live_test_only +class TestSqlVirtualMachineManagementSqlVirtualMachinesOperations(AzureMgmtRecordedTestCase): + def setup_method(self, method): + self.client = self.create_mgmt_client(SqlVirtualMachineManagementClient) + + @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) + @recorded_by_proxy + def test_sql_virtual_machines_list(self, resource_group): + response = self.client.sql_virtual_machines.list() + result = [r for r in response] + assert len(result) >= 0 From ed593c6ceb7e1240a052ff9555170f84bec86cfb Mon Sep 17 00:00:00 2001 From: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Date: Mon, 20 Jul 2026 14:27:17 +0800 Subject: [PATCH 6/6] Update CHANGELOG.md --- sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md index 0db28195097c..8b5bb0882235 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md @@ -4,8 +4,7 @@ ### Other Changes - - Deleted unused TypedDict aliases `ErrorAdditionalInfo`/`ErrorDetail`/`ErrorResponse`/`Operation`/`OperationDisplay` from `azure.mgmt.sqlvirtualmachine.types` - - First stable release of the Azure SQL Virtual Machine Management client library. + - First GA ## 1.0.0b7 (2026-07-07)