From 142dc0d575053199c2aaca170552b7b660a37403 Mon Sep 17 00:00:00 2001 From: longwan Date: Fri, 5 May 2023 18:37:04 -0700 Subject: [PATCH 01/10] MSI default change to true and add check for airgap --- .../azure/cli/command_modules/acs/custom.py | 37 ++++++++++++------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 7843eb2d72f..d9a07443095 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -59,6 +59,9 @@ CONST_VIRTUAL_NODE_SUBNET_NAME, DecoratorEarlyExitException, ) +from azure.cli.command_modules.acs._helpers import ( + get_user_assigned_identity_by_resource_id, +) from azure.cli.command_modules.acs._helpers import get_snapshot_by_snapshot_id from azure.cli.command_modules.acs._resourcegroup import get_rg_location from azure.cli.command_modules.acs._validators import extract_comma_separated_string @@ -452,7 +455,7 @@ def aks_create( # addons enable_addons=None, workspace_resource_id=None, - enable_msi_auth_for_monitoring=False, + enable_msi_auth_for_monitoring=True, enable_syslog=False, data_collection_settings=None, aci_subnet_name=None, @@ -854,7 +857,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, enable_secret_rotation=False, rotation_poll_interval=None, no_wait=False, - enable_msi_auth_for_monitoring=False, + enable_msi_auth_for_monitoring=True, enable_syslog=False, data_collection_settings=None,): instance = client.get(resource_group_name, name) @@ -925,21 +928,29 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, result = LongRunningOperation(cmd.cli_ctx)( client.begin_create_or_update(resource_group_name, name, instance)) - # For monitoring addon, Metrics role assignement doesnt require in case of MSI auth - if enable_monitoring and not enable_msi_auth_for_monitoring: + if enable_monitoring: + from msrestazure.tools import resource_id + cluster_resource_id = resource_id( + subscription=subscription_id, + resource_group=resource_group_name, + namespace='Microsoft.ContainerService', type='managedClusters', + name=name + ) cloud_name = cmd.cli_ctx.cloud.name + # For monitoring addon, Metrics role assignement doesnt require in case of MSI auth + if not enable_msi_auth_for_monitoring and cloud_name.lower() == 'azurecloud': # mdm metrics supported only in Azure Public cloud so add the role assignment only in this cloud - if cloud_name.lower() == 'azurecloud': - from msrestazure.tools import resource_id - cluster_resource_id = resource_id( - subscription=subscription_id, - resource_group=resource_group_name, - namespace='Microsoft.ContainerService', type='managedClusters', - name=name - ) add_monitoring_role_assignment( result, cluster_resource_id, cmd) + if enable_msi_auth_for_monitoring and cloud_name.lower() != 'azurecloud': + try: + get_user_assigned_identity_by_resource_id(cluster_resource_id) + except InvalidArgumentValueError as e: + enable_msi_auth_for_monitoring = False + # raise ArgumentUsageError("--enable_msi_auth_for_monitoring are only support in public cloud.") + # logger.warning("--enable_msi_auth_for_monitoring are only support in public cloud.") + if ingress_appgw_addon_enabled: add_ingress_appgw_addon_role_assignment(result, cmd) @@ -960,7 +971,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, def _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable, workspace_resource_id=None, - enable_msi_auth_for_monitoring=False, + enable_msi_auth_for_monitoring=True, subnet_name=None, appgw_name=None, appgw_subnet_cidr=None, From 5aa1eb962d8a53cb387431522d4a6bf25f6b4941 Mon Sep 17 00:00:00 2001 From: longwan Date: Mon, 8 May 2023 11:14:50 -0700 Subject: [PATCH 02/10] fix style --- src/azure-cli/azure/cli/command_modules/acs/custom.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index d9a07443095..526500eacaf 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -938,19 +938,19 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, ) cloud_name = cmd.cli_ctx.cloud.name # For monitoring addon, Metrics role assignement doesnt require in case of MSI auth - if not enable_msi_auth_for_monitoring and cloud_name.lower() == 'azurecloud': - # mdm metrics supported only in Azure Public cloud so add the role assignment only in this cloud + if not enable_msi_auth_for_monitoring and cloud_name.lower() == 'azurecloud': + # mdm metrics supported only in Azure Public cloud so add the role assignment only in this cloud add_monitoring_role_assignment( result, cluster_resource_id, cmd) if enable_msi_auth_for_monitoring and cloud_name.lower() != 'azurecloud': - try: + try: get_user_assigned_identity_by_resource_id(cluster_resource_id) - except InvalidArgumentValueError as e: + except InvalidArgumentValueError: enable_msi_auth_for_monitoring = False # raise ArgumentUsageError("--enable_msi_auth_for_monitoring are only support in public cloud.") # logger.warning("--enable_msi_auth_for_monitoring are only support in public cloud.") - + if ingress_appgw_addon_enabled: add_ingress_appgw_addon_role_assignment(result, cmd) From 33f336855e13e569f007d6a0ddb13db09b781026 Mon Sep 17 00:00:00 2001 From: longwan Date: Mon, 8 May 2023 15:44:33 -0700 Subject: [PATCH 03/10] address comments: remove Metrics role assignment and change airgap condition --- src/azure-cli/azure/cli/command_modules/acs/custom.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 526500eacaf..3901be2a63d 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -937,19 +937,13 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, name=name ) cloud_name = cmd.cli_ctx.cloud.name - # For monitoring addon, Metrics role assignement doesnt require in case of MSI auth - if not enable_msi_auth_for_monitoring and cloud_name.lower() == 'azurecloud': - # mdm metrics supported only in Azure Public cloud so add the role assignment only in this cloud - add_monitoring_role_assignment( - result, cluster_resource_id, cmd) - - if enable_msi_auth_for_monitoring and cloud_name.lower() != 'azurecloud': + if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): try: get_user_assigned_identity_by_resource_id(cluster_resource_id) except InvalidArgumentValueError: enable_msi_auth_for_monitoring = False # raise ArgumentUsageError("--enable_msi_auth_for_monitoring are only support in public cloud.") - # logger.warning("--enable_msi_auth_for_monitoring are only support in public cloud.") + logger.warning("--enable_msi_auth_for_monitoring are not supported in airgap clouds.") if ingress_appgw_addon_enabled: add_ingress_appgw_addon_role_assignment(result, cmd) From 078924e77a87a932aaac5741745659261dd9d74f Mon Sep 17 00:00:00 2001 From: longwan Date: Wed, 10 May 2023 16:03:18 -0700 Subject: [PATCH 04/10] address comments use the instance object to check the identity type --- .../azure/cli/command_modules/acs/custom.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index ecd72abfc45..87110e9711c 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -59,15 +59,11 @@ CONST_VIRTUAL_NODE_SUBNET_NAME, DecoratorEarlyExitException, ) -from azure.cli.command_modules.acs._helpers import ( - get_user_assigned_identity_by_resource_id, -) from azure.cli.command_modules.acs._helpers import get_snapshot_by_snapshot_id from azure.cli.command_modules.acs._resourcegroup import get_rg_location from azure.cli.command_modules.acs._validators import extract_comma_separated_string from azure.cli.command_modules.acs.addonconfiguration import ( add_ingress_appgw_addon_role_assignment, - add_monitoring_role_assignment, add_virtual_node_role_assignment, ensure_container_insights_for_monitoring, ensure_default_log_analytics_workspace_for_monitoring, @@ -929,21 +925,11 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, client.begin_create_or_update(resource_group_name, name, instance)) if enable_monitoring: - from msrestazure.tools import resource_id - cluster_resource_id = resource_id( - subscription=subscription_id, - resource_group=resource_group_name, - namespace='Microsoft.ContainerService', type='managedClusters', - name=name - ) cloud_name = cmd.cli_ctx.cloud.name if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): - try: - get_user_assigned_identity_by_resource_id(cluster_resource_id) - except InvalidArgumentValueError: - enable_msi_auth_for_monitoring = False - # raise ArgumentUsageError("--enable_msi_auth_for_monitoring are only support in public cloud.") + if instance.identity is not None and instance.identity.type is not None and instance.identity.type == "userassigned": logger.warning("--enable_msi_auth_for_monitoring are not supported in airgap clouds.") + enable_msi_auth_for_monitoring = False if ingress_appgw_addon_enabled: add_ingress_appgw_addon_role_assignment(result, cmd) From c8869c929b9d014850ec3d66a701bf2b964ca9c2 Mon Sep 17 00:00:00 2001 From: longwan Date: Thu, 11 May 2023 16:09:04 -0700 Subject: [PATCH 05/10] regenerate recordings for tests --- ...eate_with_custom_monitoring_workspace.yaml | 607 +++++------------- 1 file changed, 163 insertions(+), 444 deletions(-) mode change 100755 => 100644 src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml old mode 100755 new mode 100644 index 93c9e9b6dfd..6aff37b1101 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-04-23T12:01:26Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-11T23:02:38Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '363' + - '378' content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:01:26 GMT + - Thu, 11 May 2023 23:02:41 GMT expires: - '-1' pragma: @@ -60,12 +60,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.48.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003?api-version=2021-12-01-preview response: body: - string: '{"properties":{"customerId":"b8b82b24-700b-43b1-9271-9d69e1957ffa","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-04-23T12:01:27.5035264Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-04-24T08:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-04-23T12:01:27.5035264Z","modifiedDate":"2023-04-23T12:01:27.5035264Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:01:27 GMT + - Thu, 11 May 2023 23:02:46 GMT expires: - '-1' location: @@ -112,12 +112,12 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.48.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003?api-version=2021-12-01-preview response: body: - string: '{"properties":{"customerId":"b8b82b24-700b-43b1-9271-9d69e1957ffa","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-04-23T12:01:27.5035264Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-04-24T08:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-04-23T12:01:27.5035264Z","modifiedDate":"2023-04-23T12:01:27.5035264Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:01:27 GMT + - Thu, 11 May 2023 23:02:46 GMT expires: - '-1' pragma: @@ -164,66 +164,21 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-01 - response: - body: - string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ContainerService/managedClusters/cliakstest000002'' - under resource group ''clitest000001'' was not found. For more details please - go to https://aka.ms/ARMResourceNotFoundFix"}}' - headers: - cache-control: - - no-cache - content-length: - - '244' - content-type: - - application/json; charset=utf-8 - date: - - Sun, 23 Apr 2023 12:01:28 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-failure-cause: - - gateway - status: - code: 404 - message: Not Found -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-04-23T12:01:26Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-11T23:02:38Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '363' + - '378' content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:01:27 GMT + - Thu, 11 May 2023 23:02:48 GMT expires: - '-1' pragma: @@ -251,12 +206,12 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-resource/22.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003?api-version=2015-11-01-preview response: body: - string: '{"properties":{"customerId":"b8b82b24-700b-43b1-9271-9d69e1957ffa","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-04-23T12:01:27.5035264Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-04-24T08:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-04-23T12:01:27.5035264Z","modifiedDate":"2023-04-23T12:01:27.5035264Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Succeeded","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -265,11 +220,11 @@ interactions: cache-control: - no-cache content-length: - - '847' + - '848' content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:01:27 GMT + - Thu, 11 May 2023 23:02:48 GMT expires: - '-1' pragma: @@ -291,21 +246,22 @@ interactions: message: OK - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest2xx6o2r7j-79a739", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest4cfttrlgn-137239", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": - 0, "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", - "mode": "System", "orchestratorVersion": "", "upgradeSettings": {}, "enableNodePublicIP": + 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": + false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "", "upgradeSettings": {}, "enableNodePublicIP": false, "enableCustomCATrust": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "spotMaxPrice": -1.0, "nodeTaints": [], "enableEncryptionAtHost": false, "enableUltraSSD": false, - "enableFIPS": false, "name": "nodepool1"}], "linuxProfile": {"adminUsername": - "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTAAK31PbLN4NRXNE+fQ9l2XTqagn2x/9R6SEGuHSEwqjSX6nxydSJNCRMtZ0390/A/ZngWTw4rRC5zTTmy6aqecbjs3e/tgsd3IJECvTBqdLOQKNjQMEI4fMMhKsK2HDracFpeuyTIQ/wchtTQ2IyEh0WFN2SPt0X6/CRtCQjJzXMpeGbUWNau3dwesrADYBuhW9P7hEb2bDOwUaHNVHatNlrtTk8ujiMyVMZ44oV8o4NOd7ODq8hWkf0YMDypSQkRHx6YGdPeYPifye7MLWHAxdVOppW1zkLX0ne9QUgMQ+kUNofY2Td3Ojzu3vGwsiwRCpbZYIGKF3e4T/TnIMr - azcli_aks_live_test@example.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": - true, "config": {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003", - "useAADAuth": "False"}}}, "enableRBAC": true, "networkProfile": {"networkPlugin": - "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": - "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", "outboundType": "loadBalancer", - "loadBalancerSku": "standard"}, "disableLocalAccounts": false, "storageProfile": - {}}}' + "enableFIPS": false, "networkProfile": {}, "name": "nodepool1"}], "linuxProfile": + {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\n"}]}}, "addonProfiles": {"omsagent": {"enabled": true, "config": + {"logAnalyticsWorkspaceResourceID": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003", + "useAADAuth": "False"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, + "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": + "10.0.0.0/16", "dnsServiceIP": "10.0.0.10", "dockerBridgeCidr": "172.17.0.1/16", + "outboundType": "loadBalancer", "loadBalancerSku": "standard"}, "disableLocalAccounts": + false, "storageProfile": {}}}' headers: Accept: - application/json @@ -316,16 +272,16 @@ interactions: Connection: - keep-alive Content-Length: - - '1715' + - '2165' Content-Type: - application/json ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-01-02-preview response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n @@ -333,53 +289,55 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitest2xx6o2r7j-79a739\",\n \"fqdn\": \"cliakstest-clitest2xx6o2r7j-79a739-jgy5s31u.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest2xx6o2r7j-79a739-jgy5s31u.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitest4cfttrlgn-137239\",\n \"fqdn\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Creating\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202304.10.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTAAK31PbLN4NRXNE+fQ9l2XTqagn2x/9R6SEGuHSEwqjSX6nxydSJNCRMtZ0390/A/ZngWTw4rRC5zTTmy6aqecbjs3e/tgsd3IJECvTBqdLOQKNjQMEI4fMMhKsK2HDracFpeuyTIQ/wchtTQ2IyEh0WFN2SPt0X6/CRtCQjJzXMpeGbUWNau3dwesrADYBuhW9P7hEb2bDOwUaHNVHatNlrtTk8ujiMyVMZ44oV8o4NOd7ODq8hWkf0YMDypSQkRHx6YGdPeYPifye7MLWHAxdVOppW1zkLX0ne9QUgMQ+kUNofY2Td3Ojzu3vGwsiwRCpbZYIGKF3e4T/TnIMr - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003\",\n \ \"useAADAuth\": \"False\"\n }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n \"enableRBAC\": true,\n - \ \"enableLTS\": \"KubernetesOfficial\",\n \"networkProfile\": {\n \"networkPlugin\": + \ \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"standard\",\n \"loadBalancerProfile\": - {\n \"managedOutboundIPs\": {\n \"count\": 1\n }\n },\n \"podCidr\": - \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \"dnsServiceIP\": - \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n \"outboundType\": - \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": - [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n - \ },\n \"maxAgentPools\": 100,\n \"disableLocalAccounts\": false,\n \"securityProfile\": - {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": + {\n \"managedOutboundIPs\": {\n \"count\": 1\n },\n \"backendPoolType\": + \"nodeIPConfiguration\"\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": + \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": + \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": + [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n + \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": + 100,\n \"disableLocalAccounts\": false,\n \"securityProfile\": {},\n \"storageProfile\": + {\n \"diskCSIDriver\": {\n \"enabled\": true,\n \"version\": \"v1\"\n + \ },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 cache-control: - no-cache content-length: - - '3630' + - '4130' content-type: - application/json date: - - Sun, 23 Apr 2023 12:01:32 GMT + - Thu, 11 May 2023 23:02:56 GMT expires: - '-1' pragma: @@ -409,254 +367,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sun, 23 Apr 2023 12:01:32 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - 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: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sun, 23 Apr 2023 12:02:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - 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: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sun, 23 Apr 2023 12:02:32 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - 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: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sun, 23 Apr 2023 12:03:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - 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: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 - response: - body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" - headers: - cache-control: - - no-cache - content-length: - - '126' - content-type: - - application/json - date: - - Sun, 23 Apr 2023 12:03:31 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx - 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: - - aks create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --name --ssh-key-value -a --workspace-resource-id - User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -665,7 +383,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:04:02 GMT + - Thu, 11 May 2023 23:02:57 GMT expires: - '-1' pragma: @@ -697,14 +415,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -713,7 +431,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:04:32 GMT + - Thu, 11 May 2023 23:03:27 GMT expires: - '-1' pragma: @@ -745,14 +463,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -761,7 +479,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:05:02 GMT + - Thu, 11 May 2023 23:03:57 GMT expires: - '-1' pragma: @@ -793,14 +511,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -809,7 +527,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:05:32 GMT + - Thu, 11 May 2023 23:04:26 GMT expires: - '-1' pragma: @@ -841,14 +559,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -857,7 +575,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:06:02 GMT + - Thu, 11 May 2023 23:04:57 GMT expires: - '-1' pragma: @@ -889,14 +607,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -905,7 +623,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:06:32 GMT + - Thu, 11 May 2023 23:05:28 GMT expires: - '-1' pragma: @@ -937,14 +655,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -953,7 +671,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:07:02 GMT + - Thu, 11 May 2023 23:05:58 GMT expires: - '-1' pragma: @@ -985,14 +703,14 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" headers: cache-control: - no-cache @@ -1001,7 +719,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:07:33 GMT + - Thu, 11 May 2023 23:06:28 GMT expires: - '-1' pragma: @@ -1033,15 +751,15 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/66eb2986-c3ad-4501-8489-ace5738a9dd6?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"8629eb66-adc3-0145-8489-ace5738a9dd6\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-04-23T12:01:32.0793444Z\",\n \"endTime\": - \"2023-04-23T12:08:03.3616861Z\"\n }" + string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\",\n \"endTime\": + \"2023-05-11T23:06:29.7424893Z\"\n }" headers: cache-control: - no-cache @@ -1050,7 +768,7 @@ interactions: content-type: - application/json date: - - Sun, 23 Apr 2023 12:08:03 GMT + - Thu, 11 May 2023 23:06:58 GMT expires: - '-1' pragma: @@ -1082,10 +800,10 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-01-02-preview response: body: string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\",\n @@ -1093,22 +811,23 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitest2xx6o2r7j-79a739\",\n \"fqdn\": \"cliakstest-clitest2xx6o2r7j-79a739-jgy5s31u.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest2xx6o2r7j-79a739-jgy5s31u.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitest4cfttrlgn-137239\",\n \"fqdn\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": - \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"maxPods\": 110,\n - \ \"type\": \"VirtualMachineScaleSets\",\n \"enableAutoScaling\": false,\n - \ \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": - \"Running\"\n },\n \"orchestratorVersion\": \"1.25.6\",\n \"currentOrchestratorVersion\": - \"1.25.6\",\n \"enableNodePublicIP\": false,\n \"mode\": \"System\",\n + \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": + \"OCIContainer\",\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\",\n + \ \"enableAutoScaling\": false,\n \"provisioningState\": \"Succeeded\",\n + \ \"powerState\": {\n \"code\": \"Running\"\n },\n \"orchestratorVersion\": + \"1.25.6\",\n \"currentOrchestratorVersion\": \"1.25.6\",\n \"enableNodePublicIP\": + false,\n \"enableCustomCATrust\": false,\n \"mode\": \"System\",\n \ \"enableEncryptionAtHost\": false,\n \"enableUltraSSD\": false,\n \ \"osType\": \"Linux\",\n \"osSKU\": \"Ubuntu\",\n \"nodeImageVersion\": - \"AKSUbuntu-2204gen2containerd-202304.10.0\",\n \"upgradeSettings\": {},\n - \ \"enableFIPS\": false\n }\n ],\n \"linuxProfile\": {\n \"adminUsername\": - \"azureuser\",\n \"ssh\": {\n \"publicKeys\": [\n {\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTAAK31PbLN4NRXNE+fQ9l2XTqagn2x/9R6SEGuHSEwqjSX6nxydSJNCRMtZ0390/A/ZngWTw4rRC5zTTmy6aqecbjs3e/tgsd3IJECvTBqdLOQKNjQMEI4fMMhKsK2HDracFpeuyTIQ/wchtTQ2IyEh0WFN2SPt0X6/CRtCQjJzXMpeGbUWNau3dwesrADYBuhW9P7hEb2bDOwUaHNVHatNlrtTk8ujiMyVMZ44oV8o4NOd7ODq8hWkf0YMDypSQkRHx6YGdPeYPifye7MLWHAxdVOppW1zkLX0ne9QUgMQ+kUNofY2Td3Ojzu3vGwsiwRCpbZYIGKF3e4T/TnIMr - azcli_aks_live_test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": + \"AKSUbuntu-2204gen2containerd-202304.20.0\",\n \"upgradeSettings\": {},\n + \ \"enableFIPS\": false,\n \"networkProfile\": {}\n }\n ],\n \"linuxProfile\": + {\n \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\": + [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCbIg1guRHbI0lV11wWDt1r2cUdcNd27CJsg+SfgC7miZeubtwUhbsPdhMQsfDyhOWHq1+ZL0M+nJZV63d/1dhmhtgyOqejUwrPlzKhydsbrsdUor+JmNJDdW01v7BXHyuymT8G4s09jCasNOwiufbP/qp72ruu0bIA1nySsvlf9pCQAuFkAnVnf/rFhUlOkhtRpwcq8SUNY2zRHR/EKb/4NWY1JzR4sa3q2fWIJdrrX0DvLoa5g9bIEd4Df79ba7v+yiUBOS0zT2ll+z4g9izHK3EO5d8hL4jYxcjKs+wcslSYRWrascfscLgMlMGh0CdKeNTDjHpGPncaf3Z+FwwwjWeuiNBxv7bJo13/8B/098KlVDl4GZqsoBCEjPyJfV6hO0y/LkRGkk7oHWKgeWAfKtfLItRp00eZ4fcJNK9kCaSMmEugoZWcI7NGbZXzqFWqbpRI7NcDP9+WIQ+i9U5vqWsqd/zng4kbuAJ6UuKqIzB0upYrLShfQE3SAck8oaLhJqqq56VfDuASNpJKidV+zq27HfSBmbXnkR/5AK337dc3MXKJypoK/QPMLKUAP5XLPbs+NddJQV7EZXd29DLgp+fRIg3edpKdO7ZErWhv7d+3Kws+e1Y+ypmR2WIVSwVyBEUfgv2C8Ts9gnTF4pNcEY/S2aBicz5Ew2+jdyGNQQ== + test@example.com\\n\"\n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"clientId\":\"00000000-0000-0000-0000-000000000001\"\n },\n \"addonProfiles\": {\n \"omsagent\": {\n \"enabled\": true,\n \"config\": {\n \"logAnalyticsWorkspaceResourceID\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003\",\n @@ -1116,35 +835,35 @@ interactions: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/omsagent-cliakstest000002\",\n \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n \ }\n }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_westus2\",\n - \ \"enableRBAC\": true,\n \"enableLTS\": \"KubernetesOfficial\",\n \"networkProfile\": + \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": - 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/fe7f834c-0b9e-4899-be99-6da841851480\"\n - \ }\n ]\n },\n \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": - \"10.0.0.0/16\",\n \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": - \"172.17.0.1/16\",\n \"outboundType\": \"loadBalancer\",\n \"podCidrs\": - [\n \"10.244.0.0/16\"\n ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n - \ ],\n \"ipFamilies\": [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": - 100,\n \"identityProfile\": {\n \"kubeletidentity\": {\n \"resourceId\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n + 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/a7dceae6-0806-41d2-a39e-99b90306aa68\"\n + \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n + \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n + \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n + \ \"outboundType\": \"loadBalancer\",\n \"podCidrs\": [\n \"10.244.0.0/16\"\n + \ ],\n \"serviceCidrs\": [\n \"10.0.0.0/16\"\n ],\n \"ipFamilies\": + [\n \"IPv4\"\n ]\n },\n \"maxAgentPools\": 100,\n \"identityProfile\": + {\n \"kubeletidentity\": {\n \"resourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cliakstest000002-agentpool\",\n \ \"clientId\":\"00000000-0000-0000-0000-000000000001\",\n \"objectId\":\"00000000-0000-0000-0000-000000000001\"\n \ }\n },\n \"disableLocalAccounts\": false,\n \"securityProfile\": {},\n \"storageProfile\": {\n \"diskCSIDriver\": {\n \"enabled\": - true\n },\n \"fileCSIDriver\": {\n \"enabled\": true\n },\n \"snapshotController\": - {\n \"enabled\": true\n }\n },\n \"oidcIssuerProfile\": {\n \"enabled\": - false\n },\n \"workloadAutoScalerProfile\": {}\n },\n \"identity\": - {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n + true,\n \"version\": \"v1\"\n },\n \"fileCSIDriver\": {\n \"enabled\": + true\n },\n \"snapshotController\": {\n \"enabled\": true\n }\n + \ },\n \"oidcIssuerProfile\": {\n \"enabled\": false\n },\n \"workloadAutoScalerProfile\": + {}\n },\n \"identity\": {\n \"type\": \"SystemAssigned\",\n \"principalId\":\"00000000-0000-0000-0000-000000000001\",\n \ \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\n },\n \"sku\": - {\n \"name\": \"Base\",\n \"tier\": \"Free\"\n }\n }" + {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: cache-control: - no-cache content-length: - - '4640' + - '5140' content-type: - application/json date: - - Sun, 23 Apr 2023 12:08:04 GMT + - Thu, 11 May 2023 23:06:58 GMT expires: - '-1' pragma: @@ -1176,8 +895,8 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-authorization/3.0.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-authorization/3.0.0 Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Metrics%20Publisher%27&api-version=2022-04-01 response: @@ -1192,7 +911,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:08:03 GMT + - Thu, 11 May 2023 23:07:00 GMT expires: - '-1' pragma: @@ -1231,13 +950,13 @@ interactions: ParameterSetName: - --resource-group --name --ssh-key-value -a --workspace-resource-id User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-authorization/3.0.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-authorization/3.0.0 Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/f20e7142-3dfd-4f61-aea7-31f41b0cdd3d?api-version=2022-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/246f6aa4-8bca-4bdb-b9c3-60af979f9752?api-version=2022-04-01 response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2023-04-23T12:08:04.7025482Z","updatedOn":"2023-04-23T12:08:05.0496736Z","createdBy":null,"updatedBy":"119e1aeb-4592-42d6-9507-c66df857924f","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/f20e7142-3dfd-4f61-aea7-31f41b0cdd3d","type":"Microsoft.Authorization/roleAssignments","name":"f20e7142-3dfd-4f61-aea7-31f41b0cdd3d"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2023-05-11T23:07:01.8834631Z","updatedOn":"2023-05-11T23:07:02.3727579Z","createdBy":null,"updatedBy":"a3ed77fc-61b3-4eda-b3b8-5b0468fd7cfe","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/246f6aa4-8bca-4bdb-b9c3-60af979f9752","type":"Microsoft.Authorization/roleAssignments","name":"246f6aa4-8bca-4bdb-b9c3-60af979f9752"}' headers: cache-control: - no-cache @@ -1246,7 +965,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 23 Apr 2023 12:08:04 GMT + - Thu, 11 May 2023 23:07:03 GMT expires: - '-1' pragma: @@ -1276,26 +995,26 @@ interactions: ParameterSetName: - -g -n --yes --no-wait User-Agent: - - AZURECLI/2.48.0 azsdk-python-azure-mgmt-containerservice/22.1.0 Python/3.8.10 - (Linux-5.15.0-1033-azure-x86_64-with-glibc2.29) + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2023-01-02-preview response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/92382936-ddb6-44ce-b17f-be9de8f93c6a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d01e92b1-a07c-44fa-b825-0ae8cf9dc08d?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Sun, 23 Apr 2023 12:08:06 GMT + - Thu, 11 May 2023 23:07:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/92382936-ddb6-44ce-b17f-be9de8f93c6a?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/d01e92b1-a07c-44fa-b825-0ae8cf9dc08d?api-version=2016-03-30 pragma: - no-cache server: From f59171c88c975682b2f25b728414fd9ede94bcfa Mon Sep 17 00:00:00 2001 From: longwan Date: Mon, 15 May 2023 18:44:54 -0700 Subject: [PATCH 06/10] update recording --- ...eate_with_custom_monitoring_workspace.yaml | 230 +++++++++++++----- 1 file changed, 163 insertions(+), 67 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml index 6aff37b1101..30f46053a3c 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-11T23:02:38Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-16T01:35:58Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:02:41 GMT + - Tue, 16 May 2023 01:36:01 GMT expires: - '-1' pragma: @@ -65,7 +65,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003?api-version=2021-12-01-preview response: body: - string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"f9c51500-8077-498d-8052-6954556928de","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-16T01:36:02.5870607Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-16T05:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-16T01:36:02.5870607Z","modifiedDate":"2023-05-16T01:36:02.5870607Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -78,7 +78,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:02:46 GMT + - Tue, 16 May 2023 01:36:02 GMT expires: - '-1' location: @@ -92,7 +92,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - ASP.NET status: @@ -117,7 +117,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003?api-version=2021-12-01-preview response: body: - string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"f9c51500-8077-498d-8052-6954556928de","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-16T01:36:02.5870607Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-16T05:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-16T01:36:02.5870607Z","modifiedDate":"2023-05-16T01:36:02.5870607Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:02:46 GMT + - Tue, 16 May 2023 01:36:02 GMT expires: - '-1' pragma: @@ -169,7 +169,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-11T23:02:38Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","test":"test_aks_create_with_custom_monitoring_workspace","date":"2023-05-16T01:35:58Z","module":"acs"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -178,7 +178,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:02:48 GMT + - Tue, 16 May 2023 01:36:03 GMT expires: - '-1' pragma: @@ -211,7 +211,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/cliaksworkspace000003?api-version=2015-11-01-preview response: body: - string: '{"properties":{"customerId":"d0a66929-b6e3-497a-8449-efb174a3293e","provisioningState":"Succeeded","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-11T23:02:46.3022305Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-12T14:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-11T23:02:46.3022305Z","modifiedDate":"2023-05-11T23:02:46.3022305Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' + string: '{"properties":{"customerId":"f9c51500-8077-498d-8052-6954556928de","provisioningState":"Creating","sku":{"name":"PerGB2018","lastSkuUpdate":"2023-05-16T01:36:02.5870607Z"},"retentionInDays":30,"features":{"legacy":0,"searchVersion":1,"enableLogAccessUsingOnlyResourcePermissions":true},"workspaceCapping":{"dailyQuotaGb":-1.0,"quotaNextResetTime":"2023-05-16T05:00:00Z","dataIngestionStatus":"RespectQuota"},"publicNetworkAccessForIngestion":"Enabled","publicNetworkAccessForQuery":"Enabled","createdDate":"2023-05-16T01:36:02.5870607Z","modifiedDate":"2023-05-16T01:36:02.5870607Z"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/cliaksworkspace000003","name":"cliaksworkspace000003","type":"Microsoft.OperationalInsights/workspaces"}' headers: access-control-allow-origin: - '*' @@ -220,11 +220,11 @@ interactions: cache-control: - no-cache content-length: - - '848' + - '847' content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:02:48 GMT + - Tue, 16 May 2023 01:36:03 GMT expires: - '-1' pragma: @@ -246,7 +246,7 @@ interactions: message: OK - request: body: '{"location": "westus2", "identity": {"type": "SystemAssigned"}, "properties": - {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest4cfttrlgn-137239", + {"kubernetesVersion": "", "dnsPrefix": "cliakstest-clitest56vxbfoyg-9b96eb", "agentPoolProfiles": [{"count": 3, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 0, "workloadRuntime": "OCIContainer", "osType": "Linux", "enableAutoScaling": false, "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": @@ -289,8 +289,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Creating\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitest4cfttrlgn-137239\",\n \"fqdn\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitest56vxbfoyg-9b96eb\",\n \"fqdn\": \"cliakstest-clitest56vxbfoyg-9b96eb-q8vkjuw7.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest56vxbfoyg-9b96eb-q8vkjuw7.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -329,7 +329,7 @@ interactions: {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n }" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 cache-control: - no-cache content-length: @@ -337,7 +337,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:02:56 GMT + - Tue, 16 May 2023 01:36:07 GMT expires: - '-1' pragma: @@ -349,7 +349,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -370,11 +370,107 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 16 May 2023 01:36:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + 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: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --ssh-key-value -a --workspace-resource-id + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 16 May 2023 01:36:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + 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: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --ssh-key-value -a --workspace-resource-id + User-Agent: + - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 + (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -383,7 +479,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:02:57 GMT + - Tue, 16 May 2023 01:37:08 GMT expires: - '-1' pragma: @@ -418,11 +514,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -431,7 +527,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:03:27 GMT + - Tue, 16 May 2023 01:37:38 GMT expires: - '-1' pragma: @@ -466,11 +562,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -479,7 +575,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:03:57 GMT + - Tue, 16 May 2023 01:38:08 GMT expires: - '-1' pragma: @@ -514,11 +610,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -527,7 +623,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:04:26 GMT + - Tue, 16 May 2023 01:38:39 GMT expires: - '-1' pragma: @@ -562,11 +658,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -575,7 +671,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:04:57 GMT + - Tue, 16 May 2023 01:39:09 GMT expires: - '-1' pragma: @@ -610,11 +706,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -623,7 +719,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:05:28 GMT + - Tue, 16 May 2023 01:39:39 GMT expires: - '-1' pragma: @@ -658,11 +754,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -671,7 +767,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:05:58 GMT + - Tue, 16 May 2023 01:40:09 GMT expires: - '-1' pragma: @@ -706,11 +802,11 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"InProgress\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"InProgress\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\"\n }" headers: cache-control: - no-cache @@ -719,7 +815,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:06:28 GMT + - Tue, 16 May 2023 01:40:38 GMT expires: - '-1' pragma: @@ -754,12 +850,12 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-containerservice/21.1.0b Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/1d4a47bb-0635-4b3b-8468-48063f5966a3?api-version=2016-03-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/7cc8cbbb-af90-428e-add4-5988f0adf5af?api-version=2016-03-30 response: body: - string: "{\n \"name\": \"bb474a1d-3506-3b4b-8468-48063f5966a3\",\n \"status\": - \"Succeeded\",\n \"startTime\": \"2023-05-11T23:02:56.2744819Z\",\n \"endTime\": - \"2023-05-11T23:06:29.7424893Z\"\n }" + string: "{\n \"name\": \"bbcbc87c-90af-8e42-add4-5988f0adf5af\",\n \"status\": + \"Succeeded\",\n \"startTime\": \"2023-05-16T01:36:08.4494143Z\",\n \"endTime\": + \"2023-05-16T01:41:09.9569856Z\"\n }" headers: cache-control: - no-cache @@ -768,7 +864,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:06:58 GMT + - Tue, 16 May 2023 01:41:09 GMT expires: - '-1' pragma: @@ -811,8 +907,8 @@ interactions: \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"powerState\": {\n \"code\": \"Running\"\n },\n \"kubernetesVersion\": \"1.25.6\",\n \"currentKubernetesVersion\": \"1.25.6\",\n \"dnsPrefix\": - \"cliakstest-clitest4cfttrlgn-137239\",\n \"fqdn\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.hcp.westus2.azmk8s.io\",\n - \ \"azurePortalFQDN\": \"cliakstest-clitest4cfttrlgn-137239-bt961z82.portal.hcp.westus2.azmk8s.io\",\n + \"cliakstest-clitest56vxbfoyg-9b96eb\",\n \"fqdn\": \"cliakstest-clitest56vxbfoyg-9b96eb-q8vkjuw7.hcp.westus2.azmk8s.io\",\n + \ \"azurePortalFQDN\": \"cliakstest-clitest56vxbfoyg-9b96eb-q8vkjuw7.portal.hcp.westus2.azmk8s.io\",\n \ \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \"count\": 3,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\": 128,\n \"osDiskType\": \"Managed\",\n \"kubeletDiskType\": \"OS\",\n \"workloadRuntime\": @@ -838,7 +934,7 @@ interactions: \ \"enableRBAC\": true,\n \"enablePodSecurityPolicy\": false,\n \"networkProfile\": {\n \"networkPlugin\": \"kubenet\",\n \"loadBalancerSku\": \"Standard\",\n \ \"loadBalancerProfile\": {\n \"managedOutboundIPs\": {\n \"count\": - 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/a7dceae6-0806-41d2-a39e-99b90306aa68\"\n + 1\n },\n \"effectiveOutboundIPs\": [\n {\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_westus2/providers/Microsoft.Network/publicIPAddresses/a942bb6b-0cfa-430f-95d1-46e6da5e022b\"\n \ }\n ],\n \"backendPoolType\": \"nodeIPConfiguration\"\n },\n \ \"podCidr\": \"10.244.0.0/16\",\n \"serviceCidr\": \"10.0.0.0/16\",\n \ \"dnsServiceIP\": \"10.0.0.10\",\n \"dockerBridgeCidr\": \"172.17.0.1/16\",\n @@ -863,7 +959,7 @@ interactions: content-type: - application/json date: - - Thu, 11 May 2023 23:06:58 GMT + - Tue, 16 May 2023 01:41:10 GMT expires: - '-1' pragma: @@ -911,7 +1007,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:07:00 GMT + - Tue, 16 May 2023 01:41:10 GMT expires: - '-1' pragma: @@ -953,10 +1049,10 @@ interactions: - AZURECLI/2.48.1 azsdk-python-azure-mgmt-authorization/3.0.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/246f6aa4-8bca-4bdb-b9c3-60af979f9752?api-version=2022-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/278ea6d7-6ce6-4951-9a5b-633feb199799?api-version=2022-04-01 response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2023-05-11T23:07:01.8834631Z","updatedOn":"2023-05-11T23:07:02.3727579Z","createdBy":null,"updatedBy":"a3ed77fc-61b3-4eda-b3b8-5b0468fd7cfe","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/246f6aa4-8bca-4bdb-b9c3-60af979f9752","type":"Microsoft.Authorization/roleAssignments","name":"246f6aa4-8bca-4bdb-b9c3-60af979f9752"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/3913510d-42f4-4e42-8a64-420c390055eb","principalId":"00000000-0000-0000-0000-000000000001","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002","condition":null,"conditionVersion":null,"createdOn":"2023-05-16T01:41:11.4759093Z","updatedOn":"2023-05-16T01:41:12.0789178Z","createdBy":null,"updatedBy":"a3ed77fc-61b3-4eda-b3b8-5b0468fd7cfe","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002/providers/Microsoft.Authorization/roleAssignments/278ea6d7-6ce6-4951-9a5b-633feb199799","type":"Microsoft.Authorization/roleAssignments","name":"278ea6d7-6ce6-4951-9a5b-633feb199799"}' headers: cache-control: - no-cache @@ -965,7 +1061,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 11 May 2023 23:07:03 GMT + - Tue, 16 May 2023 01:41:13 GMT expires: - '-1' pragma: @@ -1004,17 +1100,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d01e92b1-a07c-44fa-b825-0ae8cf9dc08d?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operations/d759b575-3e73-455a-9dd8-6ec84070ef34?api-version=2016-03-30 cache-control: - no-cache content-length: - '0' date: - - Thu, 11 May 2023 23:07:05 GMT + - Tue, 16 May 2023 01:41:14 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/d01e92b1-a07c-44fa-b825-0ae8cf9dc08d?api-version=2016-03-30 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/westus2/operationresults/d759b575-3e73-455a-9dd8-6ec84070ef34?api-version=2016-03-30 pragma: - no-cache server: @@ -1024,7 +1120,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted From cff97cbb3a31b522486d2ce4addc2003b409a37d Mon Sep 17 00:00:00 2001 From: longwan Date: Tue, 16 May 2023 22:22:21 -0700 Subject: [PATCH 07/10] update warning message --- src/azure-cli/azure/cli/command_modules/acs/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 87110e9711c..81346a0c3fb 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -928,7 +928,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, cloud_name = cmd.cli_ctx.cloud.name if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): if instance.identity is not None and instance.identity.type is not None and instance.identity.type == "userassigned": - logger.warning("--enable_msi_auth_for_monitoring are not supported in airgap clouds.") + logger.warning("--enable_msi_auth_for_monitoring is not supported in %s cloud and continuing monitoring enablement without this flag.", cloud_name ) enable_msi_auth_for_monitoring = False if ingress_appgw_addon_enabled: From 221f58f4a9265e4248bed638ba69cf49be46983b Mon Sep 17 00:00:00 2001 From: longwan Date: Tue, 16 May 2023 23:59:30 -0700 Subject: [PATCH 08/10] update style --- src/azure-cli/azure/cli/command_modules/acs/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 81346a0c3fb..7f15eb474e1 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -928,7 +928,7 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, cloud_name = cmd.cli_ctx.cloud.name if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): if instance.identity is not None and instance.identity.type is not None and instance.identity.type == "userassigned": - logger.warning("--enable_msi_auth_for_monitoring is not supported in %s cloud and continuing monitoring enablement without this flag.", cloud_name ) + logger.warning("--enable_msi_auth_for_monitoring is not supported in %s cloud and continuing monitoring enablement without this flag.", cloud_name) enable_msi_auth_for_monitoring = False if ingress_appgw_addon_enabled: From 9afcb74cbc95c9a5f7f7142004114267ee8e5fb7 Mon Sep 17 00:00:00 2001 From: longwan Date: Wed, 17 May 2023 18:47:57 -0700 Subject: [PATCH 09/10] update test and move check places --- .../azure/cli/command_modules/acs/custom.py | 16 ++++++++-------- .../acs/tests/latest/test_aks_commands.py | 10 ++++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 7f15eb474e1..ada93c75326 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -924,13 +924,6 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, result = LongRunningOperation(cmd.cli_ctx)( client.begin_create_or_update(resource_group_name, name, instance)) - if enable_monitoring: - cloud_name = cmd.cli_ctx.cloud.name - if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): - if instance.identity is not None and instance.identity.type is not None and instance.identity.type == "userassigned": - logger.warning("--enable_msi_auth_for_monitoring is not supported in %s cloud and continuing monitoring enablement without this flag.", cloud_name) - enable_msi_auth_for_monitoring = False - if ingress_appgw_addon_enabled: add_ingress_appgw_addon_role_assignment(result, cmd) @@ -1009,9 +1002,16 @@ def _update_addons(cmd, instance, subscription_id, resource_group_name, name, ad workspace_resource_id = '/' + workspace_resource_id if workspace_resource_id.endswith('/'): workspace_resource_id = workspace_resource_id.rstrip('/') + + cloud_name = cmd.cli_ctx.cloud.name + if enable_msi_auth_for_monitoring and (cloud_name.lower() == 'ussec' or cloud_name.lower() == 'usnat'): + if instance.identity is not None and instance.identity.type is not None and instance.identity.type == "userassigned": + logger.warning("--enable_msi_auth_for_monitoring is not supported in %s cloud and continuing monitoring enablement without this flag.", cloud_name) + enable_msi_auth_for_monitoring = False + addon_profile.config = { CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: workspace_resource_id} - addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = enable_msi_auth_for_monitoring + addon_profile.config[CONST_MONITORING_USING_AAD_MSI_AUTH] = "true" if enable_msi_auth_for_monitoring else "false" elif addon == (CONST_VIRTUAL_NODE_ADDON_NAME + os_type): if addon_profile.enabled: raise CLIError('The virtual-node addon is already enabled for this managed cluster.\n' diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py index 45a23f8074d..5836e7bf2a3 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py @@ -7269,7 +7269,6 @@ def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_g create_cmd = f'aks create --resource-group={resource_group} --name={aks_name} --location={resource_group_location} ' \ '--enable-managed-identity ' \ '--enable-addons monitoring ' \ - '--enable-msi-auth-for-monitoring ' \ '--node-count 1 ' \ '--ssh-key-value={ssh_key_value} ' create_cmd += f'--assign-identity {identity_id} ' if user_assigned_identity else '' @@ -7278,7 +7277,7 @@ def create_new_cluster_with_monitoring_aad_auth(self, resource_group, resource_g response = self.cmd(create_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), - self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + self.check('addonProfiles.omsagent.config.useAADAuth', 'true') ]).get_output_in_json() cluster_resource_id = response["id"] @@ -7379,14 +7378,13 @@ def enable_monitoring_existing_cluster_aad_auth(self, resource_group, resource_g create_cmd += f'--assign-identity {identity_id}' if user_assigned_identity else '' self.cmd(create_cmd) - enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' \ - '--enable-msi-auth-for-monitoring ' + enable_monitoring_cmd = f'aks enable-addons -a monitoring --resource-group={resource_group} --name={aks_name} ' if syslog_enabled: enable_monitoring_cmd += f'--enable-syslog ' response = self.cmd(enable_monitoring_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), - self.check('addonProfiles.omsagent.config.useAADAuth', 'True') + self.check('addonProfiles.omsagent.config.useAADAuth', 'true') ]).get_output_in_json() cluster_resource_id = response["id"] @@ -7443,7 +7441,7 @@ def test_aks_create_with_monitoring_legacy_auth(self, resource_group, resource_g response = self.cmd(create_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID'), - self.check('addonProfiles.omsagent.config.useAADAuth', 'False') + self.check('addonProfiles.omsagent.config.useAADAuth', 'false') ]).get_output_in_json() # make sure a DCR was not created From 4b6b36a545bb2fcc224e3961526498c97af81505 Mon Sep 17 00:00:00 2001 From: longwan Date: Wed, 24 May 2023 15:29:49 -0700 Subject: [PATCH 10/10] address create wiht service principle and fix tests --- src/azure-cli/azure/cli/command_modules/acs/custom.py | 2 ++ .../command_modules/acs/managed_cluster_decorator.py | 10 ++++++++-- .../acs/tests/latest/test_aks_commands.py | 3 +-- .../acs/tests/latest/test_managed_cluster_decorator.py | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/custom.py b/src/azure-cli/azure/cli/command_modules/acs/custom.py index 63500b7c9d2..73463a99052 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/custom.py +++ b/src/azure-cli/azure/cli/command_modules/acs/custom.py @@ -875,6 +875,8 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons, msi_auth = False if instance.service_principal_profile.client_id == "msi": msi_auth = True + else: + enable_msi_auth_for_monitoring = False subscription_id = get_subscription_id(cmd.cli_ctx) instance = _update_addons(cmd, instance, subscription_id, resource_group_name, name, addons, enable=True, diff --git a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py index 59e5e20144c..6be245ffcd4 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py +++ b/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py @@ -2608,6 +2608,12 @@ def get_enable_msi_auth_for_monitoring(self) -> Union[bool, None]: # read the original value passed by the command enable_msi_auth_for_monitoring = self.raw_param.get("enable_msi_auth_for_monitoring") + if ( + self.mc and + self.mc.service_principal_profile and + self.mc.service_principal_profile.client_id is not None + ): + return False # try to read the property value corresponding to the parameter from the `mc` object if ( self.mc and @@ -5373,9 +5379,9 @@ def build_monitoring_addon_profile(self) -> ManagedClusterAddonProfile: enabled=True, config={ CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: self.context.get_workspace_resource_id(), - CONST_MONITORING_USING_AAD_MSI_AUTH: "True" + CONST_MONITORING_USING_AAD_MSI_AUTH: "true" if self.context.get_enable_msi_auth_for_monitoring() - else "False", + else "false", }, ) # post-process, create a deployment diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py index 4ea8d76f88b..86e7ea8d438 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py @@ -7494,8 +7494,7 @@ def test_aks_create_with_monitoring_legacy_auth(self, resource_group, resource_g '--ssh-key-value={ssh_key_value} ' response = self.cmd(create_cmd, checks=[ self.check('addonProfiles.omsagent.enabled', True), - self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID'), - self.check('addonProfiles.omsagent.config.useAADAuth', 'false') + self.exists('addonProfiles.omsagent.config.logAnalyticsWorkspaceResourceID') ]).get_output_in_json() # make sure a DCR was not created diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py index 8563f88e91e..7b0c42a4962 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py @@ -2312,7 +2312,7 @@ def test_get_enable_msi_auth_for_monitoring(self): addon_profiles_1 = { CONST_MONITORING_ADDON_NAME: self.models.ManagedClusterAddonProfile( enabled=True, - config={CONST_MONITORING_USING_AAD_MSI_AUTH: "True"}, + config={CONST_MONITORING_USING_AAD_MSI_AUTH: "true"}, ) } mc = self.models.ManagedCluster(location="test_location", addon_profiles=addon_profiles_1) @@ -6016,7 +6016,7 @@ def test_build_monitoring_addon_profile(self): enabled=True, config={ CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: "/test_workspace_resource_id", - CONST_MONITORING_USING_AAD_MSI_AUTH: "False", + CONST_MONITORING_USING_AAD_MSI_AUTH: "false", }, ) self.assertEqual(monitoring_addon_profile, ground_truth_monitoring_addon_profile) @@ -6291,7 +6291,7 @@ def test_set_up_addon_profiles(self): enabled=True, config={ CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID: "/test_workspace_resource_id", - CONST_MONITORING_USING_AAD_MSI_AUTH: "False", + CONST_MONITORING_USING_AAD_MSI_AUTH: "false", }, ), CONST_VIRTUAL_NODE_ADDON_NAME