зеркало из https://github.com/microsoft/azure-cli.git
[Monitor] Re-enable Autoscale recorded tests (#5762)
* Re-enable Autoscale recorded tests. Re-record tests. * Update recordings. * Re-re-record tests. * Re-re-re-record tests. This is getting so fun. * Convert timezone command to Live test.
This commit is contained in:
Родитель
83fb2aef72
Коммит
d1ada06ba4
|
@ -433,7 +433,6 @@
|
|||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\commands.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\custom.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\tests\latest\test_lab.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\tests\latest\test_validators.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\validators.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\_client_factory.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\_format.py" />
|
||||
|
@ -442,25 +441,29 @@
|
|||
<Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\__init__.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\azure_bdist_wheel.py" />
|
||||
<Compile Include="command_modules\azure-cli-lab\setup.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\actions.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\commands.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\actions.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\action_groups.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\activity_log.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\activity_log_alerts.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\autoscale_settings.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\diagnostics_settings.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\log_profiles.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\metric_alert.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\operations\__init__.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_activity_log_components.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_activity_log_scenario.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_action_groups.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_activity_log_alert.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_autoscale.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_diagnostic_settings.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_log_profile.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_metrics.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_metric_alert_scenarios.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\tests\latest\test_monitor_unittest.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\transformers.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\util.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\_autoscale_util.py" />
|
||||
<Compile Include="command_modules\azure-cli-monitor\azure\cli\command_modules\monitor\_exception_handler.py">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "tags": {"use": "az-test"}}'
|
||||
body: '{"location": "westus", "tags": {"use": "az-test"}}'
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -8,24 +8,24 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['50']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:40:24 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:50:29 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1198']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1197']
|
||||
status: {code: 201, message: Created}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -35,19 +35,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:40:26 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:50:29 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -64,7 +64,7 @@ interactions:
|
|||
method: GET
|
||||
uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
|
||||
response:
|
||||
body: {string: !!python/unicode "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
|
||||
body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
|
||||
,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
|
||||
:{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
|
||||
type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
|
||||
|
@ -107,22 +107,22 @@ interactions:
|
|||
content-length: ['2235']
|
||||
content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
|
||||
content-type: [text/plain; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:40:26 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:50:30 GMT']
|
||||
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
|
||||
expires: ['Wed, 07 Mar 2018 23:45:26 GMT']
|
||||
source-age: ['14']
|
||||
expires: ['Tue, 13 Mar 2018 21:55:30 GMT']
|
||||
source-age: ['0']
|
||||
strict-transport-security: [max-age=31536000]
|
||||
vary: ['Authorization,Accept-Encoding']
|
||||
via: [1.1 varnish]
|
||||
x-cache: [HIT]
|
||||
x-cache-hits: ['1']
|
||||
x-cache: [MISS]
|
||||
x-cache-hits: ['0']
|
||||
x-content-type-options: [nosniff]
|
||||
x-fastly-request-id: [668d3a09326aac2eb35572fba1f41ed9c5cda8c6]
|
||||
x-fastly-request-id: [73072e2362fef6af7441bff6130e2a4d1b3ef373]
|
||||
x-frame-options: [deny]
|
||||
x-geo-block-list: ['']
|
||||
x-github-request-id: ['BA40:6119:23BD345:257FDD1:5AA0785D']
|
||||
x-served-by: [cache-sea1036-SEA]
|
||||
x-timer: ['S1520466027.632793,VS0,VE0']
|
||||
x-github-request-id: ['A8F8:6113:3F09219:42763B0:5AA847A6']
|
||||
x-served-by: [cache-sea1031-SEA]
|
||||
x-timer: ['S1520977830.402736,VS0,VE110']
|
||||
x-xss-protection: [1; mode=block]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
|
@ -133,19 +133,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 networkmanagementclient/1.8.0a1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 networkmanagementclient/2.0.0rc1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"value":[]}'}
|
||||
body: {string: '{"value":[]}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['12']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:40:25 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:50:29 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -153,69 +153,68 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"properties": {"mode": "Incremental", "parameters": {},
|
||||
"template": {"parameters": {}, "outputs": {"VMSS": {"type": "object", "value":
|
||||
"[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', ''vmss1''),providers(''Microsoft.Compute'',
|
||||
''virtualMachineScaleSets'').apiVersions[0])]"}}, "variables": {}, "contentVersion":
|
||||
"1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"resources": [{"name": "vmss1VNET", "tags": {}, "apiVersion": "2015-06-15",
|
||||
"location": "westus", "dependsOn": [], "type": "Microsoft.Network/virtualNetworks",
|
||||
"properties": {"subnets": [{"name": "vmss1Subnet", "properties": {"addressPrefix":
|
||||
"10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}}, {"sku":
|
||||
{"name": "Basic"}, "name": "vmss1LBPublicIP", "tags": {}, "apiVersion": "2017-11-01",
|
||||
"location": "westus", "dependsOn": [], "type": "Microsoft.Network/publicIPAddresses",
|
||||
"properties": {"publicIPAllocationMethod": "Dynamic"}}, {"sku": {"name": "Basic"},
|
||||
"name": "vmss1LB", "tags": {}, "apiVersion": "2017-11-01", "location": "westus",
|
||||
body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0", "parameters": {"adminPassword": {"type": "securestring",
|
||||
"metadata": {"description": "Secure adminPassword"}}}, "variables": {}, "resources":
|
||||
[{"name": "vmss1VNET", "type": "Microsoft.Network/virtualNetworks", "location":
|
||||
"westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties":
|
||||
{"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name":
|
||||
"vmss1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion":
|
||||
"2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss1LBPublicIP",
|
||||
"location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod":
|
||||
"Dynamic"}, "sku": {"name": "Basic"}}, {"type": "Microsoft.Network/loadBalancers",
|
||||
"name": "vmss1LB", "location": "westus", "tags": {}, "apiVersion": "2018-01-01",
|
||||
"dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", "Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"],
|
||||
"type": "Microsoft.Network/loadBalancers", "properties": {"frontendIPConfigurations":
|
||||
[{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}],
|
||||
"inboundNatPools": [{"name": "vmss1LBNatPool", "properties": {"protocol": "tcp",
|
||||
"backendPort": 22, "frontendIPConfiguration": {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'',
|
||||
''vmss1LB''), ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"},
|
||||
"frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119"}}], "backendAddressPools":
|
||||
[{"name": "vmss1LBBEPool"}]}}, {"sku": {"capacity": 2, "name": "Standard_D1_v2"},
|
||||
"name": "vmss1", "tags": {}, "apiVersion": "2017-12-01", "location": "westus",
|
||||
"properties": {"backendAddressPools": [{"name": "vmss1LBBEPool"}], "inboundNatPools":
|
||||
[{"name": "vmss1LBNatPool", "properties": {"frontendIPConfiguration": {"id":
|
||||
"[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss1LB\''), \''/frontendIPConfigurations/\'',
|
||||
\''loadBalancerFrontEnd\'')]"}, "protocol": "tcp", "frontendPortRangeStart":
|
||||
"50000", "frontendPortRangeEnd": "50119", "backendPort": 22}}], "frontendIPConfigurations":
|
||||
[{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}]},
|
||||
"sku": {"name": "Basic"}}, {"type": "Microsoft.Compute/virtualMachineScaleSets",
|
||||
"name": "vmss1", "location": "westus", "tags": {}, "apiVersion": "2017-12-01",
|
||||
"dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", "Microsoft.Network/loadBalancers/vmss1LB"],
|
||||
"type": "Microsoft.Compute/virtualMachineScaleSets", "properties": {"overprovision":
|
||||
true, "virtualMachineProfile": {"storageProfile": {"imageReference": {"sku":
|
||||
"16.04-LTS", "publisher": "Canonical", "version": "latest", "offer": "UbuntuServer"},
|
||||
"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null},
|
||||
"createOption": "FromImage"}}, "osProfile": {"computerNamePrefix": "vmss1ad6a",
|
||||
"adminUsername": "travisprescott", "linuxConfiguration": {"ssh": {"publicKeys":
|
||||
[{"path": "/home/travisprescott/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==
|
||||
trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile":
|
||||
{"networkInterfaceConfigurations": [{"name": "vmss1ad6aNic", "properties": {"primary":
|
||||
"true", "ipConfigurations": [{"name": "vmss1ad6aIPConfig", "properties": {"subnet":
|
||||
{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
|
||||
"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}],
|
||||
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}]}}]}}]}},
|
||||
"singlePlacementGroup": true, "upgradePolicy": {"mode": "manual"}}}]}}}'
|
||||
"sku": {"name": "Standard_D1_v2", "capacity": 2}, "properties": {"overprovision":
|
||||
true, "upgradePolicy": {"mode": "manual"}, "virtualMachineProfile": {"storageProfile":
|
||||
{"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk":
|
||||
{"storageAccountType": null}}, "imageReference": {"publisher": "Canonical",
|
||||
"offer": "UbuntuServer", "sku": "16.04-LTS", "version": "latest"}}, "osProfile":
|
||||
{"computerNamePrefix": "vmss16092", "adminUsername": "testadmin", "adminPassword":
|
||||
"[parameters(\''adminPassword\'')]"}, "networkProfile": {"networkInterfaceConfigurations":
|
||||
[{"name": "vmss16092Nic", "properties": {"primary": "true", "ipConfigurations":
|
||||
[{"name": "vmss16092IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
|
||||
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
|
||||
"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},
|
||||
"singlePlacementGroup": true}}], "outputs": {"VMSS": {"type": "object", "value":
|
||||
"[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vmss1\''),providers(\''Microsoft.Compute\'',
|
||||
\''virtualMachineScaleSets\'').apiVersions[0])]"}}}, "parameters": {"adminPassword":
|
||||
{"value": "TestTest12#$"}}, "mode": "Incremental"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Length: ['4592']
|
||||
Content-Length: ['3866']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_GzN5cZBCF5JYtJe3nt4ch8u3Qt0P1ZUL","name":"vmss_deploy_GzN5cZBCF5JYtJe3nt4ch8u3Qt0P1ZUL","properties":{"templateHash":"4302598425944166444","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-03-07T23:40:30.1799229Z","duration":"PT0.5459135S","correlationId":"280bfb4d-f94b-45a6-9539-3f93f289a7ca","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_7tPFVUGKKhN5eLEUdBRYILvmSMrWL5Ce","name":"vmss_deploy_7tPFVUGKKhN5eLEUdBRYILvmSMrWL5Ce","properties":{"templateHash":"16553946267567839507","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-03-13T21:50:32.6346297Z","duration":"PT0.5236635S","correlationId":"b7d5983f-18f2-420a-865a-b9cb374ea944","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
|
||||
headers:
|
||||
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_GzN5cZBCF5JYtJe3nt4ch8u3Qt0P1ZUL/operationStatuses/08586811408558436219?api-version=2017-05-10']
|
||||
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_7tPFVUGKKhN5eLEUdBRYILvmSMrWL5Ce/operationStatuses/08586806290533666702?api-version=2017-05-10']
|
||||
cache-control: [no-cache]
|
||||
content-length: ['2651']
|
||||
content-length: ['2691']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:40:30 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:50:31 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1193']
|
||||
status: {code: 201, message: Created}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -225,19 +224,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811408558436219?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806290533666702?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:41:00 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:51:03 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -252,19 +251,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811408558436219?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806290533666702?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:41:30 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:51:32 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -279,19 +278,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811408558436219?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806290533666702?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:42:08 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:03 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -306,46 +305,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811408558436219?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806290533666702?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:42:38 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811408558436219?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Succeeded"}'}
|
||||
body: {string: '{"status":"Succeeded"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['22']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:08 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:33 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -360,21 +332,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_GzN5cZBCF5JYtJe3nt4ch8u3Qt0P1ZUL","name":"vmss_deploy_GzN5cZBCF5JYtJe3nt4ch8u3Qt0P1ZUL","properties":{"templateHash":"4302598425944166444","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-03-07T23:42:43.6095327Z","duration":"PT2M13.9755233S","correlationId":"280bfb4d-f94b-45a6-9539-3f93f289a7ca","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1ad6a","adminUsername":"travisprescott","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/travisprescott/.ssh/authorized_keys","keyData":"ssh-rsa
|
||||
AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==
|
||||
trpresco@microsoft.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1ad6aNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss1ad6aIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"9b7d9e2a-4aac-4c39-8b8d-36f5ebe8c21a"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Resources/deployments/vmss_deploy_7tPFVUGKKhN5eLEUdBRYILvmSMrWL5Ce","name":"vmss_deploy_7tPFVUGKKhN5eLEUdBRYILvmSMrWL5Ce","properties":{"templateHash":"16553946267567839507","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-03-13T21:52:33.2469306Z","duration":"PT2M1.1359644S","correlationId":"b7d5983f-18f2-420a-865a-b9cb374ea944","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss16092","adminUsername":"testadmin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss16092Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss16092IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"36c81cb6-f446-4add-97ba-8fce5a071866"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['6070']
|
||||
content-length: ['5267']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:09 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:35 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -389,50 +359,45 @@ interactions:
|
|||
CommandName: [vmss show]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 computemanagementclient/3.1.0rc3 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 computemanagementclient/3.1.0rc3 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2017-12-01
|
||||
response:
|
||||
body: {string: !!python/unicode "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\"\
|
||||
,\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
|
||||
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
|
||||
\ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
|
||||
: {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
|
||||
\ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
|
||||
\ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
|
||||
\ \"computerNamePrefix\": \"vmss1ad6a\",\r\n \"adminUsername\"\
|
||||
: \"travisprescott\",\r\n \"linuxConfiguration\": {\r\n \"\
|
||||
disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \
|
||||
\ \"publicKeys\": [\r\n {\r\n \"path\": \"\
|
||||
/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\
|
||||
: \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\
|
||||
\ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n \
|
||||
\ }\r\n },\r\n \"secrets\": []\r\n },\r\n \"\
|
||||
storageProfile\": {\r\n \"osDisk\": {\r\n \"createOption\"\
|
||||
: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"\
|
||||
managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\
|
||||
\n }\r\n },\r\n \"imageReference\": {\r\n \
|
||||
\ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\
|
||||
\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\
|
||||
\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\"\
|
||||
:[{\"name\":\"vmss1ad6aNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
|
||||
\ \"computerNamePrefix\": \"vmss16092\",\r\n \"adminUsername\"\
|
||||
: \"testadmin\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
|
||||
: false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
|
||||
: {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
|
||||
,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
|
||||
\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
|
||||
\ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
|
||||
Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
|
||||
: \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
|
||||
\ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
|
||||
name\":\"vmss16092Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
|
||||
:false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"\
|
||||
ipConfigurations\":[{\"name\":\"vmss1ad6aIPConfig\",\"properties\":{\"subnet\"\
|
||||
ipConfigurations\":[{\"name\":\"vmss16092IPConfig\",\"properties\":{\"subnet\"\
|
||||
:{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet\"\
|
||||
},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
|
||||
:[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"\
|
||||
}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"\
|
||||
}]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
|
||||
overprovision\": true,\r\n \"uniqueId\": \"9b7d9e2a-4aac-4c39-8b8d-36f5ebe8c21a\"\
|
||||
overprovision\": true,\r\n \"uniqueId\": \"36c81cb6-f446-4add-97ba-8fce5a071866\"\
|
||||
\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
|
||||
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\
|
||||
,\r\n \"name\": \"vmss1\"\r\n}"}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['3431']
|
||||
content-length: ['2465']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:10 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:36 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
|
||||
|
@ -440,7 +405,7 @@ interactions:
|
|||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;965']
|
||||
x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;183,Microsoft.Compute/GetVMScaleSet30Min;933']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -450,19 +415,19 @@ interactions:
|
|||
CommandName: [monitor autoscale create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001","name":"cli_test_monitor_autoscale000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:11 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:36 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -470,10 +435,10 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"properties": {"notifications": [{"webhooks": [], "operation":
|
||||
"Scale", "email": {"customEmails": []}}], "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"3", "minimum": "3", "maximum": "3"}, "name": "default"}]}, "location": "westus"}'
|
||||
body: 'b''{"location": "westus", "properties": {"profiles": [{"name": "default",
|
||||
"capacity": {"minimum": "3", "maximum": "3", "default": "3"}, "rules": []}],
|
||||
"notifications": [{"operation": "Scale", "email": {"customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -481,26 +446,25 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['497']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:14 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:39 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1198']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
status: {code: 201, message: Created}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -510,20 +474,19 @@ interactions:
|
|||
CommandName: [monitor autoscale list]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}]}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['970']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:14 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:40 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -540,20 +503,19 @@ interactions:
|
|||
CommandName: [monitor autoscale show]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:16 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:40 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -570,20 +532,19 @@ interactions:
|
|||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:16 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:41 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -593,13 +554,12 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "properties": {"notifications":
|
||||
[{"webhooks": [], "operation": "Scale", "email": {"sendToSubscriptionCoAdministrators":
|
||||
false, "customEmails": [], "sendToSubscriptionAdministrator": false}}], "targetResourceUri":
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"2", "minimum": "2", "maximum": "2"}, "name": "default"}]}, "tags": {"$type":
|
||||
"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"}}'
|
||||
body: 'b''{"location": "westus", "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}, "properties": {"profiles":
|
||||
[{"name": "default", "capacity": {"minimum": "2", "maximum": "2", "default":
|
||||
"2"}, "rules": []}], "notifications": [{"operation": "Scale", "email": {"sendToSubscriptionAdministrator":
|
||||
false, "sendToSubscriptionCoAdministrators": false, "customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -607,20 +567,84 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['729']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"2","maximum":"2","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:18 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:44 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1190']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Tue, 13 Mar 2018 21:52:45 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: 'b''{"location": "westus", "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}, "properties": {"profiles":
|
||||
[{"name": "default", "capacity": {"minimum": "1", "maximum": "4", "default":
|
||||
"2"}, "rules": []}], "notifications": [{"operation": "Scale", "email": {"sendToSubscriptionAdministrator":
|
||||
false, "sendToSubscriptionCoAdministrators": false, "customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Length: ['729']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"1","maximum":"4","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Tue, 13 Mar 2018 21:52:46 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -638,20 +662,19 @@ interactions:
|
|||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"2","maximum":"2","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"1","maximum":"4","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:19 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:47 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -661,13 +684,12 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "properties": {"notifications":
|
||||
[{"webhooks": [], "operation": "Scale", "email": {"sendToSubscriptionCoAdministrators":
|
||||
false, "customEmails": [], "sendToSubscriptionAdministrator": false}}], "targetResourceUri":
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"2", "minimum": "1", "maximum": "4"}, "name": "default"}]}, "tags": {"$type":
|
||||
"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"}}'
|
||||
body: 'b''{"location": "westus", "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}, "properties": {"profiles":
|
||||
[{"name": "default", "capacity": {"minimum": "1", "maximum": "5", "default":
|
||||
"2"}, "rules": []}], "notifications": [{"operation": "Scale", "email": {"sendToSubscriptionAdministrator":
|
||||
false, "sendToSubscriptionCoAdministrators": false, "customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -675,88 +697,19 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['729']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"1","maximum":"4","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:21 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"1","maximum":"4","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:22 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "properties": {"notifications":
|
||||
[{"webhooks": [], "operation": "Scale", "email": {"sendToSubscriptionCoAdministrators":
|
||||
false, "customEmails": [], "sendToSubscriptionAdministrator": false}}], "targetResourceUri":
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"2", "minimum": "1", "maximum": "5"}, "name": "default"}]}, "tags": {"$type":
|
||||
"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"}}'
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [monitor autoscale update]
|
||||
Connection: [keep-alive]
|
||||
Content-Length: ['729']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"1","maximum":"5","default":"2"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:23 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:49 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -775,24 +728,23 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['0']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: DELETE
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode ''}
|
||||
body: {string: ''}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['0']
|
||||
date: ['Wed, 07 Mar 2018 23:43:25 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:50 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1198']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -803,23 +755,23 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['0']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: DELETE
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode ''}
|
||||
body: {string: ''}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['0']
|
||||
date: ['Wed, 07 Mar 2018 23:43:27 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:51 GMT']
|
||||
expires: ['-1']
|
||||
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTU9OSVRPUjo1RkFVVE9TQ0FMRUEyNTVKVU5DVUg0SjU3RXxGMjNGRkMzQTA0RkEwMDcxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
|
||||
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTU9OSVRPUjo1RkFVVE9TQ0FMRURQR0lNMk5YVElBM1RENXwzMDYwMjhDMjFCMzc4QjEzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1198']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1193']
|
||||
status: {code: 202, message: Accepted}
|
||||
version: 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
interactions:
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "tags": {"use": "az-test"}}'
|
||||
body: '{"location": "westus", "tags": {"use": "az-test"}}'
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -8,19 +8,19 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['50']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:44 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:53 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -35,19 +35,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:44 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:53 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -64,7 +64,7 @@ interactions:
|
|||
method: GET
|
||||
uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
|
||||
response:
|
||||
body: {string: !!python/unicode "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
|
||||
body: {string: "{\n \"$schema\":\"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\
|
||||
,\n \"contentVersion\":\"1.0.0.0\",\n \"parameters\":{},\n \"variables\"\
|
||||
:{},\n \"resources\":[],\n\n \"outputs\":{\n \"aliases\":{\n \"\
|
||||
type\":\"object\",\n \"value\":{\n\n \"Linux\":{\n \"\
|
||||
|
@ -107,22 +107,22 @@ interactions:
|
|||
content-length: ['2235']
|
||||
content-security-policy: [default-src 'none'; style-src 'unsafe-inline'; sandbox]
|
||||
content-type: [text/plain; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:45 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:54 GMT']
|
||||
etag: ['"d6824855d13e27c5258a680eb60f635d088fd05e"']
|
||||
expires: ['Wed, 07 Mar 2018 23:48:45 GMT']
|
||||
source-age: ['212']
|
||||
expires: ['Tue, 13 Mar 2018 21:57:54 GMT']
|
||||
source-age: ['144']
|
||||
strict-transport-security: [max-age=31536000]
|
||||
vary: ['Authorization,Accept-Encoding']
|
||||
via: [1.1 varnish]
|
||||
x-cache: [HIT]
|
||||
x-cache-hits: ['1']
|
||||
x-content-type-options: [nosniff]
|
||||
x-fastly-request-id: [2c352a9cc8ce271af6541edbb8d194596294c6f6]
|
||||
x-fastly-request-id: [b7016f3234586c42f2cf3e8a61b0b4117005759f]
|
||||
x-frame-options: [deny]
|
||||
x-geo-block-list: ['']
|
||||
x-github-request-id: ['BA40:6119:23BD345:257FDD1:5AA0785D']
|
||||
x-served-by: [cache-sea1049-SEA]
|
||||
x-timer: ['S1520466225.339016,VS0,VE0']
|
||||
x-github-request-id: ['A8F8:6113:3F09219:42763B0:5AA847A6']
|
||||
x-served-by: [cache-sea1032-SEA]
|
||||
x-timer: ['S1520977974.463412,VS0,VE0']
|
||||
x-xss-protection: [1; mode=block]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
|
@ -133,19 +133,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 networkmanagementclient/1.8.0a1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 networkmanagementclient/2.0.0rc1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks?api-version=2017-11-01
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"value":[]}'}
|
||||
body: {string: '{"value":[]}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['12']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:45 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:54 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -153,69 +153,68 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"properties": {"mode": "Incremental", "parameters": {},
|
||||
"template": {"parameters": {}, "outputs": {"VMSS": {"type": "object", "value":
|
||||
"[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', ''vmss1''),providers(''Microsoft.Compute'',
|
||||
''virtualMachineScaleSets'').apiVersions[0])]"}}, "variables": {}, "contentVersion":
|
||||
"1.0.0.0", "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"resources": [{"name": "vmss1VNET", "tags": {}, "apiVersion": "2015-06-15",
|
||||
"location": "westus", "dependsOn": [], "type": "Microsoft.Network/virtualNetworks",
|
||||
"properties": {"subnets": [{"name": "vmss1Subnet", "properties": {"addressPrefix":
|
||||
"10.0.0.0/24"}}], "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}}, {"sku":
|
||||
{"name": "Basic"}, "name": "vmss1LBPublicIP", "tags": {}, "apiVersion": "2017-11-01",
|
||||
"location": "westus", "dependsOn": [], "type": "Microsoft.Network/publicIPAddresses",
|
||||
"properties": {"publicIPAllocationMethod": "Dynamic"}}, {"sku": {"name": "Basic"},
|
||||
"name": "vmss1LB", "tags": {}, "apiVersion": "2017-11-01", "location": "westus",
|
||||
body: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0", "parameters": {"adminPassword": {"type": "securestring",
|
||||
"metadata": {"description": "Secure adminPassword"}}}, "variables": {}, "resources":
|
||||
[{"name": "vmss1VNET", "type": "Microsoft.Network/virtualNetworks", "location":
|
||||
"westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties":
|
||||
{"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name":
|
||||
"vmss1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion":
|
||||
"2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss1LBPublicIP",
|
||||
"location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod":
|
||||
"Dynamic"}, "sku": {"name": "Basic"}}, {"type": "Microsoft.Network/loadBalancers",
|
||||
"name": "vmss1LB", "location": "westus", "tags": {}, "apiVersion": "2018-01-01",
|
||||
"dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", "Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"],
|
||||
"type": "Microsoft.Network/loadBalancers", "properties": {"frontendIPConfigurations":
|
||||
[{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}],
|
||||
"inboundNatPools": [{"name": "vmss1LBNatPool", "properties": {"protocol": "tcp",
|
||||
"backendPort": 22, "frontendIPConfiguration": {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'',
|
||||
''vmss1LB''), ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"},
|
||||
"frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119"}}], "backendAddressPools":
|
||||
[{"name": "vmss1LBBEPool"}]}}, {"sku": {"capacity": 2, "name": "Standard_D1_v2"},
|
||||
"name": "vmss1", "tags": {}, "apiVersion": "2017-12-01", "location": "westus",
|
||||
"properties": {"backendAddressPools": [{"name": "vmss1LBBEPool"}], "inboundNatPools":
|
||||
[{"name": "vmss1LBNatPool", "properties": {"frontendIPConfiguration": {"id":
|
||||
"[concat(resourceId(\''Microsoft.Network/loadBalancers\'', \''vmss1LB\''), \''/frontendIPConfigurations/\'',
|
||||
\''loadBalancerFrontEnd\'')]"}, "protocol": "tcp", "frontendPortRangeStart":
|
||||
"50000", "frontendPortRangeEnd": "50119", "backendPort": 22}}], "frontendIPConfigurations":
|
||||
[{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}]},
|
||||
"sku": {"name": "Basic"}}, {"type": "Microsoft.Compute/virtualMachineScaleSets",
|
||||
"name": "vmss1", "location": "westus", "tags": {}, "apiVersion": "2017-12-01",
|
||||
"dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", "Microsoft.Network/loadBalancers/vmss1LB"],
|
||||
"type": "Microsoft.Compute/virtualMachineScaleSets", "properties": {"overprovision":
|
||||
true, "virtualMachineProfile": {"storageProfile": {"imageReference": {"sku":
|
||||
"16.04-LTS", "publisher": "Canonical", "version": "latest", "offer": "UbuntuServer"},
|
||||
"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null},
|
||||
"createOption": "FromImage"}}, "osProfile": {"computerNamePrefix": "vmss17ccc",
|
||||
"adminUsername": "travisprescott", "linuxConfiguration": {"ssh": {"publicKeys":
|
||||
[{"path": "/home/travisprescott/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==
|
||||
trpresco@microsoft.com\n"}]}, "disablePasswordAuthentication": true}}, "networkProfile":
|
||||
{"networkInterfaceConfigurations": [{"name": "vmss17cccNic", "properties": {"primary":
|
||||
"true", "ipConfigurations": [{"name": "vmss17cccIPConfig", "properties": {"subnet":
|
||||
{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
|
||||
"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}],
|
||||
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}]}}]}}]}},
|
||||
"singlePlacementGroup": true, "upgradePolicy": {"mode": "manual"}}}]}}}'
|
||||
"sku": {"name": "Standard_D1_v2", "capacity": 2}, "properties": {"overprovision":
|
||||
true, "upgradePolicy": {"mode": "manual"}, "virtualMachineProfile": {"storageProfile":
|
||||
{"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk":
|
||||
{"storageAccountType": null}}, "imageReference": {"publisher": "Canonical",
|
||||
"offer": "UbuntuServer", "sku": "16.04-LTS", "version": "latest"}}, "osProfile":
|
||||
{"computerNamePrefix": "vmss172e7", "adminUsername": "testadmin", "adminPassword":
|
||||
"[parameters(\''adminPassword\'')]"}, "networkProfile": {"networkInterfaceConfigurations":
|
||||
[{"name": "vmss172e7Nic", "properties": {"primary": "true", "ipConfigurations":
|
||||
[{"name": "vmss172e7IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},
|
||||
"loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],
|
||||
"loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},
|
||||
"singlePlacementGroup": true}}], "outputs": {"VMSS": {"type": "object", "value":
|
||||
"[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vmss1\''),providers(\''Microsoft.Compute\'',
|
||||
\''virtualMachineScaleSets\'').apiVersions[0])]"}}}, "parameters": {"adminPassword":
|
||||
{"value": "TestTest12#$"}}, "mode": "Incremental"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Length: ['4592']
|
||||
Content-Length: ['3866']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_FU3xwxwN04P2ubUTiMNDPLtgGvZDsNUR","name":"vmss_deploy_FU3xwxwN04P2ubUTiMNDPLtgGvZDsNUR","properties":{"templateHash":"8343410207649493559","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-03-07T23:43:46.9917863Z","duration":"PT0.6250435S","correlationId":"936e5ff4-27ea-463e-976c-7af79bd9a821","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_gBxKiOd1wJkcoblSeBDoie9T2ziRTGJS","name":"vmss_deploy_gBxKiOd1wJkcoblSeBDoie9T2ziRTGJS","properties":{"templateHash":"7238567769451517197","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2018-03-13T21:52:56.4257279Z","duration":"PT0.5363235S","correlationId":"26571295-71f3-495a-b22b-d95f7275cfdf","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}'}
|
||||
headers:
|
||||
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_FU3xwxwN04P2ubUTiMNDPLtgGvZDsNUR/operationStatuses/08586811406591108811?api-version=2017-05-10']
|
||||
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_gBxKiOd1wJkcoblSeBDoie9T2ziRTGJS/operationStatuses/08586806289095882313?api-version=2017-05-10']
|
||||
cache-control: [no-cache]
|
||||
content-length: ['2651']
|
||||
content-length: ['2690']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:43:46 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:52:56 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1177']
|
||||
status: {code: 201, message: Created}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -225,19 +224,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811406591108811?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806289095882313?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:44:18 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:53:26 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -252,19 +251,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811406591108811?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806289095882313?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:44:49 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:53:57 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -279,19 +278,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811406591108811?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806289095882313?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
body: {string: '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:45:18 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:54:27 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -306,46 +305,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811406591108811?api-version=2017-05-10
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586806289095882313?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Running"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['20']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:45:49 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586811406591108811?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"status":"Succeeded"}'}
|
||||
body: {string: '{"status":"Succeeded"}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['22']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:20 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:54:57 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -360,21 +332,19 @@ interactions:
|
|||
CommandName: [vmss create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_FU3xwxwN04P2ubUTiMNDPLtgGvZDsNUR","name":"vmss_deploy_FU3xwxwN04P2ubUTiMNDPLtgGvZDsNUR","properties":{"templateHash":"8343410207649493559","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-03-07T23:46:09.4515567Z","duration":"PT2M23.0848139S","correlationId":"936e5ff4-27ea-463e-976c-7af79bd9a821","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss17ccc","adminUsername":"travisprescott","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/travisprescott/.ssh/authorized_keys","keyData":"ssh-rsa
|
||||
AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==
|
||||
trpresco@microsoft.com\n"}]}},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss17cccNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss17cccIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"576fe188-e723-4364-a9e3-0cff1df4126d"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Resources/deployments/vmss_deploy_gBxKiOd1wJkcoblSeBDoie9T2ziRTGJS","name":"vmss_deploy_gBxKiOd1wJkcoblSeBDoie9T2ziRTGJS","properties":{"templateHash":"7238567769451517197","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2018-03-13T21:54:49.8723229Z","duration":"PT1M53.9829185S","correlationId":"26571295-71f3-495a-b22b-d95f7275cfdf","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","automaticOSUpgrade":false},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss172e7","adminUsername":"testadmin","linuxConfiguration":{"disablePasswordAuthentication":false},"secrets":[]},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Standard_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"16.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss172e7Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss172e7IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"uniqueId":"26625b6a-cce9-49fe-896c-784f7272ecfe"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['6070']
|
||||
content-length: ['5267']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:20 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:54:58 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -389,50 +359,45 @@ interactions:
|
|||
CommandName: [vmss show]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 computemanagementclient/3.1.0rc3 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 computemanagementclient/3.1.0rc3 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2017-12-01
|
||||
response:
|
||||
body: {string: !!python/unicode "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\"\
|
||||
,\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
|
||||
body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_D1_v2\",\r\n \
|
||||
\ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\"\
|
||||
: {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n\
|
||||
\ \"mode\": \"Manual\",\r\n \"automaticOSUpgrade\": false\r\n \
|
||||
\ },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \
|
||||
\ \"computerNamePrefix\": \"vmss17ccc\",\r\n \"adminUsername\"\
|
||||
: \"travisprescott\",\r\n \"linuxConfiguration\": {\r\n \"\
|
||||
disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \
|
||||
\ \"publicKeys\": [\r\n {\r\n \"path\": \"\
|
||||
/home/travisprescott/.ssh/authorized_keys\",\r\n \"keyData\"\
|
||||
: \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBaoge9zybnViQvRAgwTnO6yshWCxJxcTKYAPj79TWjBZ1h21hGLs5L/UWhgAGG6Hcd+ID1IHSbTWTL/8HGug8/x07IzgiiCWXh9htPGhNAE/LdNoMXl1ahjABHj9s/NxNkbK4Z/1SFFPGScIJw5hKiDrQ0j4NNMPW1O37Ln2h/Txr9KTAqT75miJN+mamH3Ijcm4ox0Xjy4mOPrjg+27a1PtYFTJ6w5mOUyr1gLCtuDvfI96vioMzClbzGX3lw4vqUAA9I86Agmko+FIS33q+OwGBA0T79OhMOHSqZkd6WEqAqlTREnubXXe15VBCtRjz4A1hhvQj8hDtCiRQwCV/OCG+HvCp2K/RfTkYlROLtFxDRruXXuHNoPsAsJYVV3P5zk96fO56piPNYqhoY6nSNCZDe/NRkWGVDwR55kBRESOzm7jPvxzZZZSplXoKG8yqCybD+LjtpbznL8Vz94JrbjOCSqD3JKAHKnP6+fBsF8FdAcxN4ujqVKoIqX1RDQEoM/fBqp1Z2YUg4E+fg3LUAgDdLi7ds8KjBFn1o7ZCbZ129O7aBCLdMMrsTx8kxRmdOGhCFXjajwLbZNr+ivN4l8KcNEMYPHpHkE9qpopBnah01i/4/Kiubsj4UDf6CHD8LAg1CHoibodG0O7LJvTo5/cmgTo+NXlzPezS4T2YtQ==\
|
||||
\ trpresco@microsoft.com\\n\"\r\n }\r\n ]\r\n \
|
||||
\ }\r\n },\r\n \"secrets\": []\r\n },\r\n \"\
|
||||
storageProfile\": {\r\n \"osDisk\": {\r\n \"createOption\"\
|
||||
: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"\
|
||||
managedDisk\": {\r\n \"storageAccountType\": \"Standard_LRS\"\r\
|
||||
\n }\r\n },\r\n \"imageReference\": {\r\n \
|
||||
\ \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\
|
||||
\n \"sku\": \"16.04-LTS\",\r\n \"version\": \"latest\"\r\
|
||||
\n }\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\"\
|
||||
:[{\"name\":\"vmss17cccNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
|
||||
\ \"computerNamePrefix\": \"vmss172e7\",\r\n \"adminUsername\"\
|
||||
: \"testadmin\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\"\
|
||||
: false\r\n },\r\n \"secrets\": []\r\n },\r\n \"storageProfile\"\
|
||||
: {\r\n \"osDisk\": {\r\n \"createOption\": \"FromImage\"\
|
||||
,\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\
|
||||
\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n\
|
||||
\ },\r\n \"imageReference\": {\r\n \"publisher\": \"\
|
||||
Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\"\
|
||||
: \"16.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n \
|
||||
\ },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"\
|
||||
name\":\"vmss172e7Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\"\
|
||||
:false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"\
|
||||
ipConfigurations\":[{\"name\":\"vmss17cccIPConfig\",\"properties\":{\"subnet\"\
|
||||
ipConfigurations\":[{\"name\":\"vmss172e7IPConfig\",\"properties\":{\"subnet\"\
|
||||
:{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet\"\
|
||||
},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\"\
|
||||
:[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"\
|
||||
}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"\
|
||||
}]}}]}}]}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"\
|
||||
overprovision\": true,\r\n \"uniqueId\": \"576fe188-e723-4364-a9e3-0cff1df4126d\"\
|
||||
overprovision\": true,\r\n \"uniqueId\": \"26625b6a-cce9-49fe-896c-784f7272ecfe\"\
|
||||
\r\n },\r\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\
|
||||
\ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\"\
|
||||
,\r\n \"name\": \"vmss1\"\r\n}"}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['3431']
|
||||
content-length: ['2465']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:21 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:54:58 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0]
|
||||
|
@ -440,7 +405,7 @@ interactions:
|
|||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;192,Microsoft.Compute/GetVMScaleSet30Min;945']
|
||||
x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetVMScaleSet3Min;173,Microsoft.Compute/GetVMScaleSet30Min;914']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -450,19 +415,19 @@ interactions:
|
|||
CommandName: [monitor autoscale create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001","name":"cli_test_monitor_autoscale_fixed000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['328']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:23 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:54:58 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
|
@ -470,10 +435,10 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"properties": {"notifications": [{"webhooks": [], "operation":
|
||||
"Scale", "email": {"customEmails": []}}], "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"3", "minimum": "3", "maximum": "3"}, "name": "default"}]}, "location": "westus"}'
|
||||
body: 'b''{"location": "westus", "properties": {"profiles": [{"name": "default",
|
||||
"capacity": {"minimum": "3", "maximum": "3", "default": "3"}, "rules": []}],
|
||||
"notifications": [{"operation": "Scale", "email": {"customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -481,20 +446,19 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['497']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:28 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:02 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -510,20 +474,19 @@ interactions:
|
|||
CommandName: [monitor autoscale profile create]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:29 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:03 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -533,16 +496,15 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "properties": {"notifications":
|
||||
[{"webhooks": [], "operation": "Scale", "email": {"sendToSubscriptionCoAdministrators":
|
||||
false, "customEmails": [], "sendToSubscriptionAdministrator": false}}], "targetResourceUri":
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"3", "minimum": "3", "maximum": "3"}, "name": "default"}, {"rules": [], "fixedDate":
|
||||
{"start": "2018-12-24T00:00:00.000Z", "end": "2018-12-26T00:00:00.000Z", "timeZone":
|
||||
"Pacific Standard Time"}, "capacity": {"default": "5", "minimum": "5", "maximum":
|
||||
"5"}, "name": "Christmas"}]}, "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}}'
|
||||
body: 'b''{"location": "westus", "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}, "properties": {"profiles":
|
||||
[{"name": "default", "capacity": {"minimum": "3", "maximum": "3", "default":
|
||||
"3"}, "rules": []}, {"name": "Christmas", "capacity": {"minimum": "5", "maximum":
|
||||
"5", "default": "5"}, "rules": [], "fixedDate": {"timeZone": "Pacific Standard
|
||||
Time", "start": "2018-12-24T00:00:00.000Z", "end": "2018-12-26T00:00:00.000Z"}}],
|
||||
"notifications": [{"operation": "Scale", "email": {"sendToSubscriptionAdministrator":
|
||||
false, "sendToSubscriptionCoAdministrators": false, "customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -550,21 +512,20 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['951']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]},{"name":"Christmas","capacity":{"minimum":"5","maximum":"5","default":"5"},"rules":[],"fixedDate":{"timeZone":"Pacific
|
||||
Standard Time","start":"2018-12-24T00:00:00Z","end":"2018-12-26T00:00:00Z"}}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['1154']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:30 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:06 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -582,21 +543,20 @@ interactions:
|
|||
CommandName: [monitor autoscale profile list]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]},{"name":"Christmas","capacity":{"minimum":"5","maximum":"5","default":"5"},"rules":[],"fixedDate":{"timeZone":"Pacific
|
||||
Standard Time","start":"2018-12-24T00:00:00Z","end":"2018-12-26T00:00:00Z"}}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['1154']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:30 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:08 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -613,21 +573,20 @@ interactions:
|
|||
CommandName: [monitor autoscale profile delete]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]},{"name":"Christmas","capacity":{"minimum":"5","maximum":"5","default":"5"},"rules":[],"fixedDate":{"timeZone":"Pacific
|
||||
Standard Time","start":"2018-12-24T00:00:00Z","end":"2018-12-26T00:00:00Z"}}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['1154']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:31 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:07 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -637,13 +596,12 @@ interactions:
|
|||
x-content-type-options: [nosniff]
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: !!python/unicode '{"location": "westus", "properties": {"notifications":
|
||||
[{"webhooks": [], "operation": "Scale", "email": {"sendToSubscriptionCoAdministrators":
|
||||
false, "customEmails": [], "sendToSubscriptionAdministrator": false}}], "targetResourceUri":
|
||||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1",
|
||||
"enabled": true, "name": "vmss1", "profiles": [{"rules": [], "capacity": {"default":
|
||||
"3", "minimum": "3", "maximum": "3"}, "name": "default"}]}, "tags": {"$type":
|
||||
"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage"}}'
|
||||
body: 'b''{"location": "westus", "tags": {"$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"}, "properties": {"profiles":
|
||||
[{"name": "default", "capacity": {"minimum": "3", "maximum": "3", "default":
|
||||
"3"}, "rules": []}], "notifications": [{"operation": "Scale", "email": {"sendToSubscriptionAdministrator":
|
||||
false, "sendToSubscriptionCoAdministrators": false, "customEmails": []}, "webhooks":
|
||||
[]}], "enabled": true, "name": "vmss1", "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"}}'''
|
||||
headers:
|
||||
Accept: [application/json]
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
|
@ -651,20 +609,19 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['729']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: PUT
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:33 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:10 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -672,7 +629,7 @@ interactions:
|
|||
transfer-encoding: [chunked]
|
||||
vary: [Accept-Encoding]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1197']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1198']
|
||||
status: {code: 200, message: OK}
|
||||
- request:
|
||||
body: null
|
||||
|
@ -682,20 +639,19 @@ interactions:
|
|||
CommandName: [monitor autoscale profile list]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 monitormanagementclient/0.4.0 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 azure-mgmt-monitor/0.5.0 Azure-SDK-For-Python AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1?api-version=2015-04-01
|
||||
response:
|
||||
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/microsoft.insights/autoscalesettings/vmss1","name":"vmss1","type":"Microsoft.Insights/autoscaleSettings","location":"westus","tags":{"$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary,
|
||||
Microsoft.WindowsAzure.Management.Common.Storage"},"properties":{"profiles":[{"name":"default","capacity":{"minimum":"3","maximum":"3","default":"3"},"rules":[]}],"enabled":true,"name":"vmss1","targetResourceUri":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_autoscale_fixed000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","notifications":[{"operation":"Scale","email":{"sendToSubscriptionAdministrator":false,"sendToSubscriptionCoAdministrators":false,"customEmails":[]},"webhooks":[]}]}}'}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['958']
|
||||
content-type: [application/json; charset=utf-8]
|
||||
date: ['Wed, 07 Mar 2018 23:46:33 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:10 GMT']
|
||||
expires: ['-1']
|
||||
pragma: [no-cache]
|
||||
server: [Microsoft-IIS/8.5]
|
||||
|
@ -713,23 +669,23 @@ interactions:
|
|||
Connection: [keep-alive]
|
||||
Content-Length: ['0']
|
||||
Content-Type: [application/json; charset=utf-8]
|
||||
User-Agent: [python/2.7.12 (Darwin-17.4.0-x86_64-i386-64bit) requests/2.18.4
|
||||
msrest/0.4.26 msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.29]
|
||||
User-Agent: [python/3.6.1 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.27
|
||||
msrest_azure/0.4.22 resourcemanagementclient/1.2.1 Azure-SDK-For-Python
|
||||
AZURECLI/2.0.30]
|
||||
accept-language: [en-US]
|
||||
method: DELETE
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_autoscale_fixed000001?api-version=2017-05-10
|
||||
response:
|
||||
body: {string: !!python/unicode ''}
|
||||
body: {string: ''}
|
||||
headers:
|
||||
cache-control: [no-cache]
|
||||
content-length: ['0']
|
||||
date: ['Wed, 07 Mar 2018 23:46:34 GMT']
|
||||
date: ['Tue, 13 Mar 2018 21:55:11 GMT']
|
||||
expires: ['-1']
|
||||
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTU9OSVRPUjo1RkFVVE9TQ0FMRTo1RkZJWEVEVDdPTVhGS3xFM0E1RTMwQzkwN0QwOTYyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
|
||||
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTU9OSVRPUjo1RkFVVE9TQ0FMRTo1RkZJWEVESzRHVFFZRHw2MzFBRjYzNkM1RThDN0ZGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10']
|
||||
pragma: [no-cache]
|
||||
strict-transport-security: [max-age=31536000; includeSubDomains]
|
||||
x-content-type-options: [nosniff]
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1197']
|
||||
x-ms-ratelimit-remaining-subscription-writes: ['1199']
|
||||
status: {code: 202, message: Accepted}
|
||||
version: 1
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -3,17 +3,17 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
|
||||
from azure.cli.testsdk import LiveScenarioTest, ResourceGroupPreparer, StorageAccountPreparer
|
||||
from azure.cli.testsdk import LiveScenarioTest, ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer
|
||||
|
||||
|
||||
class TestMonitorAutoscaleScenario(LiveScenarioTest):
|
||||
class TestMonitorAutoscaleScenario(ScenarioTest):
|
||||
|
||||
@ResourceGroupPreparer(name_prefix='cli_test_monitor_autoscale')
|
||||
def test_monitor_autoscale_basic(self, resource_group):
|
||||
self.kwargs.update({
|
||||
'vmss': 'vmss1'
|
||||
})
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS')
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --admin-username testadmin --admin-password TestTest12#$')
|
||||
self.kwargs['vmss_id'] = self.cmd('vmss show -g {rg} -n {vmss}').get_output_in_json()['id']
|
||||
|
||||
self.cmd('monitor autoscale create --resource {vmss_id} --count 3', checks=[
|
||||
|
@ -48,7 +48,7 @@ class TestMonitorAutoscaleScenario(LiveScenarioTest):
|
|||
self.kwargs.update({
|
||||
'vmss': 'vmss1'
|
||||
})
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS')
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --admin-username testadmin --admin-password TestTest12#$')
|
||||
self.kwargs['vmss_id'] = self.cmd('vmss show -g {rg} -n {vmss}').get_output_in_json()['id']
|
||||
|
||||
self.cmd('monitor autoscale create --resource {vmss_id} --min-count 1 --count 3 --max-count 5')
|
||||
|
@ -137,7 +137,7 @@ class TestMonitorAutoscaleScenario(LiveScenarioTest):
|
|||
'vmss': 'vmss1',
|
||||
'sched': 'Christmas'
|
||||
})
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS')
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --admin-username testadmin --admin-password TestTest12#$')
|
||||
self.kwargs['vmss_id'] = self.cmd('vmss show -g {rg} -n {vmss}').get_output_in_json()['id']
|
||||
|
||||
self.cmd('monitor autoscale create --resource {vmss_id} --count 3')
|
||||
|
@ -168,7 +168,7 @@ class TestMonitorAutoscaleScenario(LiveScenarioTest):
|
|||
self.kwargs.update({
|
||||
'vmss': 'vmss1'
|
||||
})
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS')
|
||||
self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --admin-username testname --admin-password TestTest12#$')
|
||||
self.kwargs['vmss_id'] = self.cmd('vmss show -g {rg} -n {vmss}').get_output_in_json()['id']
|
||||
|
||||
self.cmd('monitor autoscale create --resource {vmss_id} --count 3')
|
||||
|
@ -217,6 +217,10 @@ class TestMonitorAutoscaleScenario(LiveScenarioTest):
|
|||
self.cmd('monitor autoscale profile list -g {rg} --autoscale-name {vmss}',
|
||||
checks=self.check('length(@)', 1))
|
||||
|
||||
|
||||
# inexplicably fails on CI so making into a live test
|
||||
class TestMonitorAutoscaleTimezones(LiveScenarioTest):
|
||||
|
||||
def test_monitor_autoscale_timezones(self):
|
||||
self.cmd('monitor autoscale profile list-timezones',
|
||||
checks=self.check('length(@)', 136))
|
||||
|
|
Загрузка…
Ссылка в новой задаче