diff --git a/hack/generated/controllers/crd_vmss_test.go b/hack/generated/controllers/crd_vmss_test.go new file mode 100644 index 00000000000..21e81b53bdb --- /dev/null +++ b/hack/generated/controllers/crd_vmss_test.go @@ -0,0 +1,267 @@ +/* +Copyright (c) Microsoft Corporation. +Licensed under the MIT license. +*/ + +package controllers_test + +import ( + "fmt" + "testing" + + compute "github.com/Azure/azure-service-operator/hack/generated/_apis/microsoft.compute/v1alpha1api20201201" + network "github.com/Azure/azure-service-operator/hack/generated/_apis/microsoft.network/v1alpha1api20201101" + resources "github.com/Azure/azure-service-operator/hack/generated/_apis/microsoft.resources/v1alpha1api20200601" + "github.com/Azure/azure-service-operator/hack/generated/pkg/genruntime" + "github.com/Azure/azure-service-operator/hack/generated/pkg/testcommon" + "github.com/Azure/go-autorest/autorest/to" + . "github.com/onsi/gomega" + "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +func makeVNETForVMSS(tc testcommon.KubePerTestContext, owner genruntime.KnownResourceReference) *network.VirtualNetwork { + return &network.VirtualNetwork{ + ObjectMeta: tc.MakeObjectMetaWithName(tc.Namer.GenerateName("vn")), + Spec: network.VirtualNetworks_Spec{ + Owner: owner, + Location: testcommon.DefaultTestRegion, + Properties: network.VirtualNetworkPropertiesFormat{ + AddressSpace: network.AddressSpace{ + AddressPrefixes: []string{"10.0.0.0/16"}, + }, + }, + }, + } +} + +func makeSubnetForVMSS(tc testcommon.KubePerTestContext, owner genruntime.KnownResourceReference) *network.VirtualNetworksSubnet { + return &network.VirtualNetworksSubnet{ + ObjectMeta: tc.MakeObjectMeta("subnet"), + Spec: network.VirtualNetworksSubnets_Spec{ + Owner: owner, + Properties: network.SubnetPropertiesFormat{ + AddressPrefix: "10.0.0.0/24", + }, + }, + } +} + +func makePublicIPAddressForVMSS(tc testcommon.KubePerTestContext, owner genruntime.KnownResourceReference) *network.PublicIPAddresses { + publicIPAddressSku := network.PublicIPAddressSkuNameStandard + return &network.PublicIPAddresses{ + ObjectMeta: tc.MakeObjectMetaWithName(tc.Namer.GenerateName("publicip")), + Spec: network.PublicIPAddresses_Spec{ + Location: tc.AzureRegion, + Owner: owner, + Sku: &network.PublicIPAddressSku{ + Name: &publicIPAddressSku, + }, + Properties: network.PublicIPAddressPropertiesFormat{ + PublicIPAllocationMethod: network.PublicIPAddressPropertiesFormatPublicIPAllocationMethodStatic, + }, + }, + } +} + +func makeLoadBalancerForVMSS(tc testcommon.KubePerTestContext, rg *resources.ResourceGroup, publicIPAddress *network.PublicIPAddresses) *network.LoadBalancer { + loadBalancerSku := network.LoadBalancerSkuNameStandard + lbName := tc.Namer.GenerateName("loadbalancer") + lbFrontendName := "LoadBalancerFrontend" + return &network.LoadBalancer{ + ObjectMeta: tc.MakeObjectMetaWithName(lbName), + Spec: network.LoadBalancers_Spec{ + Location: tc.AzureRegion, + Owner: testcommon.AsOwner(rg.ObjectMeta), + Sku: &network.LoadBalancerSku{ + Name: &loadBalancerSku, + }, + Properties: network.LoadBalancerPropertiesFormat{ + FrontendIPConfigurations: []network.FrontendIPConfiguration{ + { + Name: lbFrontendName, + Properties: &network.FrontendIPConfigurationPropertiesFormat{ + PublicIPAddress: &network.SubResource{ + Reference: tc.MakeReferenceFromResource(publicIPAddress), + }, + }, + }, + }, + InboundNatPools: []network.InboundNatPool{ + { + Name: "MyFancyNatPool", + Properties: &network.InboundNatPoolPropertiesFormat{ + FrontendIPConfiguration: network.SubResource{ + Reference: genruntime.ResourceReference{ + // TODO: Getting this is SUPER awkward + ARMID: tc.MakeARMId(rg.Name, "Microsoft.Network", "loadBalancers", lbName, "frontendIPConfigurations", lbFrontendName), + }, + }, + Protocol: network.InboundNatPoolPropertiesFormatProtocolTcp, + FrontendPortRangeStart: 50000, + FrontendPortRangeEnd: 51000, + BackendPort: 22, + }, + }, + }, + }, + }, + } +} + +func Test_VMSS_CRUD(t *testing.T) { + t.Parallel() + + tc := globalTestContext.ForTest(t) + rg := tc.CreateNewTestResourceGroupAndWait() + + sshPublicKey, err := tc.GenerateSSHKey(2048) + tc.Expect(err).ToNot(HaveOccurred()) + + vnet := makeVNETForVMSS(tc, testcommon.AsOwner(rg.ObjectMeta)) + subnet := makeSubnetForVMSS(tc, testcommon.AsOwner(vnet.ObjectMeta)) + publicIPAddress := makePublicIPAddressForVMSS(tc, testcommon.AsOwner(rg.ObjectMeta)) + + // Need to create this first because we use the Load Balancer InboundNATPool ARM ID + // in the spec of the VMSS. + tc.CreateResourceAndWait(publicIPAddress) + + loadBalancer := makeLoadBalancerForVMSS(tc, rg, publicIPAddress) + + // TODO: This has to happen before subnet right now because our controller doesn't deal with children being created before their parents well + tc.CreateResourceAndWait(vnet) + tc.CreateResourcesAndWait(subnet, loadBalancer) + + // VMSS + upgradePolicyMode := compute.UpgradePolicyModeAutomatic + adminUsername := "adminUser" + + vmss := &compute.VirtualMachineScaleSet{ + ObjectMeta: tc.MakeObjectMetaWithName(tc.Namer.GenerateName("vmss")), + Spec: compute.VirtualMachineScaleSets_Spec{ + Location: tc.AzureRegion, + Owner: testcommon.AsOwner(rg.ObjectMeta), + Sku: &compute.Sku{ + Name: to.StringPtr("STANDARD_D1_v2"), + Capacity: to.IntPtr(1), + }, + Properties: compute.VirtualMachineScaleSetProperties{ + PlatformFaultDomainCount: to.IntPtr(3), + SinglePlacementGroup: to.BoolPtr(false), + UpgradePolicy: &compute.UpgradePolicy{ + Mode: &upgradePolicyMode, + }, + VirtualMachineProfile: &compute.VirtualMachineScaleSetVMProfile{ + StorageProfile: &compute.VirtualMachineScaleSetStorageProfile{ + ImageReference: &compute.ImageReference{ + Publisher: to.StringPtr("Canonical"), + Offer: to.StringPtr("UbuntuServer"), + Sku: to.StringPtr("18.04-lts"), + Version: to.StringPtr("latest"), + }, + }, + OsProfile: &compute.VirtualMachineScaleSetOSProfile{ + ComputerNamePrefix: to.StringPtr("computer"), + AdminUsername: &adminUsername, + LinuxConfiguration: &compute.LinuxConfiguration{ + DisablePasswordAuthentication: to.BoolPtr(true), + Ssh: &compute.SshConfiguration{ + PublicKeys: []compute.SshPublicKey{ + { + KeyData: sshPublicKey, + Path: to.StringPtr(fmt.Sprintf("/home/%s/.ssh/authorized_keys", adminUsername)), + }, + }, + }, + }, + }, + NetworkProfile: &compute.VirtualMachineScaleSetNetworkProfile{ + NetworkInterfaceConfigurations: []compute.VirtualMachineScaleSetNetworkConfiguration{ + { + Name: "mynicconfig", + Properties: &compute.VirtualMachineScaleSetNetworkConfigurationProperties{ + Primary: to.BoolPtr(true), + IpConfigurations: []compute.VirtualMachineScaleSetIPConfiguration{ + { + Name: "myipconfiguration", + Properties: &compute.VirtualMachineScaleSetIPConfigurationProperties{ + Subnet: &compute.ApiEntityReference{ + Id: subnet.Status.Id, + }, + LoadBalancerInboundNatPools: []compute.SubResource{ + { + // TODO: It is the most awkward thing in the world that this is not a fully fledged resource + Id: loadBalancer.Status.Properties.InboundNatPools[0].Id, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, + } + + tc.CreateResourceAndWait(vmss) + tc.Expect(vmss.Status.Id).ToNot(BeNil()) + armId := *vmss.Status.Id + + // Perform a simple patch to add a basic custom script extension + patcher := tc.NewResourcePatcher(vmss) + extensionName := "mycustomextension" + vmss.Spec.Properties.VirtualMachineProfile.ExtensionProfile = &compute.VirtualMachineScaleSetExtensionProfile{ + Extensions: []compute.VirtualMachineScaleSetExtension{ + { + Name: &extensionName, + Properties: &compute.GenericExtension{ + Publisher: "Microsoft.Azure.Extensions", + Type: "CustomScript", + TypeHandlerVersion: "2.0", + Settings: map[string]v1.JSON{ + "commandToExecute": v1.JSON{ + Raw: []byte(`"/bin/bash -c \"echo hello\""`), + }, + }, + }, + }, + }, + } + patcher.Patch(vmss) + + objectKey, err := client.ObjectKeyFromObject(vmss) + tc.Expect(err).ToNot(HaveOccurred()) + + // Ensure state eventually gets updated in k8s from change in Azure. + tc.Eventually(func() string { + var updatedVMSS compute.VirtualMachineScaleSet + tc.GetResource(objectKey, &updatedVMSS) + + vmProfile := updatedVMSS.Status.Properties.VirtualMachineProfile + if vmProfile == nil { + return "" + } + + if vmProfile.ExtensionProfile == nil { + return "" + } + + if len(vmProfile.ExtensionProfile.Extensions) == 0 { + return "" + } + + return *updatedVMSS.Status.Properties.VirtualMachineProfile.ExtensionProfile.Extensions[0].Name + }).Should(BeEquivalentTo(extensionName)) + + // Delete VMSS + tc.DeleteResourceAndWait(vmss) + + // Ensure that the resource was really deleted in Azure + exists, retryAfter, err := tc.AzureClient.HeadResource(tc.Ctx, armId, string(compute.VirtualMachineScaleSetsSpecAPIVersion20201201)) + tc.Expect(err).ToNot(HaveOccurred()) + tc.Expect(retryAfter).To(BeZero()) + tc.Expect(exists).To(BeFalse()) +} diff --git a/hack/generated/controllers/recordings/Test_VMSS_CRUD.yaml b/hack/generated/controllers/recordings/Test_VMSS_CRUD.yaml new file mode 100644 index 00000000000..55a8a86c793 --- /dev/null +++ b/hack/generated/controllers/recordings/Test_VMSS_CRUD.yaml @@ -0,0 +1,2839 @@ +--- +version: 1 +interactions: +- request: + body: '{"name":"k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","location":"westus2","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-06-01","name":"asotest-rg-ftrtka","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"type":"Microsoft.Resources/resourceGroups"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Resources/resourceGroups'', + ''asotest-rg-ftrtka'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","name":"k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","type":"Microsoft.Resources/deployments","location":"westus2","properties":{"templateHash":"12750277004184358152","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.6154498S","correlationId":"1ade850c-6539-4ddf-854e-4787288b92d7","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"resourceGroups","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478/operationStatuses/08585770384066563186?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "693" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","name":"k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","type":"Microsoft.Resources/deployments","location":"westus2","properties":{"templateHash":"12750277004184358152","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.6154498S","correlationId":"1ade850c-6539-4ddf-854e-4787288b92d7","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"resourceGroups","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","name":"k8s_2b612b21-8eb9-5883-a031-7b6d204b7478","type":"Microsoft.Resources/deployments","location":"westus2","properties":{"templateHash":"12750277004184358152","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT1.7866115S","correlationId":"1ade850c-6539-4ddf-854e-4787288b92d7","providers":[{"namespace":"Microsoft.Resources","resourceTypes":[{"resourceType":"resourceGroups","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/resourceGroups/asotest-rg-ftrtka"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/k8s_2b612b21-8eb9-5883-a031-7b6d204b7478?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtLUs4Uzo1RjJCNjEyQjIxOjJEOEVCOToyRDU4ODM6MkRBMDMxOjJEN0I2RDIwNEI3NDc4LSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14999" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: '{"name":"k8s_3119a36e-408b-539f-8bd5-508d7609da7b","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-11-01","location":"westus2","name":"asotest-publicip-jwwvys","properties":{"publicIPAllocationMethod":"Static"},"sku":{"name":"Standard"},"type":"Microsoft.Network/publicIPAddresses"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Network/publicIPAddresses'', + ''asotest-publicip-jwwvys'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b","name":"k8s_3119a36e-408b-539f-8bd5-508d7609da7b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9272858764458487451","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.2342614S","correlationId":"9a0ce524-0474-4987-a8b4-11bcc0b817f1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b/operationStatuses/08585770383969129702?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "705" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b","name":"k8s_3119a36e-408b-539f-8bd5-508d7609da7b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9272858764458487451","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.2342614S","correlationId":"9a0ce524-0474-4987-a8b4-11bcc0b817f1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b","name":"k8s_3119a36e-408b-539f-8bd5-508d7609da7b","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9272858764458487451","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT4.7305899S","correlationId":"9a0ce524-0474-4987-a8b4-11bcc0b817f1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys?api-version=2020-11-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-publicip-jwwvys\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys\",\r\n + \ \"etag\": \"W/\\\"23d62c15-cd6a-4af3-a798-703c6560fde1\\\"\",\r\n \"location\": + \"westus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"74f9f8eb-c877-4eb0-9b90-5345475eace2\",\r\n \"ipAddress\": + \"20.190.38.206\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": + \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n },\r\n + \ \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": + \"Standard\",\r\n \"tier\": \"Regional\"\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Etag: + - W/"23d62c15-cd6a-4af3-a798-703c6560fde1" + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Arm-Service-Request-Id: + - 736792e8-c83c-4ac8-b78e-9e4c8acb67fb + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_3119a36e-408b-539f-8bd5-508d7609da7b?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1RjMxMTlBMzZFOjJENDA4QjoyRDUzOUY6MkQ4QkQ1OjJENTA4RDc2MDlEQTdCLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14998" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: '{"name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-11-01","location":"westus2","name":"asotest-vn-bjwueq","properties":{"addressSpace":{"addressPrefixes":["10.0.0.0/16"]}},"type":"Microsoft.Network/virtualNetworks"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Network/virtualNetworks'', + ''asotest-vn-bjwueq'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10999433376155706504","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.251313S","correlationId":"12f340f8-35c0-41f3-a55c-1fec0fcdf389","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219/operationStatuses/08585770383868526284?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "702" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10999433376155706504","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.251313S","correlationId":"12f340f8-35c0-41f3-a55c-1fec0fcdf389","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10999433376155706504","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT4.617162S","correlationId":"12f340f8-35c0-41f3-a55c-1fec0fcdf389","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "16" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "2" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10999433376155706504","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT4.617162S","correlationId":"12f340f8-35c0-41f3-a55c-1fec0fcdf389","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "16" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "3" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","name":"k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10999433376155706504","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT5.8254423S","correlationId":"12f340f8-35c0-41f3-a55c-1fec0fcdf389","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq?api-version=2020-11-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vn-bjwueq\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq\",\r\n + \ \"etag\": \"W/\\\"df27fc7b-7bbe-4afd-8222-e6a005123439\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"6e3b9e73-4714-4b79-b2a5-7d94e0846c4f\",\r\n + \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n + \ ]\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\": + [],\r\n \"enableDdosProtection\": false\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Etag: + - W/"df27fc7b-7bbe-4afd-8222-e6a005123439" + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Arm-Service-Request-Id: + - f137e0b3-ecf8-4db4-9404-ed0738e044d5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_85e6d1ff-b4e9-59dd-a85f-449ca9012219?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1Rjg1RTZEMUZGOjJEQjRFOToyRDU5REQ6MkRBODVGOjJENDQ5Q0E5MDEyMjE5LSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14997" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: '{"name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-11-01","name":"asotest-vn-bjwueq/asotest-subnet-lgchpc","properties":{"addressPrefix":"10.0.0.0/24"},"type":"Microsoft.Network/virtualNetworks/subnets"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Network/virtualNetworks/subnets'', + ''asotest-vn-bjwueq'', ''asotest-subnet-lgchpc'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14711829405121064090","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.1598039S","correlationId":"f055065a-f185-40b9-b67e-46c786a78ad6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks/subnets","locations":[null]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb/operationStatuses/08585770383719174625?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "707" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14711829405121064090","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.1598039S","correlationId":"f055065a-f185-40b9-b67e-46c786a78ad6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks/subnets","locations":[null]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: '{"name":"k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-11-01","location":"westus2","name":"asotest-loadbalancer-gwugus","properties":{"frontendIPConfigurations":[{"name":"LoadBalancerFrontend","properties":{"publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys"}}}],"inboundNatPools":[{"name":"MyFancyNatPool","properties":{"backendPort":22,"frontendIPConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/frontendIPConfigurations/LoadBalancerFrontend"},"frontendPortRangeEnd":51000,"frontendPortRangeStart":50000,"protocol":"Tcp"}}]},"sku":{"name":"Standard"},"type":"Microsoft.Network/loadBalancers"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Network/loadBalancers'', + ''asotest-loadbalancer-gwugus'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","name":"k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1300028085162079446","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.3561972S","correlationId":"01a7b884-5870-45d2-bc1f-13c15b070c4b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"loadBalancers","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a/operationStatuses/08585770383718266539?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "701" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","name":"k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1300028085162079446","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.3561972S","correlationId":"01a7b884-5870-45d2-bc1f-13c15b070c4b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"loadBalancers","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","name":"k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1300028085162079446","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT1.8742481S","correlationId":"01a7b884-5870-45d2-bc1f-13c15b070c4b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"loadBalancers","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus?api-version=2020-11-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-loadbalancer-gwugus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus\",\r\n + \ \"etag\": \"W/\\\"b3916547-f8a2-4c6a-83df-3c9d37ab97b0\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus2\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"bfcbb7cf-4706-405b-97bf-6357227e276a\",\r\n + \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"LoadBalancerFrontend\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/frontendIPConfigurations/LoadBalancerFrontend\",\r\n + \ \"etag\": \"W/\\\"b3916547-f8a2-4c6a-83df-3c9d37ab97b0\\\"\",\r\n \"type\": + \"Microsoft.Network/loadBalancers/frontendIPConfigurations\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/publicIPAddresses/asotest-publicip-jwwvys\"\r\n + \ },\r\n \"inboundNatPools\": [\r\n {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"\r\n + \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": + [],\r\n \"loadBalancingRules\": [],\r\n \"probes\": [],\r\n \"inboundNatRules\": + [],\r\n \"outboundRules\": [],\r\n \"inboundNatPools\": [\r\n {\r\n + \ \"name\": \"MyFancyNatPool\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\",\r\n + \ \"etag\": \"W/\\\"b3916547-f8a2-4c6a-83df-3c9d37ab97b0\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"frontendPortRangeStart\": + 50000,\r\n \"frontendPortRangeEnd\": 51000,\r\n \"backendPort\": + 22,\r\n \"protocol\": \"Tcp\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"enableFloatingIP\": false,\r\n \"enableDestinationServiceEndpoint\": + false,\r\n \"enableTcpReset\": false,\r\n \"allowBackendPortConflict\": + false,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/frontendIPConfigurations/LoadBalancerFrontend\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatPools\"\r\n + \ }\r\n ]\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n + \ \"tier\": \"Regional\"\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Etag: + - W/"b3916547-f8a2-4c6a-83df-3c9d37ab97b0" + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Arm-Service-Request-Id: + - d3e50f3f-7bb0-4213-94c6-1453aead0cf5 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14711829405121064090","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT2.1193887S","correlationId":"f055065a-f185-40b9-b67e-46c786a78ad6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks/subnets","locations":[null]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "14" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "2" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14711829405121064090","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT2.1193887S","correlationId":"f055065a-f185-40b9-b67e-46c786a78ad6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks/subnets","locations":[null]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "13" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_8f99abbe-cc26-5d71-93fd-e40cbf1fe74a?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1RjhGOTlBQkJFOjJEQ0MyNjoyRDVENzE6MkQ5M0ZEOjJERTQwQ0JGMUZFNzRBLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14996" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "3" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","name":"k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"14711829405121064090","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT5.1433031S","correlationId":"f055065a-f185-40b9-b67e-46c786a78ad6","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks/subnets","locations":[null]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc?api-version=2020-11-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-subnet-lgchpc\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\",\r\n + \ \"etag\": \"W/\\\"00443b3c-28ea-48da-9f2a-cc33f46d9abb\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Etag: + - W/"00443b3c-28ea-48da-9f2a-cc33f46d9abb" + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Arm-Service-Request-Id: + - 6abdd96a-c324-429c-afe6-ee81714e1f3d + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_44fe0b20-2216-5a9e-a8b2-998ee1f7bbbb?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1RjQ0RkUwQjIwOjJEMjIxNjoyRDVBOUU6MkRBOEIyOjJEOTk4RUUxRjdCQkJCLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14995" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: '{"name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-12-01","location":"westus2","name":"asotest-vmss-cmwetx","properties":{"platformFaultDomainCount":3,"singlePlacementGroup":false,"upgradePolicy":{"mode":"Automatic"},"virtualMachineProfile":{"networkProfile":{"networkInterfaceConfigurations":[{"name":"mynicconfig","properties":{"ipConfigurations":[{"name":"myipconfiguration","properties":{"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool"}],"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc"}}}],"primary":true}}]},"osProfile":{"adminUsername":"adminUser","computerNamePrefix":"computer","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"keyData":"ssh-rsa + {KEY}\n","path":"/home/adminUser/.ssh/authorized_keys"}]}}},"storageProfile":{"imageReference":{"offer":"UbuntuServer","publisher":"Canonical","sku":"18.04-lts","version":"latest"}}}},"sku":{"capacity":1,"name":"STANDARD_D1_v2"},"type":"Microsoft.Compute/virtualMachineScaleSets"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Compute/virtualMachineScaleSets'', + ''asotest-vmss-cmwetx'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.2466034S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d/operationStatuses/08585770383568353600?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "711" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.2466034S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "16" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "2" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "3" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "10" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "4" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "5" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "6" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "7" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "8" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "9" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT3.9538496S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "5" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "10" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"3045422051839131465","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT45.4719626S","correlationId":"5b89a038-0b15-4865-89f5-d9de6c7860a0","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]}\r\n + \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": + true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1289 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1RjIxQTBEOUEyOjJEM0M3QjoyRDUzQUI6MkQ4MzkxOjJEODJERjI2OEZFMDJELSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14994" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: '{"name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","Properties":{"Error":null,"debugSetting":{"detailLevel":"requestContent,responseContent"},"mode":"Incremental","template":{"$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#","contentVersion":"1.0.0.0","resources":[{"apiVersion":"2020-12-01","location":"westus2","name":"asotest-vmss-cmwetx","properties":{"platformFaultDomainCount":3,"singlePlacementGroup":false,"upgradePolicy":{"mode":"Automatic"},"virtualMachineProfile":{"extensionProfile":{"extensions":[{"name":"mycustomextension","properties":{"publisher":"Microsoft.Azure.Extensions","settings":{"commandToExecute":"/bin/bash + -c \"echo hello\""},"type":"CustomScript","typeHandlerVersion":"2.0"}}]},"networkProfile":{"networkInterfaceConfigurations":[{"name":"mynicconfig","properties":{"ipConfigurations":[{"name":"myipconfiguration","properties":{"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool"}],"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc"}}}],"primary":true}}]},"osProfile":{"adminUsername":"adminUser","computerNamePrefix":"computer","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"keyData":"ssh-rsa + {KEY}\n","path":"/home/adminUser/.ssh/authorized_keys"}]}}},"storageProfile":{"imageReference":{"offer":"UbuntuServer","publisher":"Canonical","sku":"18.04-lts","version":"latest"}}}},"sku":{"capacity":1,"name":"STANDARD_D1_v2"},"type":"Microsoft.Compute/virtualMachineScaleSets"}],"outputs":{"resourceId":{"type":"string","value":"[resourceId(''Microsoft.Compute/virtualMachineScaleSets'', + ''asotest-vmss-cmwetx'')]"}}}}}' + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: PUT + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16331775602936272336","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Accepted","timestamp":"2001-02-03T04:05:06Z","duration":"PT0.2023046S","correlationId":"a22f1d13-f7e2-4686-941f-39ff04dc9dbf","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d/operationStatuses/08585770382929654494?api-version=2019-10-01 + Cache-Control: + - no-cache + Content-Length: + - "712" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + status: 201 Created + code: 201 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "11" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16331775602936272336","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT2.532375S","correlationId":"a22f1d13-f7e2-4686-941f-39ff04dc9dbf","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "11" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "12" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16331775602936272336","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Running","timestamp":"2001-02-03T04:05:06Z","duration":"PT2.532375S","correlationId":"a22f1d13-f7e2-4686-941f-39ff04dc9dbf","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Retry-After: + - "11" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "13" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","name":"k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16331775602936272336","mode":"Incremental","debugSetting":{"detailLevel":"RequestContent, + ResponseContent"},"provisioningState":"Succeeded","timestamp":"2001-02-03T04:05:06Z","duration":"PT15.5818117S","correlationId":"a22f1d13-f7e2-4686-941f-39ff04dc9dbf","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus2"]}]}],"dependencies":[],"outputs":{"resourceId":{"type":"String","value":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx"}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx"}]}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1283 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Resources/deployments/k8s_21a0d9a2-3c7b-53ab-8391-82df268fe02d?api-version=2019-10-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQVNPVEVTVDoyRFJHOjJERlRSVEtBLUs4Uzo1RjIxQTBEOUEyOjJEM0M3QjoyRDUzQUI6MkQ4MzkxOjJEODJERjI2OEZFMDJELSIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2019-10-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14993" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: DELETE + response: + body: "" + headers: + Azure-Asyncnotification: + - Enabled + Azure-Asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c7e81611-db2c-42fb-92b1-20569d6a050a?api-version=2020-12-01 + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus2/operations/c7e81611-db2c-42fb-92b1-20569d6a050a?monitor=true&api-version=2020-12-01 + Pragma: + - no-cache + Retry-After: + - "10" + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;398,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1196,Microsoft.Compute/VmssQueuedVMOperations;0 + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14992" + X-Ms-Request-Charge: + - "1" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "2" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1280 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "3" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;187,Microsoft.Compute/GetVMScaleSet30Min;1279 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "4" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;186,Microsoft.Compute/GetVMScaleSet30Min;1278 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "5" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;185,Microsoft.Compute/GetVMScaleSet30Min;1277 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "6" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;184,Microsoft.Compute/GetVMScaleSet30Min;1276 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "7" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: "{\r\n \"name\": \"asotest-vmss-cmwetx\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus2\",\r\n \"sku\": {\r\n \"name\": \"STANDARD_D1_v2\",\r\n \"tier\": + \"Standard\",\r\n \"capacity\": 1\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": + false,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Automatic\"\r\n },\r\n + \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": + \"computer\",\r\n \"adminUsername\": \"adminUser\",\r\n \"linuxConfiguration\": + {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": + {\r\n \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/adminUser/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + {KEY}\\n\"\r\n }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"storageProfile\": + {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n + \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": {\r\n + \ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n + \ \"sku\": \"18.04-lts\",\r\n \"version\": \"latest\"\r\n }\r\n + \ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"mynicconfig\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"myipconfiguration\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/virtualNetworks/asotest-vn-bjwueq/subnets/asotest-subnet-lgchpc\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Network/loadBalancers/asotest-loadbalancer-gwugus/inboundNatPools/MyFancyNatPool\"}]}}]}}]},\r\n + \ \"extensionProfile\": {\r\n \"extensions\": [\r\n {\r\n + \ \"name\": \"mycustomextension\",\r\n \"properties\": + {\r\n \"autoUpgradeMinorVersion\": false,\r\n \"publisher\": + \"Microsoft.Azure.Extensions\",\r\n \"type\": \"CustomScript\",\r\n + \ \"typeHandlerVersion\": \"2.0\",\r\n \"settings\": + {\"commandToExecute\":\"/bin/bash -c \\\"echo hello\\\"\"}\r\n }\r\n + \ }\r\n ]\r\n }\r\n },\r\n \"provisioningState\": + \"Deleting\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"80745578-66b6-40eb-bf10-bab4b99b1480\",\r\n \"platformFaultDomainCount\": + 3\r\n }\r\n}" + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Resource: + - Microsoft.Compute/GetVMScaleSet3Min;183,Microsoft.Compute/GetVMScaleSet30Min;1275 + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "8" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx'' + under resource group ''asotest-rg-ftrtka'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + Cache-Control: + - no-cache + Content-Length: + - "250" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Failure-Cause: + - gateway + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "9" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka/providers/Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx?api-version=2020-12-01 + method: GET + response: + body: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachineScaleSets/asotest-vmss-cmwetx'' + under resource group ''asotest-rg-ftrtka'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + Cache-Control: + - no-cache + Content-Length: + - "250" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Failure-Cause: + - gateway + status: 404 Not Found + code: 404 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "0" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: DELETE + response: + body: "" + headers: + Cache-Control: + - no-cache + Content-Length: + - "0" + Expires: + - "-1" + Location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1BU09URVNUOjJEUkc6MkRGVFJUS0EtV0VTVFVTMiIsImpvYkxvY2F0aW9uIjoid2VzdHVzMiJ9?api-version=2020-06-01 + Pragma: + - no-cache + Retry-After: + - "15" + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Ratelimit-Remaining-Subscription-Deletes: + - "14991" + status: 202 Accepted + code: 202 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "1" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "2" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "3" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "4" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "5" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "6" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "7" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "8" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "9" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "10" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "11" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "12" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "13" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "14" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "15" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "16" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "17" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "18" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka","name":"asotest-rg-ftrtka","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"CreatedAt":"2001-02-03T04:05:06Z"},"properties":{"provisioningState":"Deleting"}}' + headers: + Cache-Control: + - no-cache + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + Vary: + - Accept-Encoding + X-Content-Type-Options: + - nosniff + status: 200 OK + code: 200 + duration: "" +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + Test-Request-Attempt: + - "19" + url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/asotest-rg-ftrtka?api-version=2020-06-01 + method: GET + response: + body: '{"error":{"code":"ResourceGroupNotFound","message":"Resource group ''asotest-rg-ftrtka'' + could not be found."}}' + headers: + Cache-Control: + - no-cache + Content-Length: + - "109" + Content-Type: + - application/json; charset=utf-8 + Expires: + - "-1" + Pragma: + - no-cache + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + X-Content-Type-Options: + - nosniff + X-Ms-Failure-Cause: + - gateway + status: 404 Not Found + code: 404 + duration: "" diff --git a/hack/generated/go.mod b/hack/generated/go.mod index 43ac659c862..cfb6d8f8d23 100644 --- a/hack/generated/go.mod +++ b/hack/generated/go.mod @@ -7,6 +7,7 @@ require ( github.com/Azure/go-autorest/autorest v0.11.0 github.com/Azure/go-autorest/autorest/azure/auth v0.5.0 github.com/Azure/go-autorest/autorest/date v0.3.0 + github.com/Azure/go-autorest/autorest/to v0.4.0 github.com/beorn7/perks v1.0.1 // indirect github.com/devigned/tab v0.1.1 github.com/dnaeon/go-vcr v1.1.0 @@ -21,6 +22,7 @@ require ( github.com/onsi/gomega v1.10.1 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 // indirect + golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect golang.org/x/sys v0.0.0-20210317225723-c4fcb01b228e // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect @@ -28,6 +30,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect k8s.io/api v0.18.6 + k8s.io/apiextensions-apiserver v0.18.6 // indirect k8s.io/apimachinery v0.18.6 k8s.io/client-go v0.18.6 k8s.io/klog/v2 v2.0.0 diff --git a/hack/generated/go.sum b/hack/generated/go.sum index 4cd669c29f1..fbdd93aa03c 100644 --- a/hack/generated/go.sum +++ b/hack/generated/go.sum @@ -29,6 +29,8 @@ github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxB github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0= github.com/Azure/go-autorest/autorest/mocks v0.4.0 h1:z20OWOSG5aCye0HEkDp6TPmP17ZcfeMxPi6HnSALa8c= github.com/Azure/go-autorest/autorest/mocks v0.4.0/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= +github.com/Azure/go-autorest/autorest/to v0.4.0 h1:oXVqrxakqqV1UZdSazDOPOLvOIz+XA683u8EctwboHk= +github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE= github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc= github.com/Azure/go-autorest/logger v0.2.0 h1:e4RVHVZKC5p6UANLJHkM4OfR1UKZPj8Wt8Pcx+3oqrE= github.com/Azure/go-autorest/logger v0.2.0/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= diff --git a/hack/generated/pkg/reconcilers/azure_deployment_reconciler.go b/hack/generated/pkg/reconcilers/azure_deployment_reconciler.go index 2ead35f6ea3..72b3c198255 100644 --- a/hack/generated/pkg/reconcilers/azure_deployment_reconciler.go +++ b/hack/generated/pkg/reconcilers/azure_deployment_reconciler.go @@ -468,6 +468,9 @@ func (r *AzureDeploymentReconciler) CreateDeployment(ctx context.Context) (ctrl. // but is either running or has run to completion return ctrl.Result{}, errors.Wrap(err, "received conflict when trying to create deployment") } else { + // TODO: The above call can fail due to a 4xx error code - this may mean the resource we're attempting to create is bad and we need to handle the error. See: + // TODO: "Error during reconcile" "error"="autorest/azure: Service returned an error. Status=400 Code=\"InvalidTemplateDeployment\" Message=\"The template deployment failed because of policy violation. Please see details for more information." + // TODO: you can repro the above by attempting to create a Linux VMSS without setting DisablePasswordAuthentication to true, or by using an invalid image reference return ctrl.Result{}, err } } else { diff --git a/hack/generated/pkg/testcommon/error_translating_roundtripper.go b/hack/generated/pkg/testcommon/error_translating_roundtripper.go index 9e5550130af..b0dbfb493be 100644 --- a/hack/generated/pkg/testcommon/error_translating_roundtripper.go +++ b/hack/generated/pkg/testcommon/error_translating_roundtripper.go @@ -69,15 +69,16 @@ func (w errorTranslation) RoundTrip(req *http.Request) (*http.Response, error) { panic("io.ReadAll(req.Body) failed, this should always succeed because req.Body has been replaced by a buffer") } - sentBodyString = string(bodyBytes) + // Apply the same body filtering that we do in recordings so that the diffs don't show things + // that we've just removed + sentBodyString = hideRecordingData(string(bodyBytes)) } // find all request bodies for the specified method/URL combination matchingBodies := w.findMatchingBodies(req) if len(matchingBodies) == 0 { - w.t.Fatalf("\n*** Cannot find go-vcr recording for request (no responses recorded for this method/URL): %s %s (attempt: %s)\n\n", req.Method, req.URL.String(), req.Header.Get(COUNT_HEADER)) - return nil, originalErr + panic(fmt.Sprintf("\n*** Cannot find go-vcr recording for request (no responses recorded for this method/URL): %s %s (attempt: %s)\n\n", req.Method, req.URL.String(), req.Header.Get(COUNT_HEADER))) } // locate the request body with the shortest diff from the sent body @@ -89,8 +90,7 @@ func (w errorTranslation) RoundTrip(req *http.Request) (*http.Response, error) { } } - w.t.Fatalf("\n*** Cannot find go-vcr recording for request (body mismatch): %s %s\nShortest body diff: %s\n\n", req.Method, req.URL.String(), shortestDiff) - return nil, originalErr + panic(fmt.Sprintf("\n*** Cannot find go-vcr recording for request (body mismatch): %s %s\nShortest body diff: %s\n\n", req.Method, req.URL.String(), shortestDiff)) } // finds bodies for interactions where request method, URL, and COUNT_HEADER match diff --git a/hack/generated/pkg/testcommon/test_context.go b/hack/generated/pkg/testcommon/test_context.go index aad21f2eab2..2ef1ad67f36 100644 --- a/hack/generated/pkg/testcommon/test_context.go +++ b/hack/generated/pkg/testcommon/test_context.go @@ -7,6 +7,8 @@ package testcommon import ( "bytes" + "crypto/rand" + "crypto/rsa" "fmt" "io" "net/http" @@ -20,6 +22,7 @@ import ( "github.com/go-logr/logr" "github.com/google/uuid" "github.com/pkg/errors" + "golang.org/x/crypto/ssh" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" resources "github.com/Azure/azure-service-operator/hack/generated/_apis/microsoft.resources/v1alpha1api20200601" @@ -153,7 +156,7 @@ func createRecorder(cassetteName string, recordReplay bool) (autorest.Authorizer } r.Body = io.NopCloser(&b) - return b.String() == "" || hideDates(b.String()) == i.Body + return b.String() == "" || hideRecordingData(b.String()) == i.Body }) r.AddSaveFilter(func(i *cassette.Interaction) error { @@ -164,8 +167,8 @@ func createRecorder(cassetteName string, recordReplay bool) (autorest.Authorizer return strings.ReplaceAll(s, subscriptionID, uuid.Nil.String()) } - i.Request.Body = hideDates(hideSubID(i.Request.Body)) - i.Response.Body = hideDates(hideSubID(i.Response.Body)) + i.Request.Body = hideRecordingData(hideSubID(i.Request.Body)) + i.Response.Body = hideRecordingData(hideSubID(i.Response.Body)) i.Request.URL = hideSubID(i.Request.URL) for _, values := range i.Request.Headers { @@ -200,7 +203,8 @@ func createRecorder(cassetteName string, recordReplay bool) (autorest.Authorizer return authorizer, subscriptionID, r, nil } -var dateMatcher *regexp.Regexp = regexp.MustCompile(`\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d+)?Z`) +var dateMatcher = regexp.MustCompile(`\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d+)?Z`) +var sshKeyMatcher = regexp.MustCompile("ssh-rsa [0-9a-zA-Z+/=]+") // hideDates replaces all ISO8601 datetimes with a fixed value // this lets us match requests that may contain time-sensitive information (timestamps, etc) @@ -208,6 +212,18 @@ func hideDates(s string) string { return dateMatcher.ReplaceAllLiteralString(s, "2001-02-03T04:05:06Z") // this should be recognizable/parseable as a fake date } +// hideSSHKeys hides anything that looks like SSH keys +func hideSSHKeys(s string) string { + return sshKeyMatcher.ReplaceAllLiteralString(s, "ssh-rsa {KEY}") +} + +func hideRecordingData(s string) string { + result := hideDates(s) + result = hideSSHKeys(result) + + return result +} + func (tc PerTestContext) NewTestResourceGroup() *resources.ResourceGroup { return &resources.ResourceGroup{ ObjectMeta: metav1.ObjectMeta{ @@ -220,6 +236,34 @@ func (tc PerTestContext) NewTestResourceGroup() *resources.ResourceGroup { } } +// GenerateSSHKey generates an SSH key. +func (tc PerTestContext) GenerateSSHKey(size int) (*string, error) { + // Note: If we ever want to make sure that the SSH keys are the same between + // test runs, we can base it off of a hash of subscription ID. Right now since + // we just replace the SSH key in the recordings regardless of what the value is + // there's no need for uniformity between runs though. + + key, err := rsa.GenerateKey(rand.Reader, size) + if err != nil { + return nil, err + } + + err = key.Validate() + if err != nil { + return nil, err + } + + sshPublicKey, err := ssh.NewPublicKey(&key.PublicKey) + if err != nil { + return nil, err + } + + resultBytes := ssh.MarshalAuthorizedKey(sshPublicKey) + result := string(resultBytes) + + return &result, nil +} + func (tc PerTestContext) MakeARMId(resourceGroup string, provider string, params ...string) string { if len(params) == 0 { panic("At least 2 params must be specified") diff --git a/hack/generator/azure-arm.yaml b/hack/generator/azure-arm.yaml index acf18d1bf7e..6d9048ee2dd 100644 --- a/hack/generator/azure-arm.yaml +++ b/hack/generator/azure-arm.yaml @@ -70,6 +70,13 @@ typeFilters: group: microsoft.resources name: DeploymentScript* because: Some types use OneOf to model inheritance, which we don't currently support. + - action: include + group: microsoft.compute.extensions + name: GenericExtension + because: This is the one kind of extension we want to allow + - action: prune + group: microsoft.compute.extensions + because: All other extensions should be removed exportFilters: # First some always-applicable exclusions: - action: exclude @@ -157,6 +164,11 @@ exportFilters: version: v*api20200930 name: Disk because: "including compute disk" + - action: include-transitive + group: microsoft.compute + version: v*api20201201 + name: VirtualMachineScaleSet + because: "including VMSS" # Exclude everything else as we are operating on an opt-in basis at the moment: - action: exclude because: We don't want to generate anything else, at the moment. @@ -269,6 +281,11 @@ typeTransformers: property: PrivateEndpoint remove: true because: The PrivateEndpoint property is enitrely readOnly but is modelled poorly in the JSON schemas. See discussion on https://github.com/Azure/azure-resource-manager-schemas/issues/835 + - name: VirtualMachineScaleSetIdentity + group: microsoft.compute + property: UserAssignedIdentities + remove: true + because: The UserAssignedIdentities property is enitrely readOnly but is modelled poorly in the JSON schemas. See discussion on https://github.com/Azure/azure-resource-manager-schemas/issues/835 - group: microsoft.eventgrid version: v*api20190601 name: Domains_Spec