From 8940607bf7b4df118055321ad3062f5619073142 Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Wed, 30 Mar 2022 17:52:39 +0200 Subject: [PATCH 01/11] Kerberos win auth initial commit --- .../azure/cli/command_modules/sql/_help.py | 4 + .../azure/cli/command_modules/sql/_params.py | 13 + .../azure/cli/command_modules/sql/custom.py | 25 +- .../test_sql_managed_instance_mgmt.yaml | 782 +++++++++++------- .../sql/tests/latest/test_sql_commands.py | 9 + 5 files changed, 518 insertions(+), 315 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/_help.py b/src/azure-cli/azure/cli/command_modules/sql/_help.py index 3173acfdcb3..694d036f31b 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/_help.py +++ b/src/azure-cli/azure/cli/command_modules/sql/_help.py @@ -779,6 +779,8 @@ text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --license-type LicenseIncluded --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} --capacity 8 --storage 32GB --edition GeneralPurpose --family Gen5 --backup-storage-redundancy Local - name: Create a managed instance with maintenance configuration text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} -m SQL_{Region}_{MaintenanceConfigName} + - name: Create a managed instance with Service Principal enabled + text: az sql mi create -g mygroup -n myinstance -l mylocation -i -u myusername -p mypassword --subnet /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VNETName}/subnets/{SubnetName} --service-principal-type SystemAssigned - name: Create a managed instance without SQL Admin, with AAD admin and AD Only enabled text: az sql mi create --enable-ad-only-auth --external-admin-principal-type User --external-admin-name myUserName --external-admin-sid c5e964e2-6bb2-2222-1111-3b16ec0e1234 -g myResourceGroup -n miName --subnet /subscriptions/78975f9f-2222-1111-1111-29c42ac70000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet-test/subnets/ManagedInstance - name: Create a managed instance without SQL Admin, with AD admin, AD Only enabled, User ManagedIdenties and Identity Type is SystemAssigned,UserAssigned. @@ -888,6 +890,8 @@ text: az sql mi update -g mygroup -n myinstance -m SQL_{Region}_{MaintenanceConfigName} - name: Remove maintenance configuration from managed instance text: az sql mi update -g mygroup -n myinstance -m SQL_Default + - name: Update a managed instance with Service Principal + text: az sql mi update -g mygroup -n myinstance --service-principal-type SystemAssigned - name: Update a managed instance with User Managed Identies and Identity Type is SystemAssigned,UserAssigned. text: az sql mi update -g myResourceGroup -n myServer -i \\ --user-assigned-identity-id /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testumi \\ diff --git a/src/azure-cli/azure/cli/command_modules/sql/_params.py b/src/azure-cli/azure/cli/command_modules/sql/_params.py index d6be0605ae0..9946da9d08c 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/_params.py +++ b/src/azure-cli/azure/cli/command_modules/sql/_params.py @@ -57,6 +57,7 @@ ElasticPoolCapabilitiesAdditionalDetails, FailoverPolicyType, ResourceIdType, + ServicePrincipalType, SqlServerMinimalTlsVersionType, SqlManagedInstanceMinimalTlsVersionType, AuthenticationType @@ -1944,6 +1945,12 @@ def _configure_security_policy_storage_params(arg_ctx): options_list=['--external-admin-principal-type'], help='User, Group or Application') + c.argument('service_principal_type', + options_list=['--service-principal-type'], + arg_type=get_enum_type(ServicePrincipalType), + required=False, + help='Service Principal type to be used for this Managed Instance. Possible values are SystemAssigned and None') + with self.argument_context('sql mi update') as c: # Create args that will be used to build up the ManagedInstance object create_args_for_complex_type( @@ -1992,6 +1999,12 @@ def _configure_security_policy_storage_params(arg_ctx): help='Name or ID of the subnet that allows access to an Azure Sql Managed Instance. ' 'If subnet name is provided, --vnet-name must be provided.') + c.argument('service_principal_type', + options_list=['--service-principal-type'], + arg_type=get_enum_type(ServicePrincipalType), + required=False, + help='Service Principal type to be used for this Managed Instance. Possible values are SystemAssigned and None') + with self.argument_context('sql mi show') as c: c.argument('expand_ad_admin', options_list=['--expand-ad-admin'], diff --git a/src/azure-cli/azure/cli/command_modules/sql/custom.py b/src/azure-cli/azure/cli/command_modules/sql/custom.py index 76f67c4fd97..6c45b6011be 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/custom.py +++ b/src/azure-cli/azure/cli/command_modules/sql/custom.py @@ -61,6 +61,7 @@ ServerNetworkAccessFlag, ServiceObjectiveName, ServerTrustGroup, + ServicePrincipal, ShortTermRetentionPolicyName, Sku, StorageKeyType, @@ -421,6 +422,16 @@ def _get_tenant_id(): sub = profile.get_subscription() return sub['tenantId'] +def _get_service_principal_object_from_type(servicePrincipalType): + ''' + Gets the service principal object from type. + ''' + servicePrincipalResult = None + + if servicePrincipalType is not None and (servicePrincipalType == ServicePrincipalType.system_assigned.value or servicePrincipalType == ServicePrincipalType.none.value): + servicePrincipalResult = ServicePrincipal(type=servicePrincipalType) + + return servicePrincipalResult def _get_identity_object_from_type( assignIdentityIsPresent, @@ -603,6 +614,12 @@ class ResourceIdType(Enum): system_assigned_user_assigned = 'SystemAssigned,UserAssigned' none = 'None' +class ServicePrincipalType(Enum): + ''' + Types of service principal. + ''' + system_assigned = 'SystemAssigned' + none = 'None' class SqlManagedInstanceMinimalTlsVersionType(Enum): no_tls = "None" @@ -4248,6 +4265,7 @@ def managed_instance_create( external_admin_principal_type=None, external_admin_sid=None, external_admin_name=None, + service_principal_type=None, **kwargs): ''' Creates a managed instance. @@ -4258,6 +4276,7 @@ def managed_instance_create( else: kwargs['identity'] = _get_identity_object_from_type(False, identity_type, user_assigned_identity_id, None) + kwargs['service_principal'] = _get_service_principal_object_from_type(service_principal_type) kwargs['location'] = location kwargs['sku'] = _find_managed_instance_sku_from_capabilities(cmd.cli_ctx, kwargs['location'], sku) kwargs['subnet_id'] = virtual_network_subnet_id @@ -4364,7 +4383,8 @@ def managed_instance_update( identity_type=None, user_assigned_identity_id=None, virtual_network_subnet_id=None, - yes=None): + yes=None, + service_principal_type=None): ''' Updates a managed instance. Custom update function to apply parameters to instance. ''' @@ -4376,6 +4396,9 @@ def managed_instance_update( user_assigned_identity_id, instance.identity) + # Assigning Service Principal to instance + instance.service_principal = _get_service_principal_object_from_type(service_principal_type) + # Apply params to instance instance.administrator_login_password = ( administrator_login_password or instance.administrator_login_password) diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml index d03118c3f49..624615b8492 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml @@ -15,7 +15,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -33,7 +33,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:31:44 GMT + - Wed, 30 Mar 2022 12:38:09 GMT expires: - '-1' pragma: @@ -78,7 +78,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -92,7 +92,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:31:53 GMT + - Wed, 30 Mar 2022 12:38:18 GMT expires: - '-1' pragma: @@ -124,7 +124,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -138,7 +138,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:32:54 GMT + - Wed, 30 Mar 2022 12:39:17 GMT expires: - '-1' pragma: @@ -172,7 +172,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -186,7 +186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:33:24 GMT + - Wed, 30 Mar 2022 12:39:48 GMT expires: - '-1' pragma: @@ -220,7 +220,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -234,7 +234,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:33:54 GMT + - Wed, 30 Mar 2022 12:40:18 GMT expires: - '-1' pragma: @@ -268,7 +268,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -282,7 +282,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:34:24 GMT + - Wed, 30 Mar 2022 12:40:48 GMT expires: - '-1' pragma: @@ -316,55 +316,7 @@ interactions: --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version --bsr User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview - response: - body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Creating","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Creating","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' - headers: - cache-control: - - no-cache - content-length: - - '1278' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 15 Mar 2022 15:34:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l -u -p --subnet --license-type --collation --capacity --storage --edition - --family --tags --proxy-override --bsr --public-data-endpoint-enabled --minimal-tls-version - --bsr - User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -378,7 +330,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:35:25 GMT + - Wed, 30 Mar 2022 12:41:18 GMT expires: - '-1' pragma: @@ -410,7 +362,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -424,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:35:26 GMT + - Wed, 30 Mar 2022 12:41:20 GMT expires: - '-1' pragma: @@ -456,7 +408,7 @@ interactions: ParameterSetName: - --ids User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -470,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:35:27 GMT + - Wed, 30 Mar 2022 12:41:20 GMT expires: - '-1' pragma: @@ -502,7 +454,7 @@ interactions: ParameterSetName: - -g -n --admin-password -i User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -516,7 +468,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:37:28 GMT + - Wed, 30 Mar 2022 12:43:22 GMT expires: - '-1' pragma: @@ -548,7 +500,7 @@ interactions: ParameterSetName: - -g -n --admin-password -i User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -566,7 +518,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:37:28 GMT + - Wed, 30 Mar 2022 12:43:22 GMT expires: - '-1' pragma: @@ -609,7 +561,7 @@ interactions: ParameterSetName: - -g -n --admin-password -i User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -617,7 +569,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/6a6aa6d9-ac4c-4575-94df-a5441e88b601?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/794154d9-0c1f-4448-88e4-1f21c4bd5def?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -625,7 +577,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:37:35 GMT + - Wed, 30 Mar 2022 12:43:28 GMT expires: - '-1' pragma: @@ -659,12 +611,12 @@ interactions: ParameterSetName: - -g -n --admin-password -i User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/6a6aa6d9-ac4c-4575-94df-a5441e88b601?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/794154d9-0c1f-4448-88e4-1f21c4bd5def?api-version=2021-05-01-preview response: body: - string: '{"name":"6a6aa6d9-ac4c-4575-94df-a5441e88b601","status":"Succeeded","startTime":"2022-03-15T15:37:33.193Z"}' + string: '{"name":"794154d9-0c1f-4448-88e4-1f21c4bd5def","status":"Succeeded","startTime":"2022-03-30T12:43:26.767Z"}' headers: cache-control: - no-cache @@ -673,7 +625,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:38:36 GMT + - Wed, 30 Mar 2022 12:44:29 GMT expires: - '-1' pragma: @@ -705,12 +657,12 @@ interactions: ParameterSetName: - -g -n --admin-password -i User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -719,7 +671,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:38:36 GMT + - Wed, 30 Mar 2022 12:44:30 GMT expires: - '-1' pragma: @@ -751,12 +703,12 @@ interactions: ParameterSetName: - --ids --admin-password User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -765,7 +717,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:38:37 GMT + - Wed, 30 Mar 2022 12:44:31 GMT expires: - '-1' pragma: @@ -797,7 +749,7 @@ interactions: ParameterSetName: - --ids --admin-password User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -815,7 +767,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:38:38 GMT + - Wed, 30 Mar 2022 12:44:31 GMT expires: - '-1' pragma: @@ -858,7 +810,7 @@ interactions: ParameterSetName: - --ids --admin-password User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -866,7 +818,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/79cb08d9-11d1-4744-8ce1-537519199ace?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/1eec1881-41d0-4fea-923e-1f153dc0bf57?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -874,7 +826,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:38:43 GMT + - Wed, 30 Mar 2022 12:44:38 GMT expires: - '-1' pragma: @@ -908,21 +860,21 @@ interactions: ParameterSetName: - --ids --admin-password User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/79cb08d9-11d1-4744-8ce1-537519199ace?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/1eec1881-41d0-4fea-923e-1f153dc0bf57?api-version=2021-05-01-preview response: body: - string: '{"name":"79cb08d9-11d1-4744-8ce1-537519199ace","status":"Succeeded","startTime":"2022-03-15T15:38:42.06Z"}' + string: '{"name":"1eec1881-41d0-4fea-923e-1f153dc0bf57","status":"Succeeded","startTime":"2022-03-30T12:44:36.5Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '105' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:39:44 GMT + - Wed, 30 Mar 2022 12:45:38 GMT expires: - '-1' pragma: @@ -954,12 +906,12 @@ interactions: ParameterSetName: - --ids --admin-password User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -968,7 +920,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:39:44 GMT + - Wed, 30 Mar 2022 12:45:38 GMT expires: - '-1' pragma: @@ -1000,12 +952,12 @@ interactions: ParameterSetName: - -g -n --minimal-tls-version User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1014,7 +966,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:39:46 GMT + - Wed, 30 Mar 2022 12:45:40 GMT expires: - '-1' pragma: @@ -1046,7 +998,7 @@ interactions: ParameterSetName: - -g -n --minimal-tls-version User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -1064,7 +1016,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:39:46 GMT + - Wed, 30 Mar 2022 12:45:40 GMT expires: - '-1' pragma: @@ -1106,7 +1058,7 @@ interactions: ParameterSetName: - -g -n --minimal-tls-version User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -1114,7 +1066,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/49d59556-f644-4965-b82c-b7f29c82fc11?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/d485ee4b-f165-41da-b789-5c90ca2dfc64?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -1122,7 +1074,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:39:53 GMT + - Wed, 30 Mar 2022 12:45:47 GMT expires: - '-1' pragma: @@ -1156,12 +1108,12 @@ interactions: ParameterSetName: - -g -n --minimal-tls-version User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/49d59556-f644-4965-b82c-b7f29c82fc11?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/d485ee4b-f165-41da-b789-5c90ca2dfc64?api-version=2021-05-01-preview response: body: - string: '{"name":"49d59556-f644-4965-b82c-b7f29c82fc11","status":"Succeeded","startTime":"2022-03-15T15:39:51.733Z"}' + string: '{"name":"d485ee4b-f165-41da-b789-5c90ca2dfc64","status":"Succeeded","startTime":"2022-03-30T12:45:45.013Z"}' headers: cache-control: - no-cache @@ -1170,7 +1122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:40:54 GMT + - Wed, 30 Mar 2022 12:46:47 GMT expires: - '-1' pragma: @@ -1202,12 +1154,12 @@ interactions: ParameterSetName: - -g -n --minimal-tls-version User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1216,7 +1168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:40:54 GMT + - Wed, 30 Mar 2022 12:46:48 GMT expires: - '-1' pragma: @@ -1248,12 +1200,12 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1262,7 +1214,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:40:55 GMT + - Wed, 30 Mar 2022 12:46:49 GMT expires: - '-1' pragma: @@ -1294,7 +1246,7 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -1312,7 +1264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:40:56 GMT + - Wed, 30 Mar 2022 12:46:49 GMT expires: - '-1' pragma: @@ -1355,7 +1307,7 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -1363,7 +1315,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/20e2f1af-92da-4572-b972-d48ce315a0d5?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/0939eba6-5bf4-4c88-ba79-6e821a610d7f?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -1371,7 +1323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:41:02 GMT + - Wed, 30 Mar 2022 12:46:56 GMT expires: - '-1' pragma: @@ -1387,7 +1339,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1405,12 +1357,12 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/20e2f1af-92da-4572-b972-d48ce315a0d5?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/0939eba6-5bf4-4c88-ba79-6e821a610d7f?api-version=2021-05-01-preview response: body: - string: '{"name":"20e2f1af-92da-4572-b972-d48ce315a0d5","status":"Succeeded","startTime":"2022-03-15T15:41:01.157Z"}' + string: '{"name":"0939eba6-5bf4-4c88-ba79-6e821a610d7f","status":"Succeeded","startTime":"2022-03-30T12:46:54.773Z"}' headers: cache-control: - no-cache @@ -1419,7 +1371,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:42:03 GMT + - Wed, 30 Mar 2022 12:47:57 GMT expires: - '-1' pragma: @@ -1451,12 +1403,12 @@ interactions: ParameterSetName: - -g -n --set User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1465,7 +1417,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:42:03 GMT + - Wed, 30 Mar 2022 12:47:57 GMT expires: - '-1' pragma: @@ -1497,12 +1449,12 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1","tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1511,7 +1463,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:42:04 GMT + - Wed, 30 Mar 2022 12:47:58 GMT expires: - '-1' pragma: @@ -1543,7 +1495,7 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -1561,7 +1513,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:42:05 GMT + - Wed, 30 Mar 2022 12:47:59 GMT expires: - '-1' pragma: @@ -1603,7 +1555,7 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -1611,7 +1563,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/312900e4-0622-447d-8f6e-f52b764fd2d9?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/6002e781-127c-4465-9f28-779efb8be11b?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -1619,7 +1571,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:42:12 GMT + - Wed, 30 Mar 2022 12:48:05 GMT expires: - '-1' pragma: @@ -1653,21 +1605,21 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/312900e4-0622-447d-8f6e-f52b764fd2d9?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/6002e781-127c-4465-9f28-779efb8be11b?api-version=2021-05-01-preview response: body: - string: '{"name":"312900e4-0622-447d-8f6e-f52b764fd2d9","status":"Succeeded","startTime":"2022-03-15T15:42:10.7Z"}' + string: '{"name":"6002e781-127c-4465-9f28-779efb8be11b","status":"Succeeded","startTime":"2022-03-30T12:48:03.533Z"}' headers: cache-control: - no-cache content-length: - - '105' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:43:12 GMT + - Wed, 30 Mar 2022 12:49:06 GMT expires: - '-1' pragma: @@ -1699,12 +1651,12 @@ interactions: ParameterSetName: - -g -n --remove User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1713,7 +1665,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:43:13 GMT + - Wed, 30 Mar 2022 12:49:07 GMT expires: - '-1' pragma: @@ -1745,12 +1697,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName2":"tagValue2","tagName3":"tagValue3"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1759,7 +1711,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:43:13 GMT + - Wed, 30 Mar 2022 12:49:07 GMT expires: - '-1' pragma: @@ -1791,7 +1743,7 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -1809,7 +1761,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:43:15 GMT + - Wed, 30 Mar 2022 12:49:08 GMT expires: - '-1' pragma: @@ -1851,7 +1803,7 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -1859,7 +1811,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b491ea66-894b-45a8-8c1f-6dcfce1c9d1e?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/51510ac9-b4d2-4b52-b324-208cd61b4974?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -1867,7 +1819,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:43:19 GMT + - Wed, 30 Mar 2022 12:49:13 GMT expires: - '-1' pragma: @@ -1883,7 +1835,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1901,21 +1853,21 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b491ea66-894b-45a8-8c1f-6dcfce1c9d1e?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/51510ac9-b4d2-4b52-b324-208cd61b4974?api-version=2021-05-01-preview response: body: - string: '{"name":"b491ea66-894b-45a8-8c1f-6dcfce1c9d1e","status":"Succeeded","startTime":"2022-03-15T15:43:17.78Z"}' + string: '{"name":"51510ac9-b4d2-4b52-b324-208cd61b4974","status":"Succeeded","startTime":"2022-03-30T12:49:12.523Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:44:19 GMT + - Wed, 30 Mar 2022 12:50:14 GMT expires: - '-1' pragma: @@ -1947,12 +1899,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -1961,7 +1913,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:44:20 GMT + - Wed, 30 Mar 2022 12:50:14 GMT expires: - '-1' pragma: @@ -1993,12 +1945,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{"tagName1":"tagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -2007,7 +1959,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:44:21 GMT + - Wed, 30 Mar 2022 12:50:16 GMT expires: - '-1' pragma: @@ -2039,7 +1991,7 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -2057,7 +2009,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:44:21 GMT + - Wed, 30 Mar 2022 12:50:16 GMT expires: - '-1' pragma: @@ -2099,7 +2051,7 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -2107,7 +2059,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/78e2680f-909a-4c93-b3cf-bad12a675cb8?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b8a87b27-c92c-4229-a759-d224c6ed6fde?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -2115,7 +2067,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:44:28 GMT + - Wed, 30 Mar 2022 12:50:23 GMT expires: - '-1' pragma: @@ -2149,12 +2101,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/78e2680f-909a-4c93-b3cf-bad12a675cb8?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b8a87b27-c92c-4229-a759-d224c6ed6fde?api-version=2021-05-01-preview response: body: - string: '{"name":"78e2680f-909a-4c93-b3cf-bad12a675cb8","status":"Succeeded","startTime":"2022-03-15T15:44:25.187Z"}' + string: '{"name":"b8a87b27-c92c-4229-a759-d224c6ed6fde","status":"Succeeded","startTime":"2022-03-30T12:50:21.297Z"}' headers: cache-control: - no-cache @@ -2163,7 +2115,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:45:29 GMT + - Wed, 30 Mar 2022 12:51:22 GMT expires: - '-1' pragma: @@ -2195,12 +2147,12 @@ interactions: ParameterSetName: - -g -n --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -2209,7 +2161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:45:30 GMT + - Wed, 30 Mar 2022 12:51:23 GMT expires: - '-1' pragma: @@ -2241,12 +2193,12 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -2255,7 +2207,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:45:30 GMT + - Wed, 30 Mar 2022 12:51:24 GMT expires: - '-1' pragma: @@ -2287,7 +2239,7 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -2305,7 +2257,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:45:30 GMT + - Wed, 30 Mar 2022 12:51:25 GMT expires: - '-1' pragma: @@ -2347,7 +2299,7 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -2355,7 +2307,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -2363,7 +2315,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:45:37 GMT + - Wed, 30 Mar 2022 12:51:31 GMT expires: - '-1' pragma: @@ -2397,21 +2349,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:46:37 GMT + - Wed, 30 Mar 2022 12:52:31 GMT expires: - '-1' pragma: @@ -2443,21 +2395,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:47:38 GMT + - Wed, 30 Mar 2022 12:53:32 GMT expires: - '-1' pragma: @@ -2489,21 +2441,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:48:39 GMT + - Wed, 30 Mar 2022 12:54:33 GMT expires: - '-1' pragma: @@ -2535,21 +2487,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:49:38 GMT + - Wed, 30 Mar 2022 12:55:33 GMT expires: - '-1' pragma: @@ -2581,21 +2533,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:50:39 GMT + - Wed, 30 Mar 2022 12:56:34 GMT expires: - '-1' pragma: @@ -2627,21 +2579,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:51:39 GMT + - Wed, 30 Mar 2022 12:57:35 GMT expires: - '-1' pragma: @@ -2673,21 +2625,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:52:40 GMT + - Wed, 30 Mar 2022 12:58:35 GMT expires: - '-1' pragma: @@ -2719,21 +2671,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:53:41 GMT + - Wed, 30 Mar 2022 12:59:35 GMT expires: - '-1' pragma: @@ -2765,21 +2717,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:54:42 GMT + - Wed, 30 Mar 2022 13:00:36 GMT expires: - '-1' pragma: @@ -2811,21 +2763,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"InProgress","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"InProgress","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:55:43 GMT + - Wed, 30 Mar 2022 13:01:36 GMT expires: - '-1' pragma: @@ -2857,21 +2809,21 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/995ef01a-bef2-4049-a371-c06fd3feb093?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/b4329b2b-3efa-434c-bd7f-10d1cced86c5?api-version=2021-05-01-preview response: body: - string: '{"name":"995ef01a-bef2-4049-a371-c06fd3feb093","status":"Succeeded","startTime":"2022-03-15T15:45:35.27Z"}' + string: '{"name":"b4329b2b-3efa-434c-bd7f-10d1cced86c5","status":"Succeeded","startTime":"2022-03-30T12:51:29.353Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:56:43 GMT + - Wed, 30 Mar 2022 13:02:36 GMT expires: - '-1' pragma: @@ -2903,12 +2855,12 @@ interactions: ParameterSetName: - -g -n --subnet --capacity User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance2","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance2","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -2917,7 +2869,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:56:44 GMT + - Wed, 30 Mar 2022 13:02:38 GMT expires: - '-1' pragma: @@ -2949,12 +2901,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance2","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance2","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache @@ -2963,7 +2915,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:56:44 GMT + - Wed, 30 Mar 2022 13:02:38 GMT expires: - '-1' pragma: @@ -2995,7 +2947,7 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: @@ -3013,7 +2965,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:56:45 GMT + - Wed, 30 Mar 2022 13:02:39 GMT expires: - '-1' pragma: @@ -3055,7 +3007,7 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: @@ -3063,7 +3015,7 @@ interactions: string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -3071,7 +3023,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:56:50 GMT + - Wed, 30 Mar 2022 13:02:44 GMT expires: - '-1' pragma: @@ -3087,7 +3039,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -3105,12 +3057,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3119,7 +3071,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:57:50 GMT + - Wed, 30 Mar 2022 13:03:45 GMT expires: - '-1' pragma: @@ -3151,12 +3103,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3165,7 +3117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:58:51 GMT + - Wed, 30 Mar 2022 13:04:45 GMT expires: - '-1' pragma: @@ -3197,12 +3149,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3211,7 +3163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 15:59:51 GMT + - Wed, 30 Mar 2022 13:05:47 GMT expires: - '-1' pragma: @@ -3243,12 +3195,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3257,7 +3209,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:00:52 GMT + - Wed, 30 Mar 2022 13:06:47 GMT expires: - '-1' pragma: @@ -3289,12 +3241,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3303,7 +3255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:01:52 GMT + - Wed, 30 Mar 2022 13:07:49 GMT expires: - '-1' pragma: @@ -3335,12 +3287,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3349,7 +3301,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:02:52 GMT + - Wed, 30 Mar 2022 13:08:49 GMT expires: - '-1' pragma: @@ -3381,12 +3333,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3395,7 +3347,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:03:53 GMT + - Wed, 30 Mar 2022 13:09:50 GMT expires: - '-1' pragma: @@ -3427,12 +3379,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3441,7 +3393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:04:54 GMT + - Wed, 30 Mar 2022 13:10:50 GMT expires: - '-1' pragma: @@ -3473,12 +3425,12 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"InProgress","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache @@ -3487,7 +3439,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:05:54 GMT + - Wed, 30 Mar 2022 13:11:51 GMT expires: - '-1' pragma: @@ -3519,21 +3471,21 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1?api-version=2021-05-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"InProgress","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"a1b864f7-3eb9-4cfc-b8dc-ed00e56df5d1","status":"Succeeded","startTime":"2022-03-30T13:02:43.993Z"}' headers: cache-control: - no-cache content-length: - - '108' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:06:55 GMT + - Wed, 30 Mar 2022 13:12:52 GMT expires: - '-1' pragma: @@ -3565,12 +3517,214 @@ interactions: ParameterSetName: - -g -n --subnet --vnet-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview + response: + body: + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Mar 2022 13:12:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service-principal-type + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview + response: + body: + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Mar 2022 13:12:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service-principal-type + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/77426e88-bab4-4bb5-b752-8c53f49bbb76?api-version=2021-05-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/locations/westcentralus/capabilities?include=supportedManagedInstanceVersions&api-version=2020-11-01-preview response: body: - string: '{"name":"77426e88-bab4-4bb5-b752-8c53f49bbb76","status":"Succeeded","startTime":"2022-03-15T15:56:48.033Z"}' + string: '{"name":"West Central US","supportedManagedInstanceVersions":[{"name":"12.0","supportedEditions":[{"name":"GeneralPurpose","supportedFamilies":[{"name":"Gen5","sku":"GP_Gen5","supportedLicenseTypes":[{"name":"LicenseIncluded","status":"Default"},{"name":"BasePrice","status":"Available"}],"supportedVcoresValues":[{"name":"2","value":2,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":640,"unit":"Gigabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":false,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"4","value":4,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":2,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"8","value":8,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":8,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Default"},{"name":"16","value":16,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"24","value":24,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"32","value":32,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"40","value":40,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"64","value":64,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"80","value":80,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":16,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"}],"status":"Default"}],"supportedStorageCapabilities":[{"storageAccountType":"GRS","status":"Default"},{"storageAccountType":"LRS","status":"Available"},{"storageAccountType":"ZRS","status":"Visible","reason":"ZRS + is available in multi-az regions"},{"storageAccountType":"GZRS","status":"Visible","reason":"GZRS + is available in multi-az regions"}],"zoneRedundant":false,"status":"Default"},{"name":"BusinessCritical","supportedFamilies":[{"name":"Gen5","sku":"BC_Gen5","supportedLicenseTypes":[{"name":"LicenseIncluded","status":"Default"},{"name":"BasePrice","status":"Available"}],"supportedVcoresValues":[{"name":"4","value":4,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":1,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"8","value":8,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":1,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Default"},{"name":"16","value":16,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":1,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"24","value":24,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":2,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"32","value":32,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":4,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"40","value":40,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":4,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"64","value":64,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":4,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"},{"name":"80","value":80,"includedMaxSize":{"limit":262144,"unit":"Megabytes"},"supportedStorageSizes":[{"minValue":{"limit":32,"unit":"Gigabytes"},"maxValue":{"limit":4,"unit":"Terabytes"},"scaleSize":{"limit":32,"unit":"Gigabytes"},"status":"Available"}],"instancePoolSupported":true,"standaloneSupported":true,"supportedMaintenanceConfigurations":[{"name":"SQL_Default","status":"Default"},{"name":"SQL_WestCentralUS_MI_1","status":"Available"},{"name":"SQL_WestCentralUS_MI_2","status":"Available"}],"status":"Available"}],"status":"Default"}],"supportedStorageCapabilities":[{"storageAccountType":"GRS","status":"Default"},{"storageAccountType":"LRS","status":"Available"},{"storageAccountType":"ZRS","status":"Visible","reason":"ZRS + is available in multi-az regions"},{"storageAccountType":"GZRS","status":"Visible","reason":"GZRS + is available in multi-az regions"}],"zoneRedundant":false,"status":"Available"}],"supportedInstancePoolEditions":[{"name":"GeneralPurpose","supportedFamilies":[{"name":"Gen5","supportedLicenseTypes":[{"name":"LicenseIncluded","status":"Default"},{"name":"BasePrice","status":"Available"}],"supportedVcoresValues":[{"name":"GP_Gen5_8","value":8,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Default"},{"name":"GP_Gen5_16","value":16,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"},{"name":"GP_Gen5_24","value":24,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"},{"name":"GP_Gen5_32","value":32,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"},{"name":"GP_Gen5_40","value":40,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"},{"name":"GP_Gen5_64","value":64,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"},{"name":"GP_Gen5_80","value":80,"storageLimit":{"limit":8388608,"unit":"Megabytes"},"status":"Available"}],"status":"Default"}],"status":"Default"}],"status":"Default"}],"status":"Available"}' + headers: + cache-control: + - no-cache + content-length: + - '11289' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Mar 2022 13:12:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "tags": {}, "identity": {"type": "SystemAssigned"}, + "sku": {"name": "GP_Gen5"}, "properties": {"administratorLogin": "admin123", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance", + "licenseType": "LicenseIncluded", "vCores": 4, "storageSizeInGB": 32, "collation": + "Serbian_Cyrillic_100_CS_AS", "publicDataEndpointEnabled": true, "proxyOverride": + "Proxy", "timezoneId": "UTC", "minimalTlsVersion": "1.1", "requestedBackupStorageRedundancy": + "Local", "zoneRedundant": false, "servicePrincipal": {"type": "SystemAssigned"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi update + Connection: + - keep-alive + Content-Length: + - '691' + Content-Type: + - application/json + ParameterSetName: + - -g -n --service-principal-type + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview + response: + body: + string: '{"identity":{"principalId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","tenantId":"00000000-0000-0000-0000-000000000000"},"sku":{"name":"GP_Gen5","capacity":4},"properties":{"provisioningState":"Updating","administratorLogin":"admin123","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Local","zoneRedundant":false,"servicePrincipal":{"type":"SystemAssigned"}},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/cd037082-758d-419f-acc3-a31d0ce1c149?api-version=2021-05-01-preview + cache-control: + - no-cache + content-length: + - '904' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 30 Mar 2022 13:13:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi update + Connection: + - keep-alive + ParameterSetName: + - -g -n --service-principal-type + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/cd037082-758d-419f-acc3-a31d0ce1c149?api-version=2021-05-01-preview + response: + body: + string: '{"name":"cd037082-758d-419f-acc3-a31d0ce1c149","status":"Succeeded","startTime":"2022-03-30T13:12:59.547Z"}' headers: cache-control: - no-cache @@ -3579,7 +3733,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:07:55 GMT + - Wed, 30 Mar 2022 13:14:03 GMT expires: - '-1' pragma: @@ -3609,23 +3763,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --subnet --vnet-name + - -g -n --service-principal-type User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' + string: '{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false,"servicePrincipal":{"principalId":"234ba427-e667-4ce7-8462-dc8eadea156c","clientId":"06066342-9da4-4f67-800b-058b5100d0f1","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache content-length: - - '1371' + - '1569' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:07:56 GMT + - Wed, 30 Mar 2022 13:14:04 GMT expires: - '-1' pragma: @@ -3655,22 +3809,22 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/managedInstances?api-version=2021-05-01-preview response: body: - string: '{"value":[{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"autobot-instance-pool-instance-0.9c25c6191d05.database.windows.net","administratorLogin":"cloudsa","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Network/virtualNetworks/vnet-autobot-instance-pool/subnets/InstancePool","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":64,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"9c25c6191d05","publicDataEndpointEnabled":false,"timezoneId":"UTC","instancePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Sql/instancePools/autobot-instance-pool","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"canadacentral","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Sql/managedInstances/autobot-instance-pool-instance-0","name":"autobot-instance-pool-instance-0","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"2cbd7bb4-b87c-4cfa-85d8-4f7603aa3239","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"mi-mdcs-cx-secondary.ac72dfdc4647.database.windows.net","administratorLogin":"krivi","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-sql-mi-secondary/subnets/default","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":672,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"ac72dfdc4647","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"centralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mdcs-cx-secondary-vnet/providers/Microsoft.Sql/managedInstances/mi-mdcs-cx-secondary","name":"mi-mdcs-cx-secondary","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"a3d28510-4c64-4cab-bff0-53c08adda729","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"autobot-managed-instance.1e6d90da5016.database.windows.net","administratorLogin":"cloudSA","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":192,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"proxyOverride":"Redirect","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_WestCentralUS_MI_1","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"servicePrincipal":{"principalId":"42fa858f-7a34-481a-a2a1-f4c6074ca25d","clientId":"5e03bd22-3ee9-4c36-9ea8-49483b1e64c9","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{"tagKey1":"TagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/autobot-managed-instance","name":"autobot-managed-instance","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Creating","fullyQualifiedDomainName":"ps8975.1e6d90da5016.database.windows.net","administratorLogin":"testusername","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Creating","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps3554/providers/Microsoft.Sql/managedInstances/ps8975","name":"ps8975","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"74bab3ff-2486-4148-ae0f-539f056bffd3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"mi-primary-wcus.ac72dfdc4647.database.windows.net","administratorLogin":"brka","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-primary-wcus/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":672,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"ac72dfdc4647","publicDataEndpointEnabled":false,"proxyOverride":"Redirect","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus/privateEndpointConnections/asdfasdfa-df38f4ec-ddd3-432a-9dc4-995f48edc23f","properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PrivateLinkTesting/providers/Microsoft.Network/privateEndpoints/asdfasdfa"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"},"provisioningState":"Ready"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus/privateEndpointConnections/pe11-b6622252-fbc6-4cfd-9c47-804ed5c55e66","properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/privateEndpoints/pe11"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Here - you go!","actionsRequired":"None"},"provisioningState":"Ready"}}],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"administrators":{"administratorType":"ActiveDirectory","principalType":"Group","login":"skrivokapic@microsoft.com","sid":"f6b3a38a-1f46-4a27-a0c6-667e810ea384","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","azureADOnlyAuthentication":false}},"location":"westcentralus","tags":{"fog":"primary","key3":"value3","key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus","name":"mi-primary-wcus","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"3cb58a6f-8119-4416-8d01-d6dc9a55dffe","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"a-reneamoso-kerberos-powershell.d07f201c9db7.database.windows.net","administratorLogin":"renea","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstanceDev","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"d07f201c9db7","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"servicePrincipal":{"principalId":"df51c493-91fe-4de5-82cb-33589b9a6a2e","clientId":"935eb684-de7d-4bc4-85e7-e011b122c0c1","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/a-reneamoso-kerberos-powershell","name":"a-reneamoso-kerberos-powershell","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"ps5389.1e6d90da5016.database.windows.net","administratorLogin":"testusername","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9638/providers/Microsoft.Sql/managedInstances/ps5389","name":"ps5389","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"ps3805.1e6d90da5016.database.windows.net","administratorLogin":"testusername","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps7159/providers/Microsoft.Sql/managedInstances/ps3805","name":"ps3805","type":"Microsoft.Sql/managedInstances"},{"identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity":{"principalId":"64b42a2c-4edd-48ba-b062-aa45e80c8196","clientId":"1cde9396-946a-43cf-9049-c4d978741397"}},"principalId":"34d4a648-ce4f-4842-a0bd-3e69b31ee053","type":"SystemAssigned,UserAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"brka0190.d07f201c9db7.database.windows.net","administratorLogin":"brka","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstanceDev","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":96,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"d07f201c9db7","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"primaryUserAssignedIdentityId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity","keyId":"https://kvcx.vault.azure.net/keys/tempkey/4a259381dd1a4a159c4a098b19980ec0"},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/brka0190","name":"brka0190","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"net-sdk-crud-tests-7196.1e6d90da5016.database.windows.net","administratorLogin":"dummylogin","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"test":"azure-sdk-for-net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sqlcrudtest-4130/providers/Microsoft.Sql/managedInstances/net-sdk-crud-tests-7196","name":"net-sdk-crud-tests-7196","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"BC_Gen5","tier":"BusinessCritical","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"a-reneamoso-cross-vnet.50da9005d7c3.database.windows.net","administratorLogin":"renea","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-a-reneamoso-kerberos-privaterelease/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"50da9005d7c3","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false,"servicePrincipal":{"principalId":"130ede50-e3bb-4b53-aa45-5d8f2d8d72f8","clientId":"a22b61e9-34a4-470f-ae5c-0b7eb611f0c5","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/a-reneamoso-cross-vnet","name":"a-reneamoso-cross-vnet","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"ps7597.1e6d90da5016.database.windows.net","administratorLogin":"testusername","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps674/providers/Microsoft.Sql/managedInstances/ps7597","name":"ps7597","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"20577269-d1da-4b0f-aa1d-c7d8d106cf7f","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"net-sdk-crud-tests-6301.1e6d90da5016.database.windows.net","administratorLogin":"dummylogin","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"test":"azure-sdk-for-net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/net-sdk-crud-tests-6301","name":"net-sdk-crud-tests-6301","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"ps5077.1e6d90da5016.database.windows.net","administratorLogin":"testusername","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps7027/providers/Microsoft.Sql/managedInstances/ps5077","name":"ps5077","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmiauz4cic2zikkfik4wkglsqpetjp5pccnvam3dspwgovaeu42b7nh6.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmiauz4cic2zikkfik4wkglsqpetjp5pccnvam3dspwgovaeu42b7nh6","name":"clitestmiauz4cic2zikkfik4wkglsqpetjp5pccnvam3dspwgovaeu42b7nh6","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"b08ed559-e96c-4c93-b509-8b866a0c4c82","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"chimera-ps-cli-v2.19fcd56de9df.database.windows.net","administratorLogin":"ostojic","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-chimera-ps-cli-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"19fcd56de9df","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"eastus2euap","tags":{"test":"azure-sdk-for-net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/chimera-ps-cli-v2","name":"chimera-ps-cli-v2","type":"Microsoft.Sql/managedInstances"}]}' + string: '{"value":[{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"autobot-instance-pool-instance-0.9c25c6191d05.database.windows.net","administratorLogin":"cloudsa","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Network/virtualNetworks/vnet-autobot-instance-pool/subnets/InstancePool","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":64,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"9c25c6191d05","publicDataEndpointEnabled":false,"timezoneId":"UTC","instancePoolId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Sql/instancePools/autobot-instance-pool","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"canadacentral","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/autobot-instance-pool/providers/Microsoft.Sql/managedInstances/autobot-instance-pool-instance-0","name":"autobot-instance-pool-instance-0","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"2cbd7bb4-b87c-4cfa-85d8-4f7603aa3239","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"mi-mdcs-cx-secondary.ac72dfdc4647.database.windows.net","administratorLogin":"krivi","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-sql-mi-secondary/subnets/default","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":672,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"ac72dfdc4647","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"centralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mdcs-cx-secondary-vnet/providers/Microsoft.Sql/managedInstances/mi-mdcs-cx-secondary","name":"mi-mdcs-cx-secondary","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"7909c355-cfd2-40f2-8270-7ab05d3f07e8","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"autobot-managed-instance.1e6d90da5016.database.windows.net","administratorLogin":"cloudSA","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":2048,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Redirect","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"servicePrincipal":{"principalId":"29120e53-0214-4cb9-9972-fcaa04ab8bb9","clientId":"71ea7fce-b9a7-475d-a58c-72c7a50897de","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{"tagKey1":"TagValue1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/autobot-managed-instance","name":"autobot-managed-instance","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"74bab3ff-2486-4148-ae0f-539f056bffd3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"mi-primary-wcus.ac72dfdc4647.database.windows.net","administratorLogin":"brka","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-primary-wcus/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":672,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"ac72dfdc4647","publicDataEndpointEnabled":false,"proxyOverride":"Redirect","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus/privateEndpointConnections/asdfasdfa-df38f4ec-ddd3-432a-9dc4-995f48edc23f","properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/PrivateLinkTesting/providers/Microsoft.Network/privateEndpoints/asdfasdfa"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-approved","actionsRequired":"None"},"provisioningState":"Ready"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus/privateEndpointConnections/pe11-b6622252-fbc6-4cfd-9c47-804ed5c55e66","properties":{"privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/privateEndpoints/pe11"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Here + you go!","actionsRequired":"None"},"provisioningState":"Ready"}}],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"fog":"primary","key3":"value3","key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/mi-primary-wcus","name":"mi-primary-wcus","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"5b6a6ab1-b154-474a-a14b-7168825d0fe3","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmi000001.1e6d90da5016.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"1e6d90da5016","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.1","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false,"servicePrincipal":{"principalId":"234ba427-e667-4ce7-8462-dc8eadea156c","clientId":"06066342-9da4-4f67-800b-058b5100d0f1","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001","name":"clitestmi000001","type":"Microsoft.Sql/managedInstances"},{"identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity":{"principalId":"64b42a2c-4edd-48ba-b062-aa45e80c8196","clientId":"1cde9396-946a-43cf-9049-c4d978741397"}},"principalId":"34d4a648-ce4f-4842-a0bd-3e69b31ee053","type":"SystemAssigned,UserAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"brka0190.d07f201c9db7.database.windows.net","administratorLogin":"brka","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-mi-tooling/subnets/ManagedInstanceDev","state":"Ready","licenseType":"BasePrice","vCores":4,"storageSizeInGB":96,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"d07f201c9db7","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false,"primaryUserAssignedIdentityId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity","keyId":"https://kvcx.vault.azure.net/keys/tempkey/4a259381dd1a4a159c4a098b19980ec0"},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/brka0190","name":"brka0190","type":"Microsoft.Sql/managedInstances"},{"identity":{"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity":{"principalId":"64b42a2c-4edd-48ba-b062-aa45e80c8196","clientId":"1cde9396-946a-43cf-9049-c4d978741397"}},"type":"UserAssigned"},"sku":{"name":"BC_Gen5","tier":"BusinessCritical","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"a-reneamoso-cross-vnet.50da9005d7c3.database.windows.net","administratorLogin":"renea","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-a-reneamoso-kerberos-privaterelease/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"50da9005d7c3","publicDataEndpointEnabled":false,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Local","requestedBackupStorageRedundancy":"Local","zoneRedundant":false,"primaryUserAssignedIdentityId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/CustomerExperienceTeam_RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/wasd-wcus-identity"},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/a-reneamoso-cross-vnet","name":"a-reneamoso-cross-vnet","type":"Microsoft.Sql/managedInstances"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"ostojic-test-remove.19fcd56de9df.database.windows.net","administratorLogin":"ostojic","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-chimera-ps-cli-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":256,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"19fcd56de9df","publicDataEndpointEnabled":false,"timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/ostojic-test-remove","name":"ostojic-test-remove","type":"Microsoft.Sql/managedInstances"},{"identity":{"principalId":"b08ed559-e96c-4c93-b509-8b866a0c4c82","type":"SystemAssigned","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47"},"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"chimera-ps-cli-v2.19fcd56de9df.database.windows.net","administratorLogin":"ostojic","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-chimera-ps-cli-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"SQL_Latin1_General_CP1_CI_AS","dnsZone":"19fcd56de9df","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"1.2","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"eastus2euap","tags":{"test":"azure-sdk-for-net"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/chimera-ps-cli-v2","name":"chimera-ps-cli-v2","type":"Microsoft.Sql/managedInstances"}]}' headers: cache-control: - no-cache content-length: - - '24435' + - '14855' content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:07:57 GMT + - Wed, 30 Mar 2022 13:14:05 GMT expires: - '-1' pragma: @@ -3682,10 +3836,10 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 5b95faf4-af98-4d21-9c29-fe96b6f49cce - - a4b046a5-5a4a-4be5-b263-872c278bd2a1 - - 32820b15-1af4-4b67-b8a3-787b41d69859 - - cb4af1f3-a2b8-43da-bc66-03c979aafb4d + - d2eb1ba8-c3ee-456a-b7f3-5486ed4f0e70 + - 4d275acd-fdda-497f-b0e9-70201bbb0347 + - a4cdec30-9f1f-4a1a-8786-1a433817b84a + - 352e3222-7b8f-4f3f-806a-0fea56b6e846 status: code: 200 message: OK @@ -3705,15 +3859,15 @@ interactions: ParameterSetName: - -g -n --yes --no-wait User-Agent: - - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.3 (Windows-10-10.0.17763-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-sql/4.0.0b1 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmi000001?api-version=2021-05-01-preview response: body: - string: '{"operation":"DropManagedServer","startTime":"2022-03-15T16:07:59.773Z"}' + string: '{"operation":"DropManagedServer","startTime":"2022-03-30T13:14:07.833Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/01d4dc67-f91f-49c4-ba36-11a090727e5b?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceAzureAsyncOperation/66722ca7-d603-4623-8023-795e1af26006?api-version=2021-05-01-preview cache-control: - no-cache content-length: @@ -3721,11 +3875,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 15 Mar 2022 16:07:58 GMT + - Wed, 30 Mar 2022 13:14:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceOperationResults/01d4dc67-f91f-49c4-ba36-11a090727e5b?api-version=2021-05-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/managedInstanceOperationResults/66722ca7-d603-4623-8023-795e1af26006?api-version=2021-05-01-preview pragma: - no-cache server: diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index ec47e31f117..621421d30dc 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -4429,6 +4429,7 @@ def test_sql_managed_instance_mgmt(self, mi, rg): tls1_2 = "1.2" tls1_1 = "1.1" user = admin_login + service_principal_type = "SystemAssigned" # test show sql managed instance 1 subnet = ManagedInstancePreparer.subnet @@ -4561,6 +4562,14 @@ def test_sql_managed_instance_mgmt(self, mi, rg): JMESPathCheck('resourceGroup', resource_group_1), JMESPathCheck('subnetId', subnet)]) + # test Service Principal update + self.cmd('sql mi update -g {} -n {} --service-principal-type {}' + .format(resource_group_1, managed_instance_name_1, service_principal_type), + checks=[ + JMESPathCheck('name', managed_instance_name_1), + JMESPathCheck('resourceGroup', resource_group_1), + JMESPathCheck('servicePrincipal.type', service_principal_type)]) + # test list sql managed_instance in the subscription should be at least 1 self.cmd('sql mi list', checks=[JMESPathCheckGreaterThan('length(@)', 0)]) From 13ea1981b5d327f8309aa8c1bdc1afc09f9ba989 Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Tue, 6 Jun 2023 17:16:22 +0200 Subject: [PATCH 02/11] fixing conflicts --- src/azure-cli/azure/cli/command_modules/sql/custom.py | 10 ---------- .../recordings/test_sql_managed_instance_mgmt.yaml | 10 +++++----- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/custom.py b/src/azure-cli/azure/cli/command_modules/sql/custom.py index c1941256a34..4b61c3bcc80 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/custom.py +++ b/src/azure-cli/azure/cli/command_modules/sql/custom.py @@ -431,16 +431,6 @@ def _get_tenant_id(): sub = profile.get_subscription() return sub['tenantId'] -def _get_service_principal_object_from_type(servicePrincipalType): - ''' - Gets the service principal object from type. - ''' - servicePrincipalResult = None - - if servicePrincipalType is not None and (servicePrincipalType == ServicePrincipalType.system_assigned.value or servicePrincipalType == ServicePrincipalType.none.value): - servicePrincipalResult = ServicePrincipal(type=servicePrincipalType) - - return servicePrincipalResult def _get_service_principal_object_from_type(servicePrincipalType): ''' diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml index bc8fd0c2f5f..014ed753ba8 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_managed_instance_mgmt.yaml @@ -1719,7 +1719,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -2299,7 +2299,7 @@ interactions: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: @@ -4127,7 +4127,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --service-principal-type + - -g -n --subnet --vnet-name User-Agent: - AZURECLI/2.45.0 azsdk-python-mgmt-sql/4.0.0b5 Python/3.9.5 (Windows-10-10.0.22621-SP0) method: GET @@ -4185,7 +4185,7 @@ interactions: cache-control: - no-cache content-length: - - '1569' + - '1371' content-type: - application/json; charset=utf-8 date: @@ -4582,4 +4582,4 @@ interactions: status: code: 202 message: Accepted -version: 1 +version: 1 \ No newline at end of file From 636671819c50cde47c7072dad60b6a392962e65c Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Tue, 6 Jun 2023 17:20:34 +0200 Subject: [PATCH 03/11] fixing conflicts 2 --- src/azure-cli/azure/cli/command_modules/sql/custom.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/custom.py b/src/azure-cli/azure/cli/command_modules/sql/custom.py index 4b61c3bcc80..43f23419084 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/custom.py +++ b/src/azure-cli/azure/cli/command_modules/sql/custom.py @@ -655,12 +655,6 @@ class ResourceIdType(Enum): system_assigned_user_assigned = 'SystemAssigned,UserAssigned' none = 'None' -class ServicePrincipalType(Enum): - ''' - Types of service principal. - ''' - system_assigned = 'SystemAssigned' - none = 'None' class ServicePrincipalType(Enum): ''' From 86c6b2e8048808d7564838998e246c048a9f62eb Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Wed, 5 Jul 2023 14:14:42 +0200 Subject: [PATCH 04/11] generating cmdlets for manual start stop --- .../sql/aaz/latest/sql/mi/__init__.py | 2 + .../sql/aaz/latest/sql/mi/_start.py | 382 ++++++++++++++++++ .../sql/aaz/latest/sql/mi/_stop.py | 382 ++++++++++++++++++ 3 files changed, 766 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/__init__.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/__init__.py index 5a9d61963d6..cf3f2a3424c 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/__init__.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/__init__.py @@ -9,3 +9,5 @@ # flake8: noqa from .__cmd_group import * +from ._start import * +from ._stop import * diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py new file mode 100644 index 00000000000..7ee52125c11 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py @@ -0,0 +1,382 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi start", +) +class Start(AAZCommand): + """Starts the managed instance. + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/start", "2022-11-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of resource group.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.ManagedInstancesStart(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ManagedInstancesStart(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/start", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.sku = AAZObjectType() + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.administrator_login = AAZStrType( + serialized_name="administratorLogin", + ) + properties.administrators = AAZObjectType() + properties.collation = AAZStrType() + properties.current_backup_storage_redundancy = AAZStrType( + serialized_name="currentBackupStorageRedundancy", + flags={"read_only": True}, + ) + properties.dns_zone = AAZStrType( + serialized_name="dnsZone", + flags={"read_only": True}, + ) + properties.fully_qualified_domain_name = AAZStrType( + serialized_name="fullyQualifiedDomainName", + flags={"read_only": True}, + ) + properties.instance_pool_id = AAZStrType( + serialized_name="instancePoolId", + ) + properties.key_id = AAZStrType( + serialized_name="keyId", + ) + properties.license_type = AAZStrType( + serialized_name="licenseType", + ) + properties.maintenance_configuration_id = AAZStrType( + serialized_name="maintenanceConfigurationId", + ) + properties.minimal_tls_version = AAZStrType( + serialized_name="minimalTlsVersion", + ) + properties.primary_user_assigned_identity_id = AAZStrType( + serialized_name="primaryUserAssignedIdentityId", + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.proxy_override = AAZStrType( + serialized_name="proxyOverride", + ) + properties.public_data_endpoint_enabled = AAZBoolType( + serialized_name="publicDataEndpointEnabled", + ) + properties.requested_backup_storage_redundancy = AAZStrType( + serialized_name="requestedBackupStorageRedundancy", + ) + properties.service_principal = AAZObjectType( + serialized_name="servicePrincipal", + ) + properties.state = AAZStrType( + flags={"read_only": True}, + ) + properties.storage_size_in_gb = AAZIntType( + serialized_name="storageSizeInGB", + ) + properties.subnet_id = AAZStrType( + serialized_name="subnetId", + ) + properties.timezone_id = AAZStrType( + serialized_name="timezoneId", + ) + properties.v_cores = AAZIntType( + serialized_name="vCores", + ) + properties.virtual_cluster_id = AAZStrType( + serialized_name="virtualClusterId", + flags={"read_only": True}, + ) + properties.zone_redundant = AAZBoolType( + serialized_name="zoneRedundant", + ) + + administrators = cls._schema_on_200.properties.administrators + administrators.administrator_type = AAZStrType( + serialized_name="administratorType", + ) + administrators.azure_ad_only_authentication = AAZBoolType( + serialized_name="azureADOnlyAuthentication", + ) + administrators.login = AAZStrType() + administrators.principal_type = AAZStrType( + serialized_name="principalType", + ) + administrators.sid = AAZStrType() + administrators.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + flags={"read_only": True}, + ) + private_link_service_connection_state.description = AAZStrType( + flags={"required": True}, + ) + private_link_service_connection_state.status = AAZStrType( + flags={"required": True}, + ) + + service_principal = cls._schema_on_200.properties.service_principal + service_principal.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + service_principal.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + service_principal.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + service_principal.type = AAZStrType() + + sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _StartHelper: + """Helper class for Start""" + + +__all__ = ["Start"] diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py new file mode 100644 index 00000000000..26bc5bf13aa --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py @@ -0,0 +1,382 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi stop", +) +class Stop(AAZCommand): + """Stops the managed instance. + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/stop", "2022-11-01-preview"], + ] + } + + AZ_SUPPORT_NO_WAIT = True + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_lro_poller(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + yield self.ManagedInstancesStop(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class ManagedInstancesStop(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [202]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + if session.http_response.status_code in [200]: + return self.client.build_lro_polling( + self.ctx.args.no_wait, + session, + self.on_200, + self.on_error, + lro_options={"final-state-via": "location"}, + path_format_arguments=self.url_parameters, + ) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/stop", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.sku = AAZObjectType() + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.administrator_login = AAZStrType( + serialized_name="administratorLogin", + ) + properties.administrators = AAZObjectType() + properties.collation = AAZStrType() + properties.current_backup_storage_redundancy = AAZStrType( + serialized_name="currentBackupStorageRedundancy", + flags={"read_only": True}, + ) + properties.dns_zone = AAZStrType( + serialized_name="dnsZone", + flags={"read_only": True}, + ) + properties.fully_qualified_domain_name = AAZStrType( + serialized_name="fullyQualifiedDomainName", + flags={"read_only": True}, + ) + properties.instance_pool_id = AAZStrType( + serialized_name="instancePoolId", + ) + properties.key_id = AAZStrType( + serialized_name="keyId", + ) + properties.license_type = AAZStrType( + serialized_name="licenseType", + ) + properties.maintenance_configuration_id = AAZStrType( + serialized_name="maintenanceConfigurationId", + ) + properties.minimal_tls_version = AAZStrType( + serialized_name="minimalTlsVersion", + ) + properties.primary_user_assigned_identity_id = AAZStrType( + serialized_name="primaryUserAssignedIdentityId", + ) + properties.private_endpoint_connections = AAZListType( + serialized_name="privateEndpointConnections", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + properties.proxy_override = AAZStrType( + serialized_name="proxyOverride", + ) + properties.public_data_endpoint_enabled = AAZBoolType( + serialized_name="publicDataEndpointEnabled", + ) + properties.requested_backup_storage_redundancy = AAZStrType( + serialized_name="requestedBackupStorageRedundancy", + ) + properties.service_principal = AAZObjectType( + serialized_name="servicePrincipal", + ) + properties.state = AAZStrType( + flags={"read_only": True}, + ) + properties.storage_size_in_gb = AAZIntType( + serialized_name="storageSizeInGB", + ) + properties.subnet_id = AAZStrType( + serialized_name="subnetId", + ) + properties.timezone_id = AAZStrType( + serialized_name="timezoneId", + ) + properties.v_cores = AAZIntType( + serialized_name="vCores", + ) + properties.virtual_cluster_id = AAZStrType( + serialized_name="virtualClusterId", + flags={"read_only": True}, + ) + properties.zone_redundant = AAZBoolType( + serialized_name="zoneRedundant", + ) + + administrators = cls._schema_on_200.properties.administrators + administrators.administrator_type = AAZStrType( + serialized_name="administratorType", + ) + administrators.azure_ad_only_authentication = AAZBoolType( + serialized_name="azureADOnlyAuthentication", + ) + administrators.login = AAZStrType() + administrators.principal_type = AAZStrType( + serialized_name="principalType", + ) + administrators.sid = AAZStrType() + administrators.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + + private_endpoint_connections = cls._schema_on_200.properties.private_endpoint_connections + private_endpoint_connections.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.private_endpoint_connections.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType() + + properties = cls._schema_on_200.properties.private_endpoint_connections.Element.properties + properties.private_endpoint = AAZObjectType( + serialized_name="privateEndpoint", + ) + properties.private_link_service_connection_state = AAZObjectType( + serialized_name="privateLinkServiceConnectionState", + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + private_endpoint = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_endpoint + private_endpoint.id = AAZStrType() + + private_link_service_connection_state = cls._schema_on_200.properties.private_endpoint_connections.Element.properties.private_link_service_connection_state + private_link_service_connection_state.actions_required = AAZStrType( + serialized_name="actionsRequired", + flags={"read_only": True}, + ) + private_link_service_connection_state.description = AAZStrType( + flags={"required": True}, + ) + private_link_service_connection_state.status = AAZStrType( + flags={"required": True}, + ) + + service_principal = cls._schema_on_200.properties.service_principal + service_principal.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + service_principal.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + service_principal.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + service_principal.type = AAZStrType() + + sku = cls._schema_on_200.sku + sku.capacity = AAZIntType() + sku.family = AAZStrType() + sku.name = AAZStrType( + flags={"required": True}, + ) + sku.size = AAZStrType() + sku.tier = AAZStrType() + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +class _StopHelper: + """Helper class for Stop""" + + +__all__ = ["Stop"] From 286b3f745bd5b3b98a50f56703d46da1424e8f85 Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Thu, 6 Jul 2023 17:31:43 +0200 Subject: [PATCH 05/11] adding examples for manual start stop --- .../cli/command_modules/sql/aaz/latest/sql/mi/_start.py | 6 +++++- .../cli/command_modules/sql/aaz/latest/sql/mi/_stop.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py index 7ee52125c11..a47fa5ca0d6 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py @@ -16,6 +16,10 @@ ) class Start(AAZCommand): """Starts the managed instance. + + :example: Start a managed instance. + az sql mi start --ids resourceId + az sql mi start --mi miName -g resourceGroup --subscription subscription """ _aaz_info = { @@ -49,7 +53,7 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group.", + help="Name of the resource group.", required=True, ) return cls._args_schema diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py index 26bc5bf13aa..0ca5db63407 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py @@ -16,6 +16,10 @@ ) class Stop(AAZCommand): """Stops the managed instance. + + :example: Stop a managed instance. + az sql mi stop --ids resourceId + az sql mi stop --mi miName -g resourceGroup --subscription subscription """ _aaz_info = { From 611a8061d2b98827268cf2ae88f185628aa786d7 Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Fri, 7 Jul 2023 15:33:36 +0200 Subject: [PATCH 06/11] adding scheduled start stop commands except create --- .../sql/mi/startstopschedule/__cmd_group.py | 23 + .../sql/mi/startstopschedule/__init__.py | 16 + .../sql/mi/startstopschedule/_delete.py | 141 ++++++ .../latest/sql/mi/startstopschedule/_list.py | 253 ++++++++++ .../latest/sql/mi/startstopschedule/_show.py | 241 +++++++++ .../sql/mi/startstopschedule/_update.py | 462 ++++++++++++++++++ 6 files changed, 1136 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py new file mode 100644 index 00000000000..8476da71d7d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "sql mi startstopschedule", +) +class __CMDGroup(AAZCommandGroup): + """Manage the managed instance's start stop schedule. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__init__.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__init__.py new file mode 100644 index 00000000000..c401f439385 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__init__.py @@ -0,0 +1,16 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._show import * +from ._update import * diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py new file mode 100644 index 00000000000..90b64f7a480 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py @@ -0,0 +1,141 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi startstopschedule delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete the managed instance's Start/Stop schedule. + + :example: Delete a managed instance start stop schedule. + az sql mi startstopschedule delete --ids resourceId + az sql mi startstopschedule delete --mi miName -g resourceGroup --subscription subscriptionId + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/startstopschedules/{}", "2022-11-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.StartStopManagedInstanceSchedulesDelete(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + class StartStopManagedInstanceSchedulesDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +class _DeleteHelper: + """Helper class for Delete""" + + +__all__ = ["Delete"] diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py new file mode 100644 index 00000000000..f284bbfc17c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py @@ -0,0 +1,253 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi startstopschedule list", +) +class List(AAZCommand): + """List the managed instance's Start/Stop schedules. + + :example: Lists the managed instance's start stop schedule. + az sql mi startstopschedule list --ids resourceId + az sql mi startstopschedule list --mi miName -g resourceGroup --subscription subscriptionId + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/startstopschedules", "2022-11-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.StartStopManagedInstanceSchedulesListByInstance(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class StartStopManagedInstanceSchedulesListByInstance(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + flags={"read_only": True}, + ) + _schema_on_200.value = AAZListType( + flags={"read_only": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.description = AAZStrType() + properties.next_execution_time = AAZStrType( + serialized_name="nextExecutionTime", + flags={"read_only": True}, + ) + properties.next_run_action = AAZStrType( + serialized_name="nextRunAction", + flags={"read_only": True}, + ) + properties.schedule_list = AAZListType( + serialized_name="scheduleList", + flags={"required": True}, + ) + properties.time_zone_id = AAZStrType( + serialized_name="timeZoneId", + ) + + schedule_list = cls._schema_on_200.value.Element.properties.schedule_list + schedule_list.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.schedule_list.Element + _element.start_day = AAZStrType( + serialized_name="startDay", + flags={"required": True}, + ) + _element.start_time = AAZStrType( + serialized_name="startTime", + flags={"required": True}, + ) + _element.stop_day = AAZStrType( + serialized_name="stopDay", + flags={"required": True}, + ) + _element.stop_time = AAZStrType( + serialized_name="stopTime", + flags={"required": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ListHelper: + """Helper class for List""" + + +__all__ = ["List"] diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py new file mode 100644 index 00000000000..9febd700dd0 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py @@ -0,0 +1,241 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi startstopschedule show", +) +class Show(AAZCommand): + """Get the managed instance's Start/Stop schedule. + + :example: Get the managed instance's start stop schedule. + az sql mi startstopschedule show --ids resourceId + az sql mi startstopschedule show --mi miName -g resourceGroup --subscription subscriptionId + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/startstopschedules/{}", "2022-11-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.StartStopManagedInstanceSchedulesGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class StartStopManagedInstanceSchedulesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.description = AAZStrType() + properties.next_execution_time = AAZStrType( + serialized_name="nextExecutionTime", + flags={"read_only": True}, + ) + properties.next_run_action = AAZStrType( + serialized_name="nextRunAction", + flags={"read_only": True}, + ) + properties.schedule_list = AAZListType( + serialized_name="scheduleList", + flags={"required": True}, + ) + properties.time_zone_id = AAZStrType( + serialized_name="timeZoneId", + ) + + schedule_list = cls._schema_on_200.properties.schedule_list + schedule_list.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.schedule_list.Element + _element.start_day = AAZStrType( + serialized_name="startDay", + flags={"required": True}, + ) + _element.start_time = AAZStrType( + serialized_name="startTime", + flags={"required": True}, + ) + _element.stop_day = AAZStrType( + serialized_name="stopDay", + flags={"required": True}, + ) + _element.stop_time = AAZStrType( + serialized_name="stopTime", + flags={"required": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py new file mode 100644 index 00000000000..6ff5894f3d7 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py @@ -0,0 +1,462 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi startstopschedule update", +) +class Update(AAZCommand): + """Update the managed instance's Start/Stop schedule. + + :example: Update (override) the managed instance's start stop schedule. + az sql mi startstopschedule update --ids resourceId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + az sql mi startstopschedule update --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + :example: Add schedule items to the managed instance's start stop schedule. + az sql mi startstopschedule update --ids resourceId --add schedule_list "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}" + :example: Remove schedule items to the managed instance's start stop schedule. + az sql mi startstopschedule update --ids resourceId --remove schedule_list index(0 based) + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/startstopschedules/{}", "2022-11-01-preview"], + ] + } + + AZ_SUPPORT_GENERIC_UPDATE = True + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.description = AAZStrArg( + options=["--description"], + arg_group="Properties", + help="The description of the schedule.", + nullable=True, + ) + _args_schema.schedule_list = AAZListArg( + options=["--schedule-list"], + arg_group="Properties", + help="Schedule list.", + ) + _args_schema.timezone_id = AAZStrArg( + options=["--timezone-id"], + arg_group="Properties", + help="The time zone of the schedule.", + nullable=True, + ) + + schedule_list = cls._args_schema.schedule_list + schedule_list.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.schedule_list.Element + _element.start_day = AAZStrArg( + options=["start-day"], + help="Start day.", + enum={"Friday": "Friday", "Monday": "Monday", "Saturday": "Saturday", "Sunday": "Sunday", "Thursday": "Thursday", "Tuesday": "Tuesday", "Wednesday": "Wednesday"}, + ) + _element.start_time = AAZStrArg( + options=["start-time"], + help="Start time.", + ) + _element.stop_day = AAZStrArg( + options=["stop-day"], + help="Stop day.", + enum={"Friday": "Friday", "Monday": "Monday", "Saturday": "Saturday", "Sunday": "Sunday", "Thursday": "Thursday", "Tuesday": "Tuesday", "Wednesday": "Wednesday"}, + ) + _element.stop_time = AAZStrArg( + options=["stop-time"], + help="Stop time.", + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.StartStopManagedInstanceSchedulesGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.vars.instance) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.StartStopManagedInstanceSchedulesCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class StartStopManagedInstanceSchedulesGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + _UpdateHelper._build_schema_start_stop_managed_instance_schedule_read(cls._schema_on_200) + + return cls._schema_on_200 + + class StartStopManagedInstanceSchedulesCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _UpdateHelper._build_schema_start_stop_managed_instance_schedule_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.vars.instance) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZObjectType + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("description", AAZStrType, ".description") + properties.set_prop("scheduleList", AAZListType, ".schedule_list", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("timeZoneId", AAZStrType, ".timezone_id") + + schedule_list = _builder.get(".properties.scheduleList") + if schedule_list is not None: + schedule_list.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.scheduleList[]") + if _elements is not None: + _elements.set_prop("startDay", AAZStrType, ".start_day", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("startTime", AAZStrType, ".start_time", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("stopDay", AAZStrType, ".stop_day", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("stopTime", AAZStrType, ".stop_time", typ_kwargs={"flags": {"required": True}}) + + return _instance_value + + class InstanceUpdateByGeneric(AAZGenericInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance_by_generic( + self.ctx.vars.instance, + self.ctx.generic_update_args + ) + + +class _UpdateHelper: + """Helper class for Update""" + + _schema_start_stop_managed_instance_schedule_read = None + + @classmethod + def _build_schema_start_stop_managed_instance_schedule_read(cls, _schema): + if cls._schema_start_stop_managed_instance_schedule_read is not None: + _schema.id = cls._schema_start_stop_managed_instance_schedule_read.id + _schema.name = cls._schema_start_stop_managed_instance_schedule_read.name + _schema.properties = cls._schema_start_stop_managed_instance_schedule_read.properties + _schema.system_data = cls._schema_start_stop_managed_instance_schedule_read.system_data + _schema.type = cls._schema_start_stop_managed_instance_schedule_read.type + return + + cls._schema_start_stop_managed_instance_schedule_read = _schema_start_stop_managed_instance_schedule_read = AAZObjectType() + + start_stop_managed_instance_schedule_read = _schema_start_stop_managed_instance_schedule_read + start_stop_managed_instance_schedule_read.id = AAZStrType( + flags={"read_only": True}, + ) + start_stop_managed_instance_schedule_read.name = AAZStrType( + flags={"read_only": True}, + ) + start_stop_managed_instance_schedule_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + start_stop_managed_instance_schedule_read.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + start_stop_managed_instance_schedule_read.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = _schema_start_stop_managed_instance_schedule_read.properties + properties.description = AAZStrType() + properties.next_execution_time = AAZStrType( + serialized_name="nextExecutionTime", + flags={"read_only": True}, + ) + properties.next_run_action = AAZStrType( + serialized_name="nextRunAction", + flags={"read_only": True}, + ) + properties.schedule_list = AAZListType( + serialized_name="scheduleList", + flags={"required": True}, + ) + properties.time_zone_id = AAZStrType( + serialized_name="timeZoneId", + ) + + schedule_list = _schema_start_stop_managed_instance_schedule_read.properties.schedule_list + schedule_list.Element = AAZObjectType() + + _element = _schema_start_stop_managed_instance_schedule_read.properties.schedule_list.Element + _element.start_day = AAZStrType( + serialized_name="startDay", + flags={"required": True}, + ) + _element.start_time = AAZStrType( + serialized_name="startTime", + flags={"required": True}, + ) + _element.stop_day = AAZStrType( + serialized_name="stopDay", + flags={"required": True}, + ) + _element.stop_time = AAZStrType( + serialized_name="stopTime", + flags={"required": True}, + ) + + system_data = _schema_start_stop_managed_instance_schedule_read.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + _schema.id = cls._schema_start_stop_managed_instance_schedule_read.id + _schema.name = cls._schema_start_stop_managed_instance_schedule_read.name + _schema.properties = cls._schema_start_stop_managed_instance_schedule_read.properties + _schema.system_data = cls._schema_start_stop_managed_instance_schedule_read.system_data + _schema.type = cls._schema_start_stop_managed_instance_schedule_read.type + + +__all__ = ["Update"] From 4f97f4ab481111726d16d14ba0ae5dad4d811fdc Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Fri, 7 Jul 2023 16:20:52 +0200 Subject: [PATCH 07/11] adding create command for scheduledstartstop --- .../sql/mi/startstopschedule/_create.py | 319 ++++++++++++++++++ 1 file changed, 319 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py new file mode 100644 index 00000000000..79de1195f20 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py @@ -0,0 +1,319 @@ +# -------------------------------------------------------------------------------------------- +# 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 aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "sql mi startstopschedule create", +) +class Create(AAZCommand): + """Create the managed instance's Start/Stop schedule. + + :example: Remove schedule items to the managed instance's start stop schedule. + az sql mi startstopschedule create --mi miName -g resourceGroup --subscription subscriptionId--schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + """ + + _aaz_info = { + "version": "2022-11-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.sql/managedinstances/{}/startstopschedules/{}", "2022-11-01-preview"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.managed_instance = AAZStrArg( + options=["--mi", "--managed-instance"], + help="The name of the managed instance.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + help="Name of the resource group.", + required=True, + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.description = AAZStrArg( + options=["--description"], + arg_group="Properties", + help="The description of the schedule.", + default="", + ) + _args_schema.schedule_list = AAZListArg( + options=["--schedule-list"], + arg_group="Properties", + help="Schedule list.", + ) + _args_schema.timezone_id = AAZStrArg( + options=["--timezone-id"], + arg_group="Properties", + help="The time zone of the schedule.", + default="UTC", + ) + + schedule_list = cls._args_schema.schedule_list + schedule_list.Element = AAZObjectArg() + + _element = cls._args_schema.schedule_list.Element + _element.start_day = AAZStrArg( + options=["start-day"], + help="Start day.", + required=True, + enum={"Friday": "Friday", "Monday": "Monday", "Saturday": "Saturday", "Sunday": "Sunday", "Thursday": "Thursday", "Tuesday": "Tuesday", "Wednesday": "Wednesday"}, + ) + _element.start_time = AAZStrArg( + options=["start-time"], + help="Start time.", + required=True, + ) + _element.stop_day = AAZStrArg( + options=["stop-day"], + help="Stop day.", + required=True, + enum={"Friday": "Friday", "Monday": "Monday", "Saturday": "Saturday", "Sunday": "Sunday", "Thursday": "Thursday", "Tuesday": "Tuesday", "Wednesday": "Wednesday"}, + ) + _element.stop_time = AAZStrArg( + options=["stop-time"], + help="Stop time.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.StartStopManagedInstanceSchedulesCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class StartStopManagedInstanceSchedulesCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/startStopSchedules/default", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "managedInstanceName", self.ctx.args.managed_instance, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-11-01-preview", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("description", AAZStrType, ".description") + properties.set_prop("scheduleList", AAZListType, ".schedule_list", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("timeZoneId", AAZStrType, ".timezone_id") + + schedule_list = _builder.get(".properties.scheduleList") + if schedule_list is not None: + schedule_list.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.scheduleList[]") + if _elements is not None: + _elements.set_prop("startDay", AAZStrType, ".start_day", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("startTime", AAZStrType, ".start_time", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("stopDay", AAZStrType, ".stop_day", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("stopTime", AAZStrType, ".stop_time", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + + _schema_on_200_201 = cls._schema_on_200_201 + _schema_on_200_201.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200_201.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200_201.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200_201.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200_201.properties + properties.description = AAZStrType() + properties.next_execution_time = AAZStrType( + serialized_name="nextExecutionTime", + flags={"read_only": True}, + ) + properties.next_run_action = AAZStrType( + serialized_name="nextRunAction", + flags={"read_only": True}, + ) + properties.schedule_list = AAZListType( + serialized_name="scheduleList", + flags={"required": True}, + ) + properties.time_zone_id = AAZStrType( + serialized_name="timeZoneId", + ) + + schedule_list = cls._schema_on_200_201.properties.schedule_list + schedule_list.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.schedule_list.Element + _element.start_day = AAZStrType( + serialized_name="startDay", + flags={"required": True}, + ) + _element.start_time = AAZStrType( + serialized_name="startTime", + flags={"required": True}, + ) + _element.stop_day = AAZStrType( + serialized_name="stopDay", + flags={"required": True}, + ) + _element.stop_time = AAZStrType( + serialized_name="stopTime", + flags={"required": True}, + ) + + system_data = cls._schema_on_200_201.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + ) + + return cls._schema_on_200_201 + + +class _CreateHelper: + """Helper class for Create""" + + +__all__ = ["Create"] From 71161ec5b819141bc11f0e65630cf92703225456 Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Mon, 10 Jul 2023 14:41:01 +0200 Subject: [PATCH 08/11] writing tests --- .../sql/tests/latest/test_sql_commands.py | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index 33facbeab77..7db14fb44ff 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -5260,6 +5260,102 @@ def test_sql_managed_instance_mgmt(self, mi, rg): # test list sql managed_instance in the subscription should be at least 1 self.cmd('sql mi list', checks=[JMESPathCheckGreaterThan('length(@)', 0)]) +class SqlManagedInstanceStartStopMgmtScenarioTest(ScenarioTest): + @AllowLargeResponse() + @ManagedInstancePreparer(parameter_name = 'mi', vnet_name='vnet-managed-instance-v2') + def test_sql_mi_startstop_mgmt(self, mi, rg): + self.kwargs.update({ + 'rg': rg, + 'mi': mi, + 'subscription': ManagedInstancePreparer.subscription_id, + }) + # check if test MI got created + self.cmd('sql mi show -g {rg} -n {mi}', + checks=[ + JMESPathCheck('name', mi), + JMESPathCheck('resourceGroup', rg)]) + + # test the manual stop command + self.cmd('sql mi stop -g {rg} --mi {mi} --subscription {subscription}', + checks=[ + JMESPathCheck('name', mi), + JMESPathCheck('state', 'Stopped')]) + + # test the manual start command + self.cmd('sql mi start -g {rg} --mi {mi} --subscription {subscription}', + checks=[ + JMESPathCheck('name', mi), + JMESPathCheck('state', 'Online')]) + + @AllowLargeResponse() + @ManagedInstancePreparer(parameter_name = 'mi', vnet_name='vnet-managed-instance-v2') + def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): + self.kwargs.update({ + 'rg': rg, + 'mi': mi, + 'subscription': ManagedInstancePreparer.subscription_id, + 'schedule': "[{'startDay':'Friday','startTime':'10:00 AM','stopDay':'Friday','stopTime':'11:10 AM'}]", + 'desc': "test description", + 'schedule_item': "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'11:10 AM'}", + }) + # check if test MI got created + self.cmd('sql mi show -g {rg} -n {mi}', + checks=[ + JMESPathCheck('name', mi), + JMESPathCheck('resourceGroup', rg)]) + + # test the create schedule + self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --subscription {subscription} --schedule-list {schedule} --description {desc}', + checks=[ + JMESPathCheck('name', 'default'), + JMESPathCheck('description', '{desc}'), + JMESPathCheck('scheduleList[0].startDay', 'Friday'), + JMESPathCheck('scheduleList[0].startTime', '10:00'), + JMESPathCheck('scheduleList[0].stopDay', 'Friday'), + JMESPathCheck('scheduleList[0].stopTime', '11:10'), + JMESPathCheck('timeZoneId', 'UTC')]) + + # test the update schedule - add item + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --add schedule_list {schedule_item}', + checks=[ + JMESPathCheck('name', 'default'), + JMESPathCheck('description', '{desc}'), + JMESPathCheck('scheduleList[1].startDay', 'Monday'), + JMESPathCheck('scheduleList[1].startTime', '10:00'), + JMESPathCheck('scheduleList[1].stopDay', 'Monday'), + JMESPathCheck('scheduleList[1].stopTime', '11:10')]) + + # test the update schedule - overwrite schedule + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --schedule-list {schedule}', + checks=[ + JMESPathCheck('scheduleList[0].startDay', 'Friday'), + JMESPathCheck('scheduleList[0].startTime', '10:00'), + JMESPathCheck('scheduleList[0].stopDay', 'Friday'), + JMESPathCheck('scheduleList[0].stopTime', '11:10')]) + + # test the show schedule + self.cmd('az sql mi startstopschedule show -g {rg} --mi {mi} --subscription {subscription}', + checks=[ + JMESPathCheck('name', 'default'), + JMESPathCheck('description', '{desc}'), + JMESPathCheck('scheduleList[0].startDay', 'Friday'), + JMESPathCheck('scheduleList[0].startTime', '10:00'), + JMESPathCheck('scheduleList[0].stopDay', 'Friday'), + JMESPathCheck('scheduleList[0].stopTime', '11:10')]) + + # test the list schedule + self.cmd('az sql mi startstopschedule list -g {rg} --mi {mi} --subscription {subscription}', + checks=[ + JMESPathCheck('name', 'default'), + JMESPathCheck('description', '{desc}'), + JMESPathCheck('[0].scheduleList[0].startDay', 'Friday'), + JMESPathCheck('[0].scheduleList[0].startTime', '10:00'), + JMESPathCheck('[0].scheduleList[0].stopDay', 'Friday'), + JMESPathCheck('[0].scheduleList[0].stopTime', '11:10')]) + + # test the delete schedule + self.cmd('az sql mi startstopschedule delete -g {rg} --mi {mi} --subscription {subscription} --yes') + class SqlManagedInstanceBackupStorageRedundancyTest(ScenarioTest): bsr_geo = "Geo" From 9e8d1ae87a4247d1efa10e2ad9dcc429f266abfd Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Mon, 24 Jul 2023 14:55:51 +0200 Subject: [PATCH 09/11] fixing examples, adding tests --- .../sql/mi/startstopschedule/_create.py | 4 +- .../sql/mi/startstopschedule/_update.py | 2 +- .../test_sql_mi_scheduledstartstop_mgmt.yaml | 435 +++++ .../test_sql_mi_startstop_mgmt.yaml | 1712 +++++++++++++++++ .../sql/tests/latest/test_sql_commands.py | 40 +- 5 files changed, 2171 insertions(+), 22 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py index 79de1195f20..b49cc225214 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py @@ -17,8 +17,8 @@ class Create(AAZCommand): """Create the managed instance's Start/Stop schedule. - :example: Remove schedule items to the managed instance's start stop schedule. - az sql mi startstopschedule create --mi miName -g resourceGroup --subscription subscriptionId--schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + :example: Create schedule for managed instance. + az sql mi startstopschedule create --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py index 6ff5894f3d7..9e3d1a42759 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py @@ -22,7 +22,7 @@ class Update(AAZCommand): az sql mi startstopschedule update --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" :example: Add schedule items to the managed instance's start stop schedule. az sql mi startstopschedule update --ids resourceId --add schedule_list "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}" - :example: Remove schedule items to the managed instance's start stop schedule. + :example: Remove schedule items from the managed instance's start stop schedule. az sql mi startstopschedule update --ids resourceId --remove schedule_list index(0 based) """ diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml new file mode 100644 index 00000000000..0f31574c875 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml @@ -0,0 +1,435 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 azsdk-python-mgmt-sql/4.0.0b10 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm?api-version=2022-08-01-preview + response: + body: + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1378' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "test description", "scheduleList": [{"startDay": + "Friday", "startTime": "10:00 AM", "stopDay": "Friday", "stopTime": "11:10 AM"}], + "timeZoneId": "UTC"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule create + Connection: + - keep-alive + Content-Length: + - '184' + Content-Type: + - application/json + ParameterSetName: + - -g --mi --subscription --schedule-list --description + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule update + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription --add + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "test description", "scheduleList": [{"startDay": + "Friday", "startTime": "10:00", "stopDay": "Friday", "stopTime": "11:10"}, {"startDay": + "Monday", "startTime": "10:00 AM", "stopDay": "Monday", "stopTime": "11:10 AM"}], + "timeZoneId": "UTC"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule update + Connection: + - keep-alive + Content-Length: + - '272' + Content-Type: + - application/json + ParameterSetName: + - -g --mi --subscription --add + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"},{"startDay":"Monday","startTime":"10:00","stopDay":"Monday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '618' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule update + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription --schedule-list + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"},{"startDay":"Monday","startTime":"10:00","stopDay":"Monday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '618' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "test description", "scheduleList": [{"startDay": + "Friday", "startTime": "10:00 AM", "stopDay": "Friday", "stopTime": "11:10 AM"}], + "timeZoneId": "UTC"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule update + Connection: + - keep-alive + Content-Length: + - '184' + Content-Type: + - application/json + ParameterSetName: + - -g --mi --subscription --schedule-list + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule show + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}' + headers: + cache-control: + - no-cache + content-length: + - '538' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule list + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules?api-version=2022-11-01-preview + response: + body: + string: '{"value":[{"properties":{"description":"test description","timeZoneId":"UTC","scheduleList":[{"startDay":"Friday","startTime":"10:00","stopDay":"Friday","stopTime":"11:10"}],"nextRunAction":"Start","nextExecutionTime":"2023-07-28T10:00:00"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default","name":"default","type":"Microsoft.Sql/managedInstances/startStopSchedules"}]}' + headers: + cache-control: + - no-cache + content-length: + - '550' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 12:55:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi startstopschedule delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --mi --subscription --yes + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/startStopSchedules/default?api-version=2022-11-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 24 Jul 2023 12:55:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml new file mode 100644 index 00000000000..00df25871fb --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml @@ -0,0 +1,1712 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.50.0 azsdk-python-mgmt-sql/4.0.0b10 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm?api-version=2022-08-01-preview + response: + body: + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1378' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi stop + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/stop?api-version=2022-11-01-preview + response: + body: + string: '{"operation":"StopManagedServer","startTime":"2023-07-24T11:29:37.567Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + cache-control: + - no-cache + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi stop + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + response: + body: + string: '{"name":"be7db3f5-a2f3-453b-acd4-ba3d27793498","status":"InProgress","startTime":"2023-07-24T11:29:37.567Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi stop + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + response: + body: + string: '{"name":"be7db3f5-a2f3-453b-acd4-ba3d27793498","status":"Succeeded","startTime":"2023-07-24T11:29:37.567Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi stop + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + response: + body: + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Stopped","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1194' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/start?api-version=2022-11-01-preview + response: + body: + string: '{"operation":"StartManagedServer","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + cache-control: + - no-cache + content-length: + - '72' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:54 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:29:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:30:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:30:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:30:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:30:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:31:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:31:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:31:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:31:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:32:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:32:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:32:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:32:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:33:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:33:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:33:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:33:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:34:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:34:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:34:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:35:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:35:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:35:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:35:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:36:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:36:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:36:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:36:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '107' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:37:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"Succeeded","startTime":"2023-07-24T11:29:55.46Z"}' + headers: + cache-control: + - no-cache + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:37:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi --subscription + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + response: + body: + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + headers: + cache-control: + - no-cache + content-length: + - '1192' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 24 Jul 2023 11:37:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index 7db14fb44ff..85754627699 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -5262,14 +5262,15 @@ def test_sql_managed_instance_mgmt(self, mi, rg): class SqlManagedInstanceStartStopMgmtScenarioTest(ScenarioTest): @AllowLargeResponse() - @ManagedInstancePreparer(parameter_name = 'mi', vnet_name='vnet-managed-instance-v2') - def test_sql_mi_startstop_mgmt(self, mi, rg): + def test_sql_mi_startstop_mgmt(self): + rg = 'CustomerExperienceTeam_RG' + mi = 'clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm' self.kwargs.update({ 'rg': rg, 'mi': mi, 'subscription': ManagedInstancePreparer.subscription_id, }) - # check if test MI got created + # check managed instance self.cmd('sql mi show -g {rg} -n {mi}', checks=[ JMESPathCheck('name', mi), @@ -5285,18 +5286,22 @@ def test_sql_mi_startstop_mgmt(self, mi, rg): self.cmd('sql mi start -g {rg} --mi {mi} --subscription {subscription}', checks=[ JMESPathCheck('name', mi), - JMESPathCheck('state', 'Online')]) + JMESPathCheck('state', 'Ready')]) @AllowLargeResponse() - @ManagedInstancePreparer(parameter_name = 'mi', vnet_name='vnet-managed-instance-v2') - def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): + def test_sql_mi_scheduledstartstop_mgmt(self): + rg = 'CustomerExperienceTeam_RG' + mi = 'clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm' + schedule = "[{'startDay':'Friday','startTime':'10:00 AM','stopDay':'Friday','stopTime':'11:10 AM'}]" + schedule_item = "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'11:10 AM'}" + description = "test description" self.kwargs.update({ 'rg': rg, 'mi': mi, 'subscription': ManagedInstancePreparer.subscription_id, - 'schedule': "[{'startDay':'Friday','startTime':'10:00 AM','stopDay':'Friday','stopTime':'11:10 AM'}]", - 'desc': "test description", - 'schedule_item': "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'11:10 AM'}", + 'schedule': schedule, + 'desc': description, + 'schedule_item': schedule_item, }) # check if test MI got created self.cmd('sql mi show -g {rg} -n {mi}', @@ -5305,10 +5310,10 @@ def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): JMESPathCheck('resourceGroup', rg)]) # test the create schedule - self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --subscription {subscription} --schedule-list {schedule} --description {desc}', + self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --subscription {subscription} --schedule-list \"{schedule}\" --description \"{desc}\"', checks=[ JMESPathCheck('name', 'default'), - JMESPathCheck('description', '{desc}'), + JMESPathCheck('description', description), JMESPathCheck('scheduleList[0].startDay', 'Friday'), JMESPathCheck('scheduleList[0].startTime', '10:00'), JMESPathCheck('scheduleList[0].stopDay', 'Friday'), @@ -5316,17 +5321,16 @@ def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): JMESPathCheck('timeZoneId', 'UTC')]) # test the update schedule - add item - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --add schedule_list {schedule_item}', + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --add schedule_list \"{schedule_item}\"', checks=[ - JMESPathCheck('name', 'default'), - JMESPathCheck('description', '{desc}'), + JMESPathCheck('description', description), JMESPathCheck('scheduleList[1].startDay', 'Monday'), JMESPathCheck('scheduleList[1].startTime', '10:00'), JMESPathCheck('scheduleList[1].stopDay', 'Monday'), JMESPathCheck('scheduleList[1].stopTime', '11:10')]) # test the update schedule - overwrite schedule - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --schedule-list {schedule}', + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --schedule-list \"{schedule}\"', checks=[ JMESPathCheck('scheduleList[0].startDay', 'Friday'), JMESPathCheck('scheduleList[0].startTime', '10:00'), @@ -5336,8 +5340,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): # test the show schedule self.cmd('az sql mi startstopschedule show -g {rg} --mi {mi} --subscription {subscription}', checks=[ - JMESPathCheck('name', 'default'), - JMESPathCheck('description', '{desc}'), + JMESPathCheck('description', description), JMESPathCheck('scheduleList[0].startDay', 'Friday'), JMESPathCheck('scheduleList[0].startTime', '10:00'), JMESPathCheck('scheduleList[0].stopDay', 'Friday'), @@ -5346,8 +5349,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self, mi, rg): # test the list schedule self.cmd('az sql mi startstopschedule list -g {rg} --mi {mi} --subscription {subscription}', checks=[ - JMESPathCheck('name', 'default'), - JMESPathCheck('description', '{desc}'), + JMESPathCheck('[0].description', description), JMESPathCheck('[0].scheduleList[0].startDay', 'Friday'), JMESPathCheck('[0].scheduleList[0].startTime', '10:00'), JMESPathCheck('[0].scheduleList[0].stopDay', 'Friday'), From c69fb487dfdf942babde8eed4a94e1f1703b9e7e Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Mon, 24 Jul 2023 16:05:34 +0200 Subject: [PATCH 10/11] test fix --- .../test_sql_mi_scheduledstartstop_mgmt.yaml | 38 +- .../test_sql_mi_startstop_mgmt.yaml | 710 +++--------------- .../sql/tests/latest/test_sql_commands.py | 18 +- 3 files changed, 152 insertions(+), 614 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml index 0f31574c875..9e997f2ffe2 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:00 GMT + - Mon, 24 Jul 2023 13:54:37 GMT expires: - '-1' pragma: @@ -63,7 +63,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --mi --subscription --schedule-list --description + - -g --mi --schedule-list --description User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT @@ -79,7 +79,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:01 GMT + - Mon, 24 Jul 2023 13:54:38 GMT expires: - '-1' pragma: @@ -107,7 +107,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription --add + - -g --mi --add User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET @@ -123,7 +123,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:02 GMT + - Mon, 24 Jul 2023 13:54:39 GMT expires: - '-1' pragma: @@ -160,7 +160,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --mi --subscription --add + - -g --mi --add User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:03 GMT + - Mon, 24 Jul 2023 13:54:39 GMT expires: - '-1' pragma: @@ -192,7 +192,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -208,7 +208,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription --schedule-list + - -g --mi --schedule-list User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET @@ -224,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:04 GMT + - Mon, 24 Jul 2023 13:54:41 GMT expires: - '-1' pragma: @@ -260,7 +260,7 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --mi --subscription --schedule-list + - -g --mi --schedule-list User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: PUT @@ -276,7 +276,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:05 GMT + - Mon, 24 Jul 2023 13:54:41 GMT expires: - '-1' pragma: @@ -292,7 +292,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -308,7 +308,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET @@ -324,7 +324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:06 GMT + - Mon, 24 Jul 2023 13:54:43 GMT expires: - '-1' pragma: @@ -354,7 +354,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET @@ -370,7 +370,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 12:55:07 GMT + - Mon, 24 Jul 2023 13:54:44 GMT expires: - '-1' pragma: @@ -402,7 +402,7 @@ interactions: Content-Length: - '0' ParameterSetName: - - -g --mi --subscription --yes + - -g --mi --yes User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: DELETE @@ -416,7 +416,7 @@ interactions: content-length: - '0' date: - - Mon, 24 Jul 2023 12:55:08 GMT + - Mon, 24 Jul 2023 13:54:45 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml index 00df25871fb..f4c1e444a96 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:36 GMT + - Mon, 24 Jul 2023 13:56:26 GMT expires: - '-1' pragma: @@ -59,17 +59,17 @@ interactions: Content-Length: - '0' ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/stop?api-version=2022-11-01-preview response: body: - string: '{"operation":"StopManagedServer","startTime":"2023-07-24T11:29:37.567Z"}' + string: '{"operation":"StopManagedServer","startTime":"2023-07-24T13:56:27.357Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview cache-control: - no-cache content-length: @@ -77,11 +77,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:37 GMT + - Mon, 24 Jul 2023 13:56:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview pragma: - no-cache server: @@ -107,14 +107,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview response: body: - string: '{"name":"be7db3f5-a2f3-453b-acd4-ba3d27793498","status":"InProgress","startTime":"2023-07-24T11:29:37.567Z"}' + string: '{"name":"2f4a8ef1-b11c-4997-9a54-54ba3c1ec048","status":"InProgress","startTime":"2023-07-24T13:56:27.357Z"}' headers: cache-control: - no-cache @@ -123,7 +123,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:37 GMT + - Mon, 24 Jul 2023 13:56:27 GMT expires: - '-1' pragma: @@ -153,14 +153,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview response: body: - string: '{"name":"be7db3f5-a2f3-453b-acd4-ba3d27793498","status":"Succeeded","startTime":"2023-07-24T11:29:37.567Z"}' + string: '{"name":"2f4a8ef1-b11c-4997-9a54-54ba3c1ec048","status":"Succeeded","startTime":"2023-07-24T13:56:27.357Z"}' headers: cache-control: - no-cache @@ -169,7 +169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:52 GMT + - Mon, 24 Jul 2023 13:56:43 GMT expires: - '-1' pragma: @@ -199,11 +199,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/be7db3f5-a2f3-453b-acd4-ba3d27793498?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview response: body: string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Stopped","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' @@ -215,7 +215,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:53 GMT + - Mon, 24 Jul 2023 13:56:43 GMT expires: - '-1' pragma: @@ -247,29 +247,29 @@ interactions: Content-Length: - '0' ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/start?api-version=2022-11-01-preview response: body: - string: '{"operation":"StartManagedServer","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"operation":"StartManagedServer","startTime":"2023-07-24T13:56:44.563Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview cache-control: - no-cache content-length: - - '72' + - '73' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:29:54 GMT + - Mon, 24 Jul 2023 13:56:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview pragma: - no-cache server: @@ -295,437 +295,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:29:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:30:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:30:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:30:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:30:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:31:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:31:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:31:41 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:31:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:32:12 GMT + - Mon, 24 Jul 2023 13:56:44 GMT expires: - '-1' pragma: @@ -755,23 +341,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:32:27 GMT + - Mon, 24 Jul 2023 13:56:59 GMT expires: - '-1' pragma: @@ -801,23 +387,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:32:42 GMT + - Mon, 24 Jul 2023 13:57:15 GMT expires: - '-1' pragma: @@ -847,23 +433,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:32:58 GMT + - Mon, 24 Jul 2023 13:57:30 GMT expires: - '-1' pragma: @@ -893,23 +479,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:33:13 GMT + - Mon, 24 Jul 2023 13:57:45 GMT expires: - '-1' pragma: @@ -939,23 +525,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:33:28 GMT + - Mon, 24 Jul 2023 13:58:01 GMT expires: - '-1' pragma: @@ -985,23 +571,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:33:43 GMT + - Mon, 24 Jul 2023 13:58:16 GMT expires: - '-1' pragma: @@ -1031,23 +617,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:33:59 GMT + - Mon, 24 Jul 2023 13:58:30 GMT expires: - '-1' pragma: @@ -1077,23 +663,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:34:14 GMT + - Mon, 24 Jul 2023 13:58:45 GMT expires: - '-1' pragma: @@ -1123,23 +709,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:34:28 GMT + - Mon, 24 Jul 2023 13:59:01 GMT expires: - '-1' pragma: @@ -1169,23 +755,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:34:45 GMT + - Mon, 24 Jul 2023 13:59:16 GMT expires: - '-1' pragma: @@ -1215,23 +801,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:35:00 GMT + - Mon, 24 Jul 2023 13:59:31 GMT expires: - '-1' pragma: @@ -1261,23 +847,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:35:15 GMT + - Mon, 24 Jul 2023 13:59:47 GMT expires: - '-1' pragma: @@ -1307,23 +893,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:35:30 GMT + - Mon, 24 Jul 2023 14:00:02 GMT expires: - '-1' pragma: @@ -1353,23 +939,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:35:46 GMT + - Mon, 24 Jul 2023 14:00:17 GMT expires: - '-1' pragma: @@ -1399,23 +985,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:36:01 GMT + - Mon, 24 Jul 2023 14:00:32 GMT expires: - '-1' pragma: @@ -1445,23 +1031,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:36:16 GMT + - Mon, 24 Jul 2023 14:00:48 GMT expires: - '-1' pragma: @@ -1491,23 +1077,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:36:31 GMT + - Mon, 24 Jul 2023 14:01:03 GMT expires: - '-1' pragma: @@ -1537,23 +1123,23 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:36:46 GMT + - Mon, 24 Jul 2023 14:01:18 GMT expires: - '-1' pragma: @@ -1583,14 +1169,14 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"InProgress","startTime":"2023-07-24T11:29:55.46Z"}' + string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"Succeeded","startTime":"2023-07-24T13:56:44.563Z"}' headers: cache-control: - no-cache @@ -1599,53 +1185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:37:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sql mi start - Connection: - - keep-alive - ParameterSetName: - - -g --mi --subscription - User-Agent: - - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview - response: - body: - string: '{"name":"b01ec862-6a00-4787-920e-a53b0ccb6245","status":"Succeeded","startTime":"2023-07-24T11:29:55.46Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 24 Jul 2023 11:37:17 GMT + - Mon, 24 Jul 2023 14:01:33 GMT expires: - '-1' pragma: @@ -1675,11 +1215,11 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --mi --subscription + - -g --mi User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/b01ec862-6a00-4787-920e-a53b0ccb6245?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview response: body: string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' @@ -1691,7 +1231,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 11:37:17 GMT + - Mon, 24 Jul 2023 14:01:33 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index 85754627699..48b4f09f9c8 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -5268,7 +5268,6 @@ def test_sql_mi_startstop_mgmt(self): self.kwargs.update({ 'rg': rg, 'mi': mi, - 'subscription': ManagedInstancePreparer.subscription_id, }) # check managed instance self.cmd('sql mi show -g {rg} -n {mi}', @@ -5277,13 +5276,13 @@ def test_sql_mi_startstop_mgmt(self): JMESPathCheck('resourceGroup', rg)]) # test the manual stop command - self.cmd('sql mi stop -g {rg} --mi {mi} --subscription {subscription}', + self.cmd('sql mi stop -g {rg} --mi {mi}', checks=[ JMESPathCheck('name', mi), JMESPathCheck('state', 'Stopped')]) # test the manual start command - self.cmd('sql mi start -g {rg} --mi {mi} --subscription {subscription}', + self.cmd('sql mi start -g {rg} --mi {mi}', checks=[ JMESPathCheck('name', mi), JMESPathCheck('state', 'Ready')]) @@ -5298,7 +5297,6 @@ def test_sql_mi_scheduledstartstop_mgmt(self): self.kwargs.update({ 'rg': rg, 'mi': mi, - 'subscription': ManagedInstancePreparer.subscription_id, 'schedule': schedule, 'desc': description, 'schedule_item': schedule_item, @@ -5310,7 +5308,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('resourceGroup', rg)]) # test the create schedule - self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --subscription {subscription} --schedule-list \"{schedule}\" --description \"{desc}\"', + self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --schedule-list \"{schedule}\" --description \"{desc}\"', checks=[ JMESPathCheck('name', 'default'), JMESPathCheck('description', description), @@ -5321,7 +5319,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('timeZoneId', 'UTC')]) # test the update schedule - add item - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --add schedule_list \"{schedule_item}\"', + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --add schedule_list \"{schedule_item}\"', checks=[ JMESPathCheck('description', description), JMESPathCheck('scheduleList[1].startDay', 'Monday'), @@ -5330,7 +5328,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[1].stopTime', '11:10')]) # test the update schedule - overwrite schedule - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --subscription {subscription} --schedule-list \"{schedule}\"', + self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --schedule-list \"{schedule}\"', checks=[ JMESPathCheck('scheduleList[0].startDay', 'Friday'), JMESPathCheck('scheduleList[0].startTime', '10:00'), @@ -5338,7 +5336,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[0].stopTime', '11:10')]) # test the show schedule - self.cmd('az sql mi startstopschedule show -g {rg} --mi {mi} --subscription {subscription}', + self.cmd('az sql mi startstopschedule show -g {rg} --mi {mi}', checks=[ JMESPathCheck('description', description), JMESPathCheck('scheduleList[0].startDay', 'Friday'), @@ -5347,7 +5345,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[0].stopTime', '11:10')]) # test the list schedule - self.cmd('az sql mi startstopschedule list -g {rg} --mi {mi} --subscription {subscription}', + self.cmd('az sql mi startstopschedule list -g {rg} --mi {mi}', checks=[ JMESPathCheck('[0].description', description), JMESPathCheck('[0].scheduleList[0].startDay', 'Friday'), @@ -5356,7 +5354,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('[0].scheduleList[0].stopTime', '11:10')]) # test the delete schedule - self.cmd('az sql mi startstopschedule delete -g {rg} --mi {mi} --subscription {subscription} --yes') + self.cmd('az sql mi startstopschedule delete -g {rg} --mi {mi} --yes') class SqlManagedInstanceBackupStorageRedundancyTest(ScenarioTest): bsr_geo = "Geo" From 8e6882b5eb31a557028f5df19bb0e8bf072a9d4d Mon Sep 17 00:00:00 2001 From: Renea Moso Date: Tue, 25 Jul 2023 09:40:36 +0200 Subject: [PATCH 11/11] addressing comments --- .../sql/aaz/latest/sql/mi/_start.py | 2 +- .../sql/aaz/latest/sql/mi/_stop.py | 2 +- .../sql/mi/startstopschedule/__cmd_group.py | 2 +- .../sql/mi/startstopschedule/_create.py | 4 +- .../sql/mi/startstopschedule/_delete.py | 6 +- .../latest/sql/mi/startstopschedule/_list.py | 6 +- .../latest/sql/mi/startstopschedule/_show.py | 6 +- .../sql/mi/startstopschedule/_update.py | 10 +- .../test_sql_mi_scheduledstartstop_mgmt.yaml | 50 +- .../test_sql_mi_startstop_mgmt.yaml | 446 ++++++++++++++---- .../sql/tests/latest/test_sql_commands.py | 12 +- 11 files changed, 413 insertions(+), 133 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py index a47fa5ca0d6..262852c6dba 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_start.py @@ -15,7 +15,7 @@ "sql mi start", ) class Start(AAZCommand): - """Starts the managed instance. + """Start the managed instance. :example: Start a managed instance. az sql mi start --ids resourceId diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py index 0ca5db63407..e8182ec3220 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/_stop.py @@ -15,7 +15,7 @@ "sql mi stop", ) class Stop(AAZCommand): - """Stops the managed instance. + """Stop the managed instance. :example: Stop a managed instance. az sql mi stop --ids resourceId diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py index 8476da71d7d..228bdfcb9cf 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/__cmd_group.py @@ -12,7 +12,7 @@ @register_command_group( - "sql mi startstopschedule", + "sql mi start-stop-schedule", ) class __CMDGroup(AAZCommandGroup): """Manage the managed instance's start stop schedule. diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py index b49cc225214..29b3a82178a 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_create.py @@ -12,13 +12,13 @@ @register_command( - "sql mi startstopschedule create", + "sql mi start-stop-schedule create", ) class Create(AAZCommand): """Create the managed instance's Start/Stop schedule. :example: Create schedule for managed instance. - az sql mi startstopschedule create --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + az sql mi start-stop-schedule create --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py index 90b64f7a480..f19e6e6360d 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_delete.py @@ -12,15 +12,15 @@ @register_command( - "sql mi startstopschedule delete", + "sql mi start-stop-schedule delete", confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): """Delete the managed instance's Start/Stop schedule. :example: Delete a managed instance start stop schedule. - az sql mi startstopschedule delete --ids resourceId - az sql mi startstopschedule delete --mi miName -g resourceGroup --subscription subscriptionId + az sql mi start-stop-schedule delete --ids resourceId + az sql mi start-stop-schedule delete --mi miName -g resourceGroup --subscription subscriptionId """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py index f284bbfc17c..aa0c075d351 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_list.py @@ -12,14 +12,14 @@ @register_command( - "sql mi startstopschedule list", + "sql mi start-stop-schedule list", ) class List(AAZCommand): """List the managed instance's Start/Stop schedules. :example: Lists the managed instance's start stop schedule. - az sql mi startstopschedule list --ids resourceId - az sql mi startstopschedule list --mi miName -g resourceGroup --subscription subscriptionId + az sql mi start-stop-schedule list --ids resourceId + az sql mi start-stop-schedule list --mi miName -g resourceGroup --subscription subscriptionId """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py index 9febd700dd0..593b3b1e7be 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_show.py @@ -12,14 +12,14 @@ @register_command( - "sql mi startstopschedule show", + "sql mi start-stop-schedule show", ) class Show(AAZCommand): """Get the managed instance's Start/Stop schedule. :example: Get the managed instance's start stop schedule. - az sql mi startstopschedule show --ids resourceId - az sql mi startstopschedule show --mi miName -g resourceGroup --subscription subscriptionId + az sql mi start-stop-schedule show --ids resourceId + az sql mi start-stop-schedule show --mi miName -g resourceGroup --subscription subscriptionId """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py index 9e3d1a42759..d34becb5f02 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py +++ b/src/azure-cli/azure/cli/command_modules/sql/aaz/latest/sql/mi/startstopschedule/_update.py @@ -12,18 +12,18 @@ @register_command( - "sql mi startstopschedule update", + "sql mi start-stop-schedule update", ) class Update(AAZCommand): """Update the managed instance's Start/Stop schedule. :example: Update (override) the managed instance's start stop schedule. - az sql mi startstopschedule update --ids resourceId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" - az sql mi startstopschedule update --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + az sql mi start-stop-schedule update --ids resourceId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" + az sql mi start-stop-schedule update --mi miName -g resourceGroup --subscription subscriptionId --schedule-list "[{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}]" :example: Add schedule items to the managed instance's start stop schedule. - az sql mi startstopschedule update --ids resourceId --add schedule_list "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}" + az sql mi start-stop-schedule update --ids resourceId --add schedule_list "{'startDay':'Monday','startTime':'10:00 AM','stopDay':'Monday','stopTime':'12:00 AM'}" :example: Remove schedule items from the managed instance's start stop schedule. - az sql mi startstopschedule update --ids resourceId --remove schedule_list index(0 based) + az sql mi start-stop-schedule update --ids resourceId --remove schedule_list index(0 based) """ _aaz_info = { diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml index 9e997f2ffe2..eb664992784 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_scheduledstartstop_mgmt.yaml @@ -18,16 +18,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm?api-version=2022-08-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"do-not-delete":"true","cli-test":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache content-length: - - '1378' + - '1418' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:37 GMT + - Tue, 25 Jul 2023 07:39:42 GMT expires: - '-1' pragma: @@ -55,7 +55,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule create + - sql mi start-stop-schedule create Connection: - keep-alive Content-Length: @@ -79,7 +79,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:38 GMT + - Tue, 25 Jul 2023 07:39:43 GMT expires: - '-1' pragma: @@ -88,13 +88,17 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -103,7 +107,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule update + - sql mi start-stop-schedule update Connection: - keep-alive ParameterSetName: @@ -123,7 +127,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:39 GMT + - Tue, 25 Jul 2023 07:39:45 GMT expires: - '-1' pragma: @@ -152,7 +156,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule update + - sql mi start-stop-schedule update Connection: - keep-alive Content-Length: @@ -176,7 +180,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:39 GMT + - Tue, 25 Jul 2023 07:39:45 GMT expires: - '-1' pragma: @@ -192,7 +196,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -204,7 +208,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule update + - sql mi start-stop-schedule update Connection: - keep-alive ParameterSetName: @@ -224,7 +228,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:41 GMT + - Tue, 25 Jul 2023 07:39:46 GMT expires: - '-1' pragma: @@ -252,7 +256,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule update + - sql mi start-stop-schedule update Connection: - keep-alive Content-Length: @@ -276,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:41 GMT + - Tue, 25 Jul 2023 07:39:47 GMT expires: - '-1' pragma: @@ -292,7 +296,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -304,7 +308,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule show + - sql mi start-stop-schedule show Connection: - keep-alive ParameterSetName: @@ -324,7 +328,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:43 GMT + - Tue, 25 Jul 2023 07:39:49 GMT expires: - '-1' pragma: @@ -350,7 +354,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule list + - sql mi start-stop-schedule list Connection: - keep-alive ParameterSetName: @@ -370,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:54:44 GMT + - Tue, 25 Jul 2023 07:39:50 GMT expires: - '-1' pragma: @@ -396,7 +400,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - sql mi startstopschedule delete + - sql mi start-stop-schedule delete Connection: - keep-alive Content-Length: @@ -416,7 +420,7 @@ interactions: content-length: - '0' date: - - Mon, 24 Jul 2023 13:54:45 GMT + - Tue, 25 Jul 2023 07:39:50 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml index f4c1e444a96..a801d6746d4 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_mi_startstop_mgmt.yaml @@ -18,16 +18,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm?api-version=2022-08-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","maintenanceConfigurationId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default","privateEndpointConnections":[],"minimalTlsVersion":"None","currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"do-not-delete":"true","cli-test":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache content-length: - - '1378' + - '1418' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:26 GMT + - Tue, 25 Jul 2023 07:30:53 GMT expires: - '-1' pragma: @@ -66,10 +66,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/stop?api-version=2022-11-01-preview response: body: - string: '{"operation":"StopManagedServer","startTime":"2023-07-24T13:56:27.357Z"}' + string: '{"operation":"StopManagedServer","startTime":"2023-07-25T07:30:55.367Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/89b1ef2f-6855-4f96-b92c-c391c0aa7537?api-version=2022-11-01-preview cache-control: - no-cache content-length: @@ -77,11 +77,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:26 GMT + - Tue, 25 Jul 2023 07:30:54 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/89b1ef2f-6855-4f96-b92c-c391c0aa7537?api-version=2022-11-01-preview pragma: - no-cache server: @@ -111,10 +111,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/89b1ef2f-6855-4f96-b92c-c391c0aa7537?api-version=2022-11-01-preview response: body: - string: '{"name":"2f4a8ef1-b11c-4997-9a54-54ba3c1ec048","status":"InProgress","startTime":"2023-07-24T13:56:27.357Z"}' + string: '{"name":"89b1ef2f-6855-4f96-b92c-c391c0aa7537","status":"InProgress","startTime":"2023-07-25T07:30:55.367Z"}' headers: cache-control: - no-cache @@ -123,7 +123,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:27 GMT + - Tue, 25 Jul 2023 07:30:55 GMT expires: - '-1' pragma: @@ -157,10 +157,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceAzureAsyncOperation/89b1ef2f-6855-4f96-b92c-c391c0aa7537?api-version=2022-11-01-preview response: body: - string: '{"name":"2f4a8ef1-b11c-4997-9a54-54ba3c1ec048","status":"Succeeded","startTime":"2023-07-24T13:56:27.357Z"}' + string: '{"name":"89b1ef2f-6855-4f96-b92c-c391c0aa7537","status":"Succeeded","startTime":"2023-07-25T07:30:55.367Z"}' headers: cache-control: - no-cache @@ -169,7 +169,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:43 GMT + - Tue, 25 Jul 2023 07:31:10 GMT expires: - '-1' pragma: @@ -203,19 +203,19 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/2f4a8ef1-b11c-4997-9a54-54ba3c1ec048?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/stopManagedInstanceOperationResults/89b1ef2f-6855-4f96-b92c-c391c0aa7537?api-version=2022-11-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Stopped","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Stopped","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"do-not-delete":"true","cli-test":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache content-length: - - '1194' + - '1234' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:43 GMT + - Tue, 25 Jul 2023 07:31:10 GMT expires: - '-1' pragma: @@ -254,10 +254,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm/start?api-version=2022-11-01-preview response: body: - string: '{"operation":"StartManagedServer","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"operation":"StartManagedServer","startTime":"2023-07-25T07:31:13.007Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview cache-control: - no-cache content-length: @@ -265,11 +265,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:44 GMT + - Tue, 25 Jul 2023 07:31:12 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview pragma: - no-cache server: @@ -299,10 +299,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -311,7 +311,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:44 GMT + - Tue, 25 Jul 2023 07:31:12 GMT expires: - '-1' pragma: @@ -345,10 +345,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -357,7 +357,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:56:59 GMT + - Tue, 25 Jul 2023 07:31:28 GMT expires: - '-1' pragma: @@ -391,10 +391,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -403,7 +403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:57:15 GMT + - Tue, 25 Jul 2023 07:31:43 GMT expires: - '-1' pragma: @@ -437,10 +437,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -449,7 +449,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:57:30 GMT + - Tue, 25 Jul 2023 07:31:58 GMT expires: - '-1' pragma: @@ -483,10 +483,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -495,7 +495,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:57:45 GMT + - Tue, 25 Jul 2023 07:32:13 GMT expires: - '-1' pragma: @@ -529,10 +529,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -541,7 +541,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:58:01 GMT + - Tue, 25 Jul 2023 07:32:28 GMT expires: - '-1' pragma: @@ -575,10 +575,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -587,7 +587,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:58:16 GMT + - Tue, 25 Jul 2023 07:32:44 GMT expires: - '-1' pragma: @@ -621,10 +621,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -633,7 +633,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:58:30 GMT + - Tue, 25 Jul 2023 07:32:59 GMT expires: - '-1' pragma: @@ -667,10 +667,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -679,7 +679,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:58:45 GMT + - Tue, 25 Jul 2023 07:33:14 GMT expires: - '-1' pragma: @@ -713,10 +713,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -725,7 +725,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:59:01 GMT + - Tue, 25 Jul 2023 07:33:30 GMT expires: - '-1' pragma: @@ -759,10 +759,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -771,7 +771,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:59:16 GMT + - Tue, 25 Jul 2023 07:33:44 GMT expires: - '-1' pragma: @@ -805,10 +805,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -817,7 +817,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:59:31 GMT + - Tue, 25 Jul 2023 07:34:00 GMT expires: - '-1' pragma: @@ -851,10 +851,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -863,7 +863,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 13:59:47 GMT + - Tue, 25 Jul 2023 07:34:15 GMT expires: - '-1' pragma: @@ -897,10 +897,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -909,7 +909,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:00:02 GMT + - Tue, 25 Jul 2023 07:34:30 GMT expires: - '-1' pragma: @@ -943,10 +943,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -955,7 +955,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:00:17 GMT + - Tue, 25 Jul 2023 07:34:45 GMT expires: - '-1' pragma: @@ -989,10 +989,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -1001,7 +1001,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:00:32 GMT + - Tue, 25 Jul 2023 07:35:01 GMT expires: - '-1' pragma: @@ -1035,10 +1035,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -1047,7 +1047,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:00:48 GMT + - Tue, 25 Jul 2023 07:35:16 GMT expires: - '-1' pragma: @@ -1081,10 +1081,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -1093,7 +1093,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:01:03 GMT + - Tue, 25 Jul 2023 07:35:31 GMT expires: - '-1' pragma: @@ -1127,10 +1127,10 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"InProgress","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -1139,7 +1139,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:01:18 GMT + - Tue, 25 Jul 2023 07:35:46 GMT expires: - '-1' pragma: @@ -1173,10 +1173,286 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"name":"71d167eb-256c-4bd8-9a3a-7471a6340d85","status":"Succeeded","startTime":"2023-07-24T13:56:44.563Z"}' + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:36:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:36:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:36:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:36:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:37:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"InProgress","startTime":"2023-07-25T07:31:13.007Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 25 Jul 2023 07:37:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sql mi start + Connection: + - keep-alive + ParameterSetName: + - -g --mi + User-Agent: + - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceAzureAsyncOperation/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview + response: + body: + string: '{"name":"66b39a71-745f-44f1-b6be-8f030cd0a05c","status":"Succeeded","startTime":"2023-07-25T07:31:13.007Z"}' headers: cache-control: - no-cache @@ -1185,7 +1461,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:01:33 GMT + - Tue, 25 Jul 2023 07:37:33 GMT expires: - '-1' pragma: @@ -1219,19 +1495,19 @@ interactions: User-Agent: - AZURECLI/2.50.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Windows-10-10.0.17763-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/71d167eb-256c-4bd8-9a3a-7471a6340d85?api-version=2022-11-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/locations/westcentralus/startManagedInstanceOperationResults/66b39a71-745f-44f1-b6be-8f030cd0a05c?api-version=2022-11-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":4},"properties":{"provisioningState":"Succeeded","fullyQualifiedDomainName":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm.e6076e7d5e5b.database.windows.net","administratorLogin":"admin123","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Network/virtualNetworks/vnet-managed-instance-v2/subnets/ManagedInstance","state":"Ready","licenseType":"LicenseIncluded","vCores":4,"storageSizeInGB":32,"collation":"Serbian_Cyrillic_100_CS_AS","dnsZone":"e6076e7d5e5b","publicDataEndpointEnabled":true,"proxyOverride":"Proxy","timezoneId":"UTC","privateEndpointConnections":[],"currentBackupStorageRedundancy":"Geo","requestedBackupStorageRedundancy":"Geo","zoneRedundant":false},"location":"westcentralus","tags":{"do-not-delete":"true","cli-test":"true"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CustomerExperienceTeam_RG/providers/Microsoft.Sql/managedInstances/clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","name":"clitestmilb5hsyvgolc22pa3zzf2urno3uwskko4us2mbcti2gebgawczstsm","type":"Microsoft.Sql/managedInstances"}' headers: cache-control: - no-cache content-length: - - '1192' + - '1232' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Jul 2023 14:01:33 GMT + - Tue, 25 Jul 2023 07:37:33 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py index 48b4f09f9c8..462d1e31412 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py +++ b/src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py @@ -5308,7 +5308,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('resourceGroup', rg)]) # test the create schedule - self.cmd('az sql mi startstopschedule create -g {rg} --mi {mi} --schedule-list \"{schedule}\" --description \"{desc}\"', + self.cmd('az sql mi start-stop-schedule create -g {rg} --mi {mi} --schedule-list \"{schedule}\" --description \"{desc}\"', checks=[ JMESPathCheck('name', 'default'), JMESPathCheck('description', description), @@ -5319,7 +5319,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('timeZoneId', 'UTC')]) # test the update schedule - add item - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --add schedule_list \"{schedule_item}\"', + self.cmd('az sql mi start-stop-schedule update -g {rg} --mi {mi} --add schedule_list \"{schedule_item}\"', checks=[ JMESPathCheck('description', description), JMESPathCheck('scheduleList[1].startDay', 'Monday'), @@ -5328,7 +5328,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[1].stopTime', '11:10')]) # test the update schedule - overwrite schedule - self.cmd('az sql mi startstopschedule update -g {rg} --mi {mi} --schedule-list \"{schedule}\"', + self.cmd('az sql mi start-stop-schedule update -g {rg} --mi {mi} --schedule-list \"{schedule}\"', checks=[ JMESPathCheck('scheduleList[0].startDay', 'Friday'), JMESPathCheck('scheduleList[0].startTime', '10:00'), @@ -5336,7 +5336,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[0].stopTime', '11:10')]) # test the show schedule - self.cmd('az sql mi startstopschedule show -g {rg} --mi {mi}', + self.cmd('az sql mi start-stop-schedule show -g {rg} --mi {mi}', checks=[ JMESPathCheck('description', description), JMESPathCheck('scheduleList[0].startDay', 'Friday'), @@ -5345,7 +5345,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('scheduleList[0].stopTime', '11:10')]) # test the list schedule - self.cmd('az sql mi startstopschedule list -g {rg} --mi {mi}', + self.cmd('az sql mi start-stop-schedule list -g {rg} --mi {mi}', checks=[ JMESPathCheck('[0].description', description), JMESPathCheck('[0].scheduleList[0].startDay', 'Friday'), @@ -5354,7 +5354,7 @@ def test_sql_mi_scheduledstartstop_mgmt(self): JMESPathCheck('[0].scheduleList[0].stopTime', '11:10')]) # test the delete schedule - self.cmd('az sql mi startstopschedule delete -g {rg} --mi {mi} --yes') + self.cmd('az sql mi start-stop-schedule delete -g {rg} --mi {mi} --yes') class SqlManagedInstanceBackupStorageRedundancyTest(ScenarioTest): bsr_geo = "Geo"