diff --git a/src/aks-preview/HISTORY.md b/src/aks-preview/HISTORY.md index c9f81619539..edcbb18137f 100644 --- a/src/aks-preview/HISTORY.md +++ b/src/aks-preview/HISTORY.md @@ -2,6 +2,10 @@ Release History =============== +0.4.54 ++++++ +* Support "--enable-aad" for "az aks update" to update an existing AAD-Integrated cluster to the new AKS-managed AAD experience + 0.4.53 +++++ * Add --ppg for "az aks create" and "az aks nodepool add" diff --git a/src/aks-preview/azext_aks_preview/_help.py b/src/aks-preview/azext_aks_preview/_help.py index 228e935c41e..4988dad61fa 100644 --- a/src/aks-preview/azext_aks_preview/_help.py +++ b/src/aks-preview/azext_aks_preview/_help.py @@ -265,6 +265,8 @@ text: az aks create -g MyResourceGroup -n MyManagedCluster --node-osdisk-diskencryptionset-id - name: Create a kubernetes cluster with userDefinedRouting, standard load balancer SKU and a custom subnet preconfigured with a route table text: az aks create -g MyResourceGroup -n MyManagedCluster --outbound-type userDefinedRouting --load-balancer-sku standard --vnet-subnet-id customUserSubnetVnetID + - name: Create a kubernetes cluster with managed AAD enabled. + text: az aks create -g MyResourceGroup -n MyManagedCluster --enable-aad --aad-admin-group-object-ids --aad-tenant-id """.format(sp_cache=AKS_SERVICE_PRINCIPAL_CACHE) @@ -355,6 +357,9 @@ - name: --api-server-authorized-ip-ranges type: string short-summary: Comma seperated list of authorized apiserver IP ranges. Set to "" to allow all traffic on a previously restricted cluster. Set to 0.0.0.0/32 to restrict apiserver traffic to node pools. + - name: --enable-aad + type: bool + short-summary: Enable managed AAD feature for cluster. - name: --aad-admin-group-object-ids type: string short-summary: Comma seperated list of aad group object IDs that will be set as cluster admin. @@ -389,6 +394,10 @@ text: az aks update -g MyResourceGroup -n MyManagedCluster --api-server-authorized-ip-ranges "" - name: Restrict apiserver traffic in a kubernetes cluster to agentpool nodes. text: az aks update -g MyResourceGroup -n MyManagedCluster --api-server-authorized-ip-ranges 0.0.0.0/32 + - name: Update a AKS-managed AAD cluster with tenant ID or admin group object IDs. + text: az aks update -g MyResourceGroup -n MyManagedCluster --aad-admin-group-object-ids --aad-tenant-id + - name: Update an existing AKS AAD-Integrated cluster to the new AKS-managed AAD experience. + text: az aks update -g MyResourceGroup -n MyManagedCluster --enable-aad """ helps['aks kollect'] = """ diff --git a/src/aks-preview/azext_aks_preview/custom.py b/src/aks-preview/azext_aks_preview/custom.py index b1b036b6b2f..6c526da4948 100644 --- a/src/aks-preview/azext_aks_preview/custom.py +++ b/src/aks-preview/azext_aks_preview/custom.py @@ -1134,6 +1134,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, attach_acr=None, detach_acr=None, uptime_sla=False, + enable_aad=False, aad_tenant_id=None, aad_admin_group_object_ids=None, aks_custom_headers=None): @@ -1155,6 +1156,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, not update_pod_security and \ not update_lb_profile and \ not uptime_sla and \ + not enable_aad and \ not update_aad_profile: raise CLIError('Please specify "--enable-cluster-autoscaler" or ' '"--disable-cluster-autoscaler" or ' @@ -1169,6 +1171,7 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, '"--load-balancer-managed-outbound-ip-count" or ' '"--load-balancer-outbound-ips" or ' '"--load-balancer-outbound-ip-prefixes" or ' + '"--enable-aad" or ' '"--aad-tenant-id" or ' '"--aad-admin-group-object-ids"') @@ -1283,10 +1286,18 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches, instance.api_server_access_profile = \ _populate_api_server_access_profile(api_server_authorized_ip_ranges, instance) + if enable_aad: + if instance.aad_profile is None: + raise CLIError('Cannot specify "--enable-aad" for a non-AAD cluster') + if instance.aad_profile.managed: + raise CLIError('Cannot specify "--enable-aad" if managed AAD is already enabled') + instance.aad_profile = ManagedClusterAADProfile( + managed=True + ) if update_aad_profile: if instance.aad_profile is None or not instance.aad_profile.managed: raise CLIError('Cannot specify "--aad-tenant-id/--aad-admin-group-object-ids"' - ' if managed aad not is enabled') + ' if managed AAD is not enabled') if aad_tenant_id is not None: instance.aad_profile.tenant_id = aad_tenant_id if aad_admin_group_object_ids is not None: diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml index 4730d1b9d5d..0cbf2d83700 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_appgw_with_ingress_appgw_addon.yaml @@ -1643,8 +1643,8 @@ interactions: false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "xxxx", - "secret": "yyyy"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"applicationGatewayId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/applicationGateways/appgw"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml index 9743976776f..9ab7ffd51c4 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_byo_subnet_with_ingress_appgw_addon.yaml @@ -791,8 +791,8 @@ interactions: false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "efe70525-74c7-4e99-b80d-970b901032c4", - "secret": "1fa5b2295678c53514fa$"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"applicationGatewayName": "gateway", "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cliakstest000003/subnets/appgw-subnet"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml new file mode 100644 index 00000000000..7d6e15c01dc --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_aadv1_and_update_with_managed_aad.yaml @@ -0,0 +1,1046 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-resource/10.0.0 Azure-SDK-For-Python AZURECLI/2.8.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-23T10:58:05Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '319' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Jun 2020 10:58:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestcojnsmdi7-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "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"}, "aadProfile": {"clientAppID": "00000000-0000-0000-0000-000000000002", + "serverAppID": "00000000-0000-0000-0000-000000000001", "serverAppSecret": "fake-secret", + "tenantID": "d5b55040-0c14-48cc-a028-91457fc190d9"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1484' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Creating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\"\n }\n ],\n\ + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\"\ + : {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"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 },\n \"aadProfile\": {\n \"adminGroupObjectIDs\":\ + \ null,\n \"clientAppID\": \"00000000-0000-0000-0000-000000000002\",\n\ + \ \"serverAppID\": \"00000000-0000-0000-0000-000000000001\",\n \"tenantID\"\ + : \"d5b55040-0c14-48cc-a028-91457fc190d9\"\n },\n \"maxAgentPools\": 100\n\ + \ },\n \"sku\": {\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/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2433' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 10:58:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 10:58:46 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 10:59:16 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 10:59:46 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:00:17 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:00:47 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:17 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/44b9270e-b276-43c7-ae9a-a51cb0dfe62a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"0e27b944-76b2-c743-ae9a-a51cb0dfe62a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T10:58:15.9171802Z\",\n \"\ + endTime\": \"2020-06-23T11:01:34.2489102Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:48 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c --aad-server-app-id --aad-server-app-secret + --aad-client-app-id --aad-tenant-id -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ + \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 },\n \"\ + aadProfile\": {\n \"adminGroupObjectIDs\": null,\n \"clientAppID\":\ + \ \"00000000-0000-0000-0000-000000000002\",\n \"serverAppID\": \"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantID\": \"d5b55040-0c14-48cc-a028-91457fc190d9\"\n },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2761' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:48 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ + \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 },\n \"\ + aadProfile\": {\n \"adminGroupObjectIDs\": null,\n \"clientAppID\":\ + \ \"00000000-0000-0000-0000-000000000002\",\n \"serverAppID\": \"00000000-0000-0000-0000-000000000001\"\ + ,\n \"tenantID\": \"d5b55040-0c14-48cc-a028-91457fc190d9\"\n },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2761' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:49 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: 'b''{"location": "canadacentral", "properties": {"kubernetesVersion": "1.15.11", + "dnsPrefix": "cliakstest-clitestcojnsmdi7-8ecadf", "agentPoolProfiles": [{"count": + 1, "vmSize": "Standard_DS2_v2", "osDiskSizeGB": 128, "maxPods": 110, "osType": + "Linux", "type": "VirtualMachineScaleSets", "mode": "System", "orchestratorVersion": + "1.15.11", "nodeImageVersion": "AKSUbuntu-1604-2020.06.10", "enableNodePublicIP": + false, "nodeLabels": {}, "name": "nodepool1"}], "linuxProfile": {"adminUsername": + "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "c6d9cfb8-35b5-4d65-890f-2e2846ba859a"}, + "addonProfiles": {"KubeDashboard": {"enabled": true}}, "nodeResourceGroup": + "MC_clitest000001_cliakstest000002_canadacentral", "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", + "loadBalancerProfile": {"managedOutboundIPs": {"count": 1}, "effectiveOutboundIPs": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000002_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f"}]}}, + "aadProfile": {"managed": true, "adminGroupObjectIDs": ["00000000-0000-0000-0000-000000000003"], + "tenantID": "00000000-0000-0000-0000-000000000004"}}, "sku": {"name": "Basic", + "tier": "Free"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + Content-Length: + - '1917' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Updating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Updating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ + \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 },\n \"\ + aadProfile\": {\n \"managed\": true,\n \"adminGroupObjectIDs\": [\n\ + \ \"00000000-0000-0000-0000-000000000003\"\n ],\n \"tenantID\":\ + \ \"00000000-0000-0000-0000-000000000004\"\n },\n \"maxAgentPools\": 100\n\ + \ },\n \"sku\": {\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/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2709' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:01:54 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 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:02:25 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:02:55 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:03:25 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/04ba4021-d2ac-4dbd-919c-b771fb091d0a?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"2140ba04-acd2-bd4d-919c-b771fb091d0a\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T11:01:54.2995652Z\",\n \"\ + endTime\": \"2020-06-23T11:03:40.43908Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '168' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:03:55 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestcojnsmdi7-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestcojnsmdi7-8ecadf-c6fd27c8.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/04c8253c-6e60-4927-ab53-b991759a418f\"\ + \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 },\n \"\ + aadProfile\": {\n \"managed\": true,\n \"adminGroupObjectIDs\": [\n\ + \ \"00000000-0000-0000-0000-000000000003\"\n ],\n \"tenantID\":\ + \ \"00000000-0000-0000-0000-000000000004\"\n },\n \"maxAgentPools\": 100\n\ + \ },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\": \"Free\"\n }\n\ + \ }" + headers: + cache-control: + - no-cache + content-length: + - '2711' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:03:56 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 +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml index be51b9351e0..9a69c5f6df0 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_with_managed_aad.yaml @@ -52,8 +52,8 @@ interactions: "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiOFgDVZSitF+jMxvBpJmYO8ReNVZMG+n996WvKxFfaR9903Zykxrvu7RUqdpZZ0hzzueeLJPJpiGxvk8ur4vnkXJkX7H8fvZZw6EI5PhuD76xXXRdXp9I2dH91oTqJ0Ne/s01K2PcJC+SzkU+icGLsIqP47QVoBL+H1nMapzcZVYYXzPd2u1bJZbGgJZSxEOJenybNY/1qhJGIEhMqLPXcz8QDuqLMrz3WMGLmfwv5SMTzd9ejfRAJ85RXeciTSjUtT37HUDafiql3JxhrrbUkgyuoVMztGp6DvTHb0XKDS06su1jBxQpGuquCKcpJNIa7Z3pJmWSM/b7VahsHzWP - pmiller@gmail.com\n"}]}}, "servicePrincipalProfile": {"clientId": "709e9be8-2b36-441f-81b5-16bd257fb5cb", - "secret": "b39ff07ddb2703825634$"}, "addonProfiles": {}, "enableRBAC": true, + pmiller@gmail.com\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "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": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml new file mode 100644 index 00000000000..a2c44008406 --- /dev/null +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml @@ -0,0 +1,685 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-resource/10.0.0 Azure-SDK-For-Python AZURECLI/2.8.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"canadacentral","tags":{"product":"azurecli","cause":"automation","date":"2020-06-23T11:33:56Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '319' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 23 Jun 2020 11:33:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "canadacentral", "properties": {"kubernetesVersion": "", "dnsPrefix": + "cliakstest-clitestwqe3hkkdx-8ecadf", "agentPoolProfiles": [{"count": 1, "vmSize": + "Standard_DS2_v2", "osType": "Linux", "type": "VirtualMachineScaleSets", "mode": + "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": + "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", + "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V"}]}}, + "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {}, "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"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + Content-Length: + - '1272' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Creating\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Creating\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\"\n }\n ],\n\ + \ \"linuxProfile\": {\n \"adminUsername\": \"azureuser\",\n \"ssh\"\ + : {\n \"publicKeys\": [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"enableRBAC\": true,\n \"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 },\n \"maxAgentPools\": 100\n },\n \"sku\": {\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/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + cache-control: + - no-cache + content-length: + - '2202' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:34:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:34:35 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:35:06 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:35:36 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:36:37 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:37: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"InProgress\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:37:37 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/canadacentral/operations/8c2336b1-41bf-418c-a867-82e468ce078f?api-version=2016-03-30 + response: + body: + string: "{\n \"name\": \"b136238c-bf41-8c41-a867-82e468ce078f\",\n \"status\"\ + : \"Succeeded\",\n \"startTime\": \"2020-06-23T11:34:05.4157705Z\",\n \"\ + endTime\": \"2020-06-23T11:38:01.9352258Z\"\n }" + headers: + cache-control: + - no-cache + content-length: + - '170' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:38: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --vm-set-type -c -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/c44c711a-af14-4da4-a079-e323f2ec2eaf\"\ + \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 },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2530' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:38:09 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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - aks update + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name --enable-aad --aad-admin-group-object-ids --aad-tenant-id + -o + User-Agent: + - python/3.7.5 (Linux-5.3.0-1028-azure-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.9 + msrest_azure/0.6.3 azure-mgmt-containerservice/4.4.4 Azure-SDK-For-Python + AZURECLI/2.8.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002?api-version=2020-06-01 + response: + body: + string: "{\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.ContainerService/managedClusters/cliakstest000002\"\ + ,\n \"location\": \"canadacentral\",\n \"name\": \"cliakstest000002\",\n\ + \ \"type\": \"Microsoft.ContainerService/ManagedClusters\",\n \"properties\"\ + : {\n \"provisioningState\": \"Succeeded\",\n \"kubernetesVersion\": \"\ + 1.15.11\",\n \"dnsPrefix\": \"cliakstest-clitestwqe3hkkdx-8ecadf\",\n \ + \ \"fqdn\": \"cliakstest-clitestwqe3hkkdx-8ecadf-c20e3a93.hcp.canadacentral.azmk8s.io\"\ + ,\n \"agentPoolProfiles\": [\n {\n \"name\": \"nodepool1\",\n \ + \ \"count\": 1,\n \"vmSize\": \"Standard_DS2_v2\",\n \"osDiskSizeGB\"\ + : 128,\n \"maxPods\": 110,\n \"type\": \"VirtualMachineScaleSets\"\ + ,\n \"provisioningState\": \"Succeeded\",\n \"orchestratorVersion\"\ + : \"1.15.11\",\n \"enableNodePublicIP\": false,\n \"nodeLabels\":\ + \ {},\n \"mode\": \"System\",\n \"osType\": \"Linux\",\n \"nodeImageVersion\"\ + : \"AKSUbuntu-1604-2020.06.10\"\n }\n ],\n \"linuxProfile\": {\n \ + \ \"adminUsername\": \"azureuser\",\n \"ssh\": {\n \"publicKeys\"\ + : [\n {\n \"keyData\": \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCpjMMxo6YidpgcxNuptFFZffNPTzBZgvdc9LcmKcfNG3o5FmW6MX8Aej848hN6wAHHicQwzQxzkNhO7zj3EMho0WuDC1d9D9aknZcp+K58tmeh21ZVlULntonv2q7VFkg+j9OJ8UY5QczvAx9ClsbXmI4gpWjc/N7XNm00DipBzfBbyMe9mWI0vl0kpmSltLGDQRbr8H6njD8uWjcTaXYC7Ysx3gdsSES54H3W0IcqqeiPWifbIO/zPr429B4pZKo5/2xkF5m4ez3UKv8ivU9LBAL6mW7np1j0G57L1Q62XJWSyG7JEMQWP4SLlZ7GBBFCPuPEqd3w6WqxUyr0R/+V\"\ + \n }\n ]\n }\n },\n \"servicePrincipalProfile\": {\n \"\ + clientId\": \"c6d9cfb8-35b5-4d65-890f-2e2846ba859a\"\n },\n \"addonProfiles\"\ + : {\n \"KubeDashboard\": {\n \"enabled\": true,\n \"config\": null\n\ + \ }\n },\n \"nodeResourceGroup\": \"MC_clitest000001_cliakstest000002_canadacentral\"\ + ,\n \"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_canadacentral/providers/Microsoft.Network/publicIPAddresses/c44c711a-af14-4da4-a079-e323f2ec2eaf\"\ + \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 },\n \"\ + maxAgentPools\": 100\n },\n \"sku\": {\n \"name\": \"Basic\",\n \"tier\"\ + : \"Free\"\n }\n }" + headers: + cache-control: + - no-cache + content-length: + - '2530' + content-type: + - application/json + date: + - Tue, 23 Jun 2020 11:38:10 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 +version: 1 diff --git a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml index 554d1aebcdc..ed71d5f40b5 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml +++ b/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml @@ -51,8 +51,8 @@ interactions: "System", "enableNodePublicIP": false, "scaleSetPriority": "Regular", "scaleSetEvictionPolicy": "Delete", "name": "nodepool1"}], "linuxProfile": {"adminUsername": "azureuser", "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDdabawEfwOujYnckZRvvkrcqoR+c2bLuoiOddqujUWHu+fBTEwDd8nB0vBemdGLNHmo7B3qpXyq9pcplUaGYzCmRZtnYy35UOtCinMqyT3mIJshJA1cIw70nFJbr2gvDl+XXtxmd59k5bWMUjzNdynurjhcA53b1fMHTFXSd5ugtbJ4SyZxPkNWxRtJ9Dg2RslMZ+3ZA9y8iAAMxnX85HpG1UMpwzvEM/jPoFd43UYB5TFZIRAcvlkZTQKaBtFW+Khg7Jx5C3iyPzSMAgDzS4WsJBCfABpJ8nnGzBEi/orhFydtkE/zsXOEMY8ppUpnBLN+LXD1gqWhEYRLF7atYd3 - vsonline@c541134d8e01\n"}]}}, "servicePrincipalProfile": {"clientId": "xxxx", - "secret": "yyyy"}, "addonProfiles": {"IngressApplicationGateway": + vsonline@c541134d8e01\n"}]}}, "servicePrincipalProfile": {"clientId": "", + "secret": ""}, "addonProfiles": {"IngressApplicationGateway": {"enabled": true, "config": {"subnetPrefix": "10.2.0.0/16"}}}, "enableRBAC": true, "enablePodSecurityPolicy": false, "networkProfile": {"networkPlugin": "kubenet", "podCidr": "10.244.0.0/16", "serviceCidr": "10.0.0.0/16", "dnsServiceIP": diff --git a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py index 827de9a85e7..034534be724 100644 --- a/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py +++ b/src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py @@ -31,7 +31,7 @@ def test_aks_create_and_update_with_managed_aad(self, resource_group, resource_g }) create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ - '--vm-set-type AvailabilitySet -c 1 ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ '--enable-aad --aad-admin-group-object-ids 00000000-0000-0000-0000-000000000001 -o json' self.cmd(create_cmd, checks=[ self.check('provisioningState', 'Succeeded'), @@ -49,6 +49,66 @@ def test_aks_create_and_update_with_managed_aad(self, resource_group, resource_g self.check('aadProfile.tenantId', '00000000-0000-0000-0000-000000000003') ]) + @live_only() # without live only fails with needs .ssh fails (maybe generate-ssh-keys would fix) and maybe az login. + @AllowLargeResponse() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='canadacentral') + def test_aks_create_aadv1_and_update_with_managed_aad(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ + '--aad-server-app-id 00000000-0000-0000-0000-000000000001 ' \ + '--aad-server-app-secret fake-secret ' \ + '--aad-client-app-id 00000000-0000-0000-0000-000000000002 ' \ + '--aad-tenant-id d5b55040-0c14-48cc-a028-91457fc190d9 ' \ + '-o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile.managed', None), + self.check('aadProfile.serverAppId', '00000000-0000-0000-0000-000000000001'), + self.check('aadProfile.clientAppId', '00000000-0000-0000-0000-000000000002'), + self.check('aadProfile.tenantId', 'd5b55040-0c14-48cc-a028-91457fc190d9') + ]) + + update_cmd = 'aks update --resource-group={resource_group} --name={name} ' \ + '--enable-aad ' \ + '--aad-admin-group-object-ids 00000000-0000-0000-0000-000000000003 ' \ + '--aad-tenant-id 00000000-0000-0000-0000-000000000004 -o json' + self.cmd(update_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile.managed', True), + self.check('aadProfile.adminGroupObjectIds[0]', '00000000-0000-0000-0000-000000000003'), + self.check('aadProfile.tenantId', '00000000-0000-0000-0000-000000000004') + ]) + + @live_only() # without live only fails with needs .ssh fails (maybe generate-ssh-keys would fix) and maybe az login. + @AllowLargeResponse() + @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='canadacentral') + def test_aks_create_nonaad_and_update_with_managed_aad(self, resource_group, resource_group_location): + aks_name = self.create_random_name('cliakstest', 16) + self.kwargs.update({ + 'resource_group': resource_group, + 'name': aks_name + }) + + create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ + '--vm-set-type VirtualMachineScaleSets -c 1 ' \ + '-o json' + self.cmd(create_cmd, checks=[ + self.check('provisioningState', 'Succeeded'), + self.check('aadProfile', None) + ]) + + update_cmd = 'aks update --resource-group={resource_group} --name={name} ' \ + '--enable-aad ' \ + '--aad-admin-group-object-ids 00000000-0000-0000-0000-000000000001 ' \ + '--aad-tenant-id 00000000-0000-0000-0000-000000000002 -o json' + self.cmd(update_cmd, expect_failure=True) + @AllowLargeResponse() @ResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='westus2') def test_aks_create_with_ingress_appgw_addon(self, resource_group, resource_group_location): diff --git a/src/aks-preview/setup.py b/src/aks-preview/setup.py index 6e6ed2a26af..a1efd754dd0 100644 --- a/src/aks-preview/setup.py +++ b/src/aks-preview/setup.py @@ -8,7 +8,7 @@ from codecs import open as open1 from setuptools import setup, find_packages -VERSION = "0.4.53" +VERSION = "0.4.54" CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers',