diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 10d00043b01..8290cf3f7fe 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -8,6 +8,7 @@ upcoming * 'az containerapp env dapr-component resiliency': Add support for Dapr Component Resiliency Circuit Breakers * 'az containerapp create/update/up': Don't compress jar/war/zip file before upload source code * 'az containerapp create/update/up': Update source to cloud builder to 20240124.1 +* 'az containerapp up': Fix registry not found error in subscription when registry server parameters are provided for ACR from another subscription * 'az containerapp env java-component': Support list Java components * 'az containerapp env java-component spring-cloud-config': Support create/update/show/delete Spring Cloud Config * 'az containerapp env java-component spring-cloud-eureka': Support create/update/show/delete Spring Cloud Eureka diff --git a/src/containerapp/azext_containerapp/_up_utils.py b/src/containerapp/azext_containerapp/_up_utils.py index 5dd000a3181..27e5b2e8262 100644 --- a/src/containerapp/azext_containerapp/_up_utils.py +++ b/src/containerapp/azext_containerapp/_up_utils.py @@ -1354,7 +1354,8 @@ def _set_up_defaults( env: "ContainerAppEnvironment", app: "ContainerApp", custom_location: "CustomLocation", - extension: "Extension" + extension: "Extension", + is_registry_server_params_set=None ): # If no RG passed in and a singular app exists with the same name, get its env and rg _get_app_env_and_group(cmd, name, resource_group, env, location, custom_location) @@ -1384,7 +1385,8 @@ def _set_up_defaults( _infer_existing_custom_location_or_extension(cmd, name, location, resource_group, env, custom_location, extension) - _get_acr_from_image(cmd, app) + if not is_registry_server_params_set: + _get_acr_from_image(cmd, app) # Try to get existed connected environment diff --git a/src/containerapp/azext_containerapp/custom.py b/src/containerapp/azext_containerapp/custom.py index 28014b99f04..ab3f6455741 100644 --- a/src/containerapp/azext_containerapp/custom.py +++ b/src/containerapp/azext_containerapp/custom.py @@ -190,7 +190,7 @@ def delete_weaviate_service(cmd, service_name, resource_group_name, no_wait=Fals def create_milvus_service(cmd, service_name, environment_name, resource_group_name, no_wait=False, - disable_warnings=True): + disable_warnings=True): return DevServiceUtils.create_service(cmd, service_name, environment_name, resource_group_name, no_wait, disable_warnings, DEV_MILVUS_IMAGE, DEV_MILVUS_SERVICE_TYPE, DEV_MILVUS_CONTAINER_NAME) @@ -1191,7 +1191,9 @@ def containerapp_up(cmd, env = ContainerAppEnvironment(cmd, environment, resource_group, location=location, logs_key=logs_key, logs_customer_id=logs_customer_id, custom_location_id=custom_location_id, connected_cluster_id=connected_cluster_id) app = ContainerApp(cmd, name, resource_group, None, image, env, target_port, registry_server, registry_user, registry_pass, env_vars, workload_profile_name, ingress) - _set_up_defaults(cmd, name, resource_group_name, logs_customer_id, location, resource_group, env, app, custom_location, extension) + # Check and see if registry username and passwords are specified. If so, set is_registry_server_params_set to True to use those creds. + is_registry_server_params_set = bool(registry_server and registry_user and registry_pass) + _set_up_defaults(cmd, name, resource_group_name, logs_customer_id, location, resource_group, env, app, custom_location, extension, is_registry_server_params_set) if app.check_exists(): if app.get()["properties"]["provisioningState"] == "InProgress": diff --git a/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml b/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml index bbf02b3066e..0c621d47ee1 100644 --- a/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml +++ b/src/containerapp/azext_containerapp/tests/latest/recordings/test_containerapp_up_on_arc_auto_install_extension_e2e.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster?api-version=2022-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","privateLinkState":"Disabled","azureHybridBenefit":"NotApplicable","agentPublicKeyCertificate":"MIICCgKCAgEAuYHv0yJ/x7IyhLLBOTsjiewYapDTXehXFmomuWH4YVYPxbvKPQLv+x9tTaN4QJwcwjSkuRGoE8ROuOOBYMhQzyNIgHV4VF6X1VhPqG6GpBZnfqVv+F8pDewJlETZlVtcvG1Xfk5/i81WgplNRrIXSHzffQ/nY9vjH05BfFi7ZLt89OkwQ5HIGD8f9xCKG7o/75cHXYS2+8wp7xK1k5moHr2w1+3wL31UfvEb6u1hyZzkLJPm7X0vTYH0argBci6s6bqca7x5oS2XOQo/7HXgGYqeJ92KroHJxL4t8J7h7AK9nNNfSFXq5IHKA81kjX2Ah5j/fIHMV0dqX7kUoG4JUQzDDRIsZcO9X651KowwEOP14fzTK+znMYcFdLSvYssQZD1NzoigjXimny8hfM4GvxobwdXHmCdAxA2VYhivmWCRiqaBBBUAeNuf4nHgjsUufPqIB8JwkhIjmuDKJVurDFyNRPKNqy5C/AMJ+B7zYmm97oMvv9wimBtSH7/XS4SuKtSi5ZC/PfQN18i9+saEh3IOm9GQcI+i5QV9PW5QYjxEt4EzbnRGywqJMgPf7a/BcfZ1TdMKWycaJ5+OypVfSs4Dk220EzboSq/+gnM2RLKDWge6oxM0BjY6DDR3LFG8dw5z9h9IwVkoqwC+h2pBMO++dT28WiAHJ7yEUkuc4/sCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","privateLinkState":"Disabled","azureHybridBenefit":"NotApplicable","agentPublicKeyCertificate":"abc123","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' headers: cache-control: - no-cache @@ -735,7 +735,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster?api-version=2021-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"MIICCgKCAgEAuYHv0yJ/x7IyhLLBOTsjiewYapDTXehXFmomuWH4YVYPxbvKPQLv+x9tTaN4QJwcwjSkuRGoE8ROuOOBYMhQzyNIgHV4VF6X1VhPqG6GpBZnfqVv+F8pDewJlETZlVtcvG1Xfk5/i81WgplNRrIXSHzffQ/nY9vjH05BfFi7ZLt89OkwQ5HIGD8f9xCKG7o/75cHXYS2+8wp7xK1k5moHr2w1+3wL31UfvEb6u1hyZzkLJPm7X0vTYH0argBci6s6bqca7x5oS2XOQo/7HXgGYqeJ92KroHJxL4t8J7h7AK9nNNfSFXq5IHKA81kjX2Ah5j/fIHMV0dqX7kUoG4JUQzDDRIsZcO9X651KowwEOP14fzTK+znMYcFdLSvYssQZD1NzoigjXimny8hfM4GvxobwdXHmCdAxA2VYhivmWCRiqaBBBUAeNuf4nHgjsUufPqIB8JwkhIjmuDKJVurDFyNRPKNqy5C/AMJ+B7zYmm97oMvv9wimBtSH7/XS4SuKtSi5ZC/PfQN18i9+saEh3IOm9GQcI+i5QV9PW5QYjxEt4EzbnRGywqJMgPf7a/BcfZ1TdMKWycaJ5+OypVfSs4Dk220EzboSq/+gnM2RLKDWge6oxM0BjY6DDR3LFG8dw5z9h9IwVkoqwC+h2pBMO++dT28WiAHJ7yEUkuc4/sCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"abc123","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' headers: cache-control: - no-cache @@ -1659,7 +1659,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster?api-version=2021-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"MIICCgKCAgEAuYHv0yJ/x7IyhLLBOTsjiewYapDTXehXFmomuWH4YVYPxbvKPQLv+x9tTaN4QJwcwjSkuRGoE8ROuOOBYMhQzyNIgHV4VF6X1VhPqG6GpBZnfqVv+F8pDewJlETZlVtcvG1Xfk5/i81WgplNRrIXSHzffQ/nY9vjH05BfFi7ZLt89OkwQ5HIGD8f9xCKG7o/75cHXYS2+8wp7xK1k5moHr2w1+3wL31UfvEb6u1hyZzkLJPm7X0vTYH0argBci6s6bqca7x5oS2XOQo/7HXgGYqeJ92KroHJxL4t8J7h7AK9nNNfSFXq5IHKA81kjX2Ah5j/fIHMV0dqX7kUoG4JUQzDDRIsZcO9X651KowwEOP14fzTK+znMYcFdLSvYssQZD1NzoigjXimny8hfM4GvxobwdXHmCdAxA2VYhivmWCRiqaBBBUAeNuf4nHgjsUufPqIB8JwkhIjmuDKJVurDFyNRPKNqy5C/AMJ+B7zYmm97oMvv9wimBtSH7/XS4SuKtSi5ZC/PfQN18i9+saEh3IOm9GQcI+i5QV9PW5QYjxEt4EzbnRGywqJMgPf7a/BcfZ1TdMKWycaJ5+OypVfSs4Dk220EzboSq/+gnM2RLKDWge6oxM0BjY6DDR3LFG8dw5z9h9IwVkoqwC+h2pBMO++dT28WiAHJ7yEUkuc4/sCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:00:48.7458368Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"abc123","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:00:45.505Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' headers: cache-control: - no-cache @@ -2370,7 +2370,7 @@ interactions: "clusterName": "containerapp-ext", "logProcessor.appLogs.destination": "log-analytics"}, "configurationProtectedSettings": {"logProcessor.appLogs.logAnalyticsConfig.customerId": "ZTNmMmZmZjgtMmFhMy00YjA3LWJhNWItZGUzODE4ZWZjOGY4", "logProcessor.appLogs.logAnalyticsConfig.sharedKey": - "cnMvRWN1YS9PUk95OXVWU3hYQVNwRHdSdlRLbzI2WXdIL01HT2VMNDErVjJyZFlrMzNQdnRKaXdyL05oQ256NmQ0Tk9mNTZaTHgySWp0WTVvUVlJZWc9PQ=="}}}' + "abc123"}}}' headers: Accept: - application/json @@ -16998,7 +16998,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster?api-version=2021-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:10:23.0611068Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"MIICCgKCAgEAuYHv0yJ/x7IyhLLBOTsjiewYapDTXehXFmomuWH4YVYPxbvKPQLv+x9tTaN4QJwcwjSkuRGoE8ROuOOBYMhQzyNIgHV4VF6X1VhPqG6GpBZnfqVv+F8pDewJlETZlVtcvG1Xfk5/i81WgplNRrIXSHzffQ/nY9vjH05BfFi7ZLt89OkwQ5HIGD8f9xCKG7o/75cHXYS2+8wp7xK1k5moHr2w1+3wL31UfvEb6u1hyZzkLJPm7X0vTYH0argBci6s6bqca7x5oS2XOQo/7HXgGYqeJ92KroHJxL4t8J7h7AK9nNNfSFXq5IHKA81kjX2Ah5j/fIHMV0dqX7kUoG4JUQzDDRIsZcO9X651KowwEOP14fzTK+znMYcFdLSvYssQZD1NzoigjXimny8hfM4GvxobwdXHmCdAxA2VYhivmWCRiqaBBBUAeNuf4nHgjsUufPqIB8JwkhIjmuDKJVurDFyNRPKNqy5C/AMJ+B7zYmm97oMvv9wimBtSH7/XS4SuKtSi5ZC/PfQN18i9+saEh3IOm9GQcI+i5QV9PW5QYjxEt4EzbnRGywqJMgPf7a/BcfZ1TdMKWycaJ5+OypVfSs4Dk220EzboSq/+gnM2RLKDWge6oxM0BjY6DDR3LFG8dw5z9h9IwVkoqwC+h2pBMO++dT28WiAHJ7yEUkuc4/sCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:10:15.526Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:10:23.0611068Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"abc123","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:10:15.526Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' headers: cache-control: - no-cache @@ -19930,7 +19930,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster?api-version=2021-10-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:10:23.0611068Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"MIICCgKCAgEAuYHv0yJ/x7IyhLLBOTsjiewYapDTXehXFmomuWH4YVYPxbvKPQLv+x9tTaN4QJwcwjSkuRGoE8ROuOOBYMhQzyNIgHV4VF6X1VhPqG6GpBZnfqVv+F8pDewJlETZlVtcvG1Xfk5/i81WgplNRrIXSHzffQ/nY9vjH05BfFi7ZLt89OkwQ5HIGD8f9xCKG7o/75cHXYS2+8wp7xK1k5moHr2w1+3wL31UfvEb6u1hyZzkLJPm7X0vTYH0argBci6s6bqca7x5oS2XOQo/7HXgGYqeJ92KroHJxL4t8J7h7AK9nNNfSFXq5IHKA81kjX2Ah5j/fIHMV0dqX7kUoG4JUQzDDRIsZcO9X651KowwEOP14fzTK+znMYcFdLSvYssQZD1NzoigjXimny8hfM4GvxobwdXHmCdAxA2VYhivmWCRiqaBBBUAeNuf4nHgjsUufPqIB8JwkhIjmuDKJVurDFyNRPKNqy5C/AMJ+B7zYmm97oMvv9wimBtSH7/XS4SuKtSi5ZC/PfQN18i9+saEh3IOm9GQcI+i5QV9PW5QYjxEt4EzbnRGywqJMgPf7a/BcfZ1TdMKWycaJ5+OypVfSs4Dk220EzboSq/+gnM2RLKDWge6oxM0BjY6DDR3LFG8dw5z9h9IwVkoqwC+h2pBMO++dT28WiAHJ7yEUkuc4/sCAwEAAQ==","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:10:15.526Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Kubernetes/connectedClusters/my-connected-cluster","name":"my-connected-cluster","type":"microsoft.kubernetes/connectedclusters","location":"eastus","tags":{},"systemData":{"createdBy":"xinyupang@microsoft.com","createdByType":"User","createdAt":"2023-11-22T04:57:58.8415473Z","lastModifiedBy":"64b12d6e-6549-484c-8cc6-6281839ba394","lastModifiedByType":"Application","lastModifiedAt":"2023-11-22T05:10:23.0611068Z"},"identity":{"principalId":"6ba6e69e-9551-4f2d-aa94-50f52e792ee7","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","connectivityStatus":"Connected","agentPublicKeyCertificate":"abc123","distribution":"aks","infrastructure":"azure","kubernetesVersion":"1.27.7","totalNodeCount":4,"agentVersion":"1.13.7","totalCoreCount":8,"lastConnectivityTime":"2023-11-22T05:10:15.526Z","managedIdentityCertificateExpirationTime":"2024-02-20T04:52:00Z"}}' headers: cache-control: - no-cache