diff --git a/src/monitor-control-service/HISTORY.rst b/src/monitor-control-service/HISTORY.rst
index 593fde973cc..c9d4c8c6071 100644
--- a/src/monitor-control-service/HISTORY.rst
+++ b/src/monitor-control-service/HISTORY.rst
@@ -3,6 +3,13 @@
Release History
===============
+0.3.0
+++++++
+* `az monitor data-collection rule create`: Add parameter --rule-file.
+* `az monitor data-collection rule create`: Remove parameters --data-flows, --log-analytics, --monitor-metrics, --performance-counters, --windows-event-logs, --syslog and --extensions.
+* `az monitor data-collection rule association list`: Add parameter --data-collection-endpoint-name.
+* Bump api version from 2021-04-01 to 2021_09_01_preview.
+
0.2.0
++++++
* GA release.
diff --git a/src/monitor-control-service/azext_amcs/generated/_help.py b/src/monitor-control-service/azext_amcs/generated/_help.py
index 67a2cfa3fe0..87369786ceb 100644
--- a/src/monitor-control-service/azext_amcs/generated/_help.py
+++ b/src/monitor-control-service/azext_amcs/generated/_help.py
@@ -63,12 +63,16 @@
helps['monitor data-collection rule association list'] = """
type: command
short-summary: "Lists associations for the specified data collection rule. And Lists associations for the \
-specified resource."
+specified data collection endpoint. And Lists associations for the specified resource."
examples:
- name: List associations for specified data collection rule
text: |-
az monitor data-collection rule association list --rule-name "myCollectionRule" --resource-group \
"myResourceGroup"
+ - name: List associations for specified data collection endpoint
+ text: |-
+ az monitor data-collection rule association list --data-collection-endpoint-name \
+"myDataCollectionEndpointName" --resource-group "myResourceGroup"
- name: List associations for specified resource
text: |-
az monitor data-collection rule association list --resource "subscriptions/703362b3-f278-4e4b-9179-c76ea\
diff --git a/src/monitor-control-service/azext_amcs/generated/_params.py b/src/monitor-control-service/azext_amcs/generated/_params.py
index b488183f5ca..d04af64806c 100644
--- a/src/monitor-control-service/azext_amcs/generated/_params.py
+++ b/src/monitor-control-service/azext_amcs/generated/_params.py
@@ -32,6 +32,8 @@ def load_arguments(self, _):
c.argument('resource_group_name', resource_group_name_type)
c.argument('data_collection_rule_name', options_list=['--rule-name'], type=str, help='The name of the data '
'collection rule. The name is case insensitive.')
+ c.argument('data_collection_endpoint_name', options_list=['--endpoint-name'], type=str, help='The name of the data collection endpoint. The name '
+ 'is case insensitive.')
c.argument('resource_uri', options_list=['--resource'], type=str, help='The identifier of the resource.')
with self.argument_context('monitor data-collection rule association show') as c:
diff --git a/src/monitor-control-service/azext_amcs/generated/custom.py b/src/monitor-control-service/azext_amcs/generated/custom.py
index 7b3e048c9ef..4b00bb10eed 100644
--- a/src/monitor-control-service/azext_amcs/generated/custom.py
+++ b/src/monitor-control-service/azext_amcs/generated/custom.py
@@ -34,10 +34,14 @@ def monitor_data_collection_endpoint_delete(client,
def monitor_data_collection_rule_association_list(client,
resource_group_name=None,
data_collection_rule_name=None,
+ data_collection_endpoint_name=None,
resource_uri=None):
if resource_group_name and data_collection_rule_name is not None:
return client.list_by_rule(resource_group_name=resource_group_name,
data_collection_rule_name=data_collection_rule_name)
+ elif resource_group_name and data_collection_endpoint_name is not None:
+ return client.list_by_data_collection_endpoint(resource_group_name=resource_group_name,
+ data_collection_endpoint_name=data_collection_endpoint_name)
return client.list_by_resource(resource_uri=resource_uri)
diff --git a/src/monitor-control-service/azext_amcs/manual/_help.py b/src/monitor-control-service/azext_amcs/manual/_help.py
index 4208b3505e1..da37ed54af9 100644
--- a/src/monitor-control-service/azext_amcs/manual/_help.py
+++ b/src/monitor-control-service/azext_amcs/manual/_help.py
@@ -165,103 +165,13 @@
type: command
short-summary: "Create a data collection rule."
parameters:
- - name: --data-flows
- short-summary: "The specification of data flows."
- long-summary: |
- Usage: --data-flows streams=XX1 streams=XX2 destinations=XX1 destinations=XX2
-
- streams: Required. List of streams for this data flow.
- destinations: Required. List of destinations for this data flow.
-
- Multiple actions can be specified by using more than one --data-flows argument.
- - name: --log-analytics
- short-summary: "List of Log Analytics destinations."
- long-summary: |
- Usage: --log-analytics resource-id=XX name=XX
-
- resource-id: Required. The resource ID of the Log Analytics workspace.
- name: Required. A friendly name for the destination. This name should be unique across all destinations \
-(regardless of type) within the data collection rule.
-
- Multiple actions can be specified by using more than one --log-analytics argument.
- - name: --monitor-metrics
- short-summary: "Azure Monitor Metrics destination."
- long-summary: |
- Usage: --monitor-metrics name=XX
-
- name: Required. A friendly name for the destination. This name should be unique across all destinations \
-(regardless of type) within the data collection rule.
- - name: --performance-counters
- short-summary: "The list of performance counter data source configurations."
- long-summary: |
- Usage: --performance-counters streams=XX1 streams=XX2 \
-sampling-frequency=XX counter-specifiers=XX1 counter-specifiers=XX2 name=XX
-
- streams: Required. List of streams that this data source will be sent to. A stream indicates what schema \
-will be used for this data and usually what table in Log Analytics the data will be sent to.
- sampling-frequency: Required. The number of seconds between consecutive counter measurements \
-(samples).
- counter-specifiers: Required. A list of specifier names of the performance counters you want to collect. \
-Use a wildcard (*) to collect a counter for all instances. To get a list of performance counters on Windows, run the \
-command 'typeperf'.
- name: Required. A friendly name for the data source. This name should be unique across all data sources \
-(regardless of type) within the data collection rule.
-
- Multiple actions can be specified by using more than one --performance-counters argument.
- - name: --windows-event-logs
- short-summary: "The list of Windows Event Log data source configurations."
- long-summary: |
- Usage: --windows-event-logs streams=XX1 streams=XX2 x-path-queries=XX1 \
-x-path-queries=XX2 name=XX
-
- streams: Required. List of streams that this data source will be sent to. A stream indicates what schema \
-will be used for this data and usually what table in Log Analytics the data will be sent to.
- x-path-queries: Required. A list of Windows Event Log queries in XPATH format.
- name: Required. A friendly name for the data source. This name should be unique across all data sources \
-(regardless of type) within the data collection rule.
-
- Multiple actions can be specified by using more than one --windows-event-logs argument.
- - name: --syslog
- short-summary: "The list of Syslog data source configurations."
- long-summary: |
- Usage: --syslog streams=XX1 streams=XX2 facility-names=XX1 facility-names=XX2 log-levels=XX1 log-levels=XX2 \
-name=XX
-
- streams: Required. List of streams that this data source will be sent to. A stream indicates what schema \
-will be used for this data and usually what table in Log Analytics the data will be sent to.
- facility-names: Required. The list of facility names.
- log-levels: The log levels to collect.
- name: Required. A friendly name for the data source. This name should be unique across all data sources \
-(regardless of type) within the data collection rule.
-
- Multiple actions can be specified by using more than one --syslog argument.
+ - name: --rule-file
+ short-summary: "The json file for rule parameters."
examples:
- name: Create data collection rule
text: |-
az monitor data-collection rule create --resource-group "myResourceGroup" --location "eastus" \
---name "myCollectionRule" \
---data-flows destinations="centralWorkspace" streams="Microsoft-Perf" streams="Microsoft-Syslog" \
-streams="Microsoft-WindowsEvent" \
---log-analytics name="centralWorkspace" \
-resource-id="/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Mic\
-rosoft.OperationalInsights/workspaces/centralTeamWorkspace" \
---performance-counters name="cloudTeamCoreCounters" counter-specifiers="\\\\Processor(_Total)\\\\% Processor Time" \
-counter-specifiers="\\\\Memory\\\\Committed Bytes" counter-specifiers="\\\\LogicalDisk(_Total)\\\\Free Megabytes" \
-counter-specifiers="\\\\PhysicalDisk(_Total)\\\\Avg. Disk Queue Length" sampling-frequency=15 \
-streams="Microsoft-Perf" \
---performance-counters name="appTeamExtraCounters" \
-counter-specifiers="\\\\Process(_Total)\\\\Thread Count" sampling-frequency=30 \
-streams="Microsoft-Perf" \
---syslog name="cronSyslog" facility-names="cron" log-levels="Debug" log-levels="Critical" log-levels="Emergency" \
-streams="Microsoft-Syslog" \
---syslog name="syslogBase" facility-names="syslog" log-levels="Alert" log-levels="Critical" log-levels="Emergency" \
-streams="Microsoft-Syslog" \
---windows-event-logs name="cloudSecurityTeamEvents" streams="Microsoft-WindowsEvent" \
-x-path-queries="Security!" \
---windows-event-logs name="appTeam1AppEvents" streams="Microsoft-WindowsEvent" \
-x-path-queries="System![System[(Level = 1 or Level = 2 or Level = 3)]]" \
-x-path-queries="Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]"
-
+--name "myCollectionRule" --rule-file "C:\samples\dcrEx1.json"
"""
helps['monitor data-collection rule update'] = """
diff --git a/src/monitor-control-service/azext_amcs/manual/_params.py b/src/monitor-control-service/azext_amcs/manual/_params.py
index 0f4d09fe28f..c0460f68674 100644
--- a/src/monitor-control-service/azext_amcs/manual/_params.py
+++ b/src/monitor-control-service/azext_amcs/manual/_params.py
@@ -92,6 +92,7 @@ def load_arguments(self, _):
with self.argument_context('monitor data-collection rule create') as c:
c.argument('data_collection_rule_name', id_part=None)
+ c.argument('rule_file', type=str, help='The json file for rule parameters.', required=True)
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
validator=get_default_location_from_resource_group)
diff --git a/src/monitor-control-service/azext_amcs/manual/custom.py b/src/monitor-control-service/azext_amcs/manual/custom.py
index cc6da9bf7c1..08758fe1ec6 100644
--- a/src/monitor-control-service/azext_amcs/manual/custom.py
+++ b/src/monitor-control-service/azext_amcs/manual/custom.py
@@ -94,29 +94,52 @@ def _data_collection_rules_create(client,
def data_collection_rules_create(client,
resource_group_name,
data_collection_rule_name,
+ rule_file,
location=None,
tags=None,
- description=None,
- data_flows=None,
- destinations__log_analytics=None,
- destinations__azure_monitor_metrics=None,
- data_sources__performance_counters=None,
- data_sources__windows_event_logs=None,
- data_sources__syslog=None,
- data_sources__extensions=None):
+ description=None):
+ from azure.cli.core.util import get_file_json
+ from azure.cli.core.azclierror import FileOperationError, UnclassifiedUserFault
body = {}
body['location'] = location
body['tags'] = tags
body['description'] = description
- body['data_flows'] = data_flows
- body['destinations'] = {}
- body['destinations']['log_analytics'] = destinations__log_analytics
- body['destinations']['azure_monitor_metrics'] = destinations__azure_monitor_metrics
- body['data_sources'] = {}
- body['data_sources']['performance_counters'] = data_sources__performance_counters
- body['data_sources']['windows_event_logs'] = data_sources__windows_event_logs
- body['data_sources']['syslog'] = data_sources__syslog
- body['data_sources']['extensions'] = data_sources__extensions
+ try:
+ json_data = get_file_json(rule_file)
+ except FileNotFoundError:
+ raise FileOperationError("No such file: " + str(rule_file))
+ except IsADirectoryError:
+ raise FileOperationError("Is a directory: " + str(rule_file))
+ except PermissionError:
+ raise FileOperationError("Permission denied: " + str(rule_file))
+ except OSError as e:
+ raise UnclassifiedUserFault(e)
+ for key_prop in json_data:
+ if key_prop == 'properties':
+ data = json_data['properties']
+ else:
+ data = json_data
+ for key in data:
+ if key == 'dataSources':
+ body['data_sources'] = {}
+ for key_ds in data['dataSources']:
+ if key_ds == 'performanceCounters':
+ body['data_sources']['performance_counters'] = data['dataSources']['performanceCounters']
+ if key_ds == 'windowsEventLogs':
+ body['data_sources']['windows_event_logs'] = data['dataSources']['windowsEventLogs']
+ if key_ds == 'syslog':
+ body['data_sources']['syslog'] = data['dataSources']['syslog']
+ if key_ds == 'extensions':
+ body['data_sources']['extensions'] = data['dataSources']['extensions']
+ if key == 'destinations':
+ body['destinations'] = {}
+ for key_de in data['destinations']:
+ if key_de == 'logAnalytics':
+ body['destinations']['log_analytics'] = data['destinations']['logAnalytics']
+ if key_de == 'azureMonitorMetrics':
+ body['destinations']['azure_monitor_metrics'] = data['destinations']['azureMonitorMetrics']
+ if key == 'dataFlows':
+ body['data_flows'] = data['dataFlows']
return _data_collection_rules_create(client,
resource_group_name=resource_group_name,
data_collection_rule_name=data_collection_rule_name,
diff --git a/src/monitor-control-service/azext_amcs/tests/__init__.py b/src/monitor-control-service/azext_amcs/tests/__init__.py
new file mode 100644
index 00000000000..70488e93851
--- /dev/null
+++ b/src/monitor-control-service/azext_amcs/tests/__init__.py
@@ -0,0 +1,116 @@
+# coding=utf-8
+# --------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for
+# license information.
+#
+# Code generated by Microsoft (R) AutoRest Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is
+# regenerated.
+# --------------------------------------------------------------------------
+import inspect
+import logging
+import os
+import sys
+import traceback
+import datetime as dt
+
+from azure.core.exceptions import AzureError
+from azure.cli.testsdk.exceptions import CliTestError, CliExecutionError, JMESPathCheckAssertionError
+
+
+logger = logging.getLogger('azure.cli.testsdk')
+logger.addHandler(logging.StreamHandler())
+__path__ = __import__('pkgutil').extend_path(__path__, __name__)
+exceptions = []
+test_map = dict()
+SUCCESSED = "successed"
+FAILED = "failed"
+
+
+def try_manual(func):
+ def import_manual_function(origin_func):
+ from importlib import import_module
+ decorated_path = inspect.getfile(origin_func).lower()
+ module_path = __path__[0].lower()
+ if not decorated_path.startswith(module_path):
+ raise Exception("Decorator can only be used in submodules!")
+ manual_path = os.path.join(
+ decorated_path[module_path.rfind(os.path.sep) + 1:])
+ manual_file_path, manual_file_name = os.path.split(manual_path)
+ module_name, _ = os.path.splitext(manual_file_name)
+ manual_module = "..manual." + \
+ ".".join(manual_file_path.split(os.path.sep) + [module_name, ])
+ return getattr(import_module(manual_module, package=__name__), origin_func.__name__)
+
+ def get_func_to_call():
+ func_to_call = func
+ try:
+ func_to_call = import_manual_function(func)
+ logger.info("Found manual override for %s(...)", func.__name__)
+ except (ImportError, AttributeError):
+ pass
+ return func_to_call
+
+ def wrapper(*args, **kwargs):
+ func_to_call = get_func_to_call()
+ logger.info("running %s()...", func.__name__)
+ try:
+ test_map[func.__name__] = dict()
+ test_map[func.__name__]["result"] = SUCCESSED
+ test_map[func.__name__]["error_message"] = ""
+ test_map[func.__name__]["error_stack"] = ""
+ test_map[func.__name__]["error_normalized"] = ""
+ test_map[func.__name__]["start_dt"] = dt.datetime.utcnow()
+ ret = func_to_call(*args, **kwargs)
+ except (AssertionError, AzureError, CliTestError, CliExecutionError, SystemExit,
+ JMESPathCheckAssertionError) as e:
+ use_exception_cache = os.getenv("TEST_EXCEPTION_CACHE")
+ if use_exception_cache is None or use_exception_cache.lower() != "true":
+ raise
+ test_map[func.__name__]["end_dt"] = dt.datetime.utcnow()
+ test_map[func.__name__]["result"] = FAILED
+ test_map[func.__name__]["error_message"] = str(e).replace("\r\n", " ").replace("\n", " ")[:500]
+ test_map[func.__name__]["error_stack"] = traceback.format_exc().replace(
+ "\r\n", " ").replace("\n", " ")[:500]
+ logger.info("--------------------------------------")
+ logger.info("step exception: %s", e)
+ logger.error("--------------------------------------")
+ logger.error("step exception in %s: %s", func.__name__, e)
+ logger.info(traceback.format_exc())
+ exceptions.append((func.__name__, sys.exc_info()))
+ else:
+ test_map[func.__name__]["end_dt"] = dt.datetime.utcnow()
+ return ret
+
+ if inspect.isclass(func):
+ return get_func_to_call()
+ return wrapper
+
+
+def calc_coverage(filename):
+ filename = filename.split(".")[0]
+ coverage_name = filename + "_coverage.md"
+ with open(coverage_name, "w") as f:
+ f.write("|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt|\n")
+ total = len(test_map)
+ covered = 0
+ for k, v in test_map.items():
+ if not k.startswith("step_"):
+ total -= 1
+ continue
+ if v["result"] == SUCCESSED:
+ covered += 1
+ f.write("|{step_name}|{result}|{error_message}|{error_stack}|{error_normalized}|{start_dt}|"
+ "{end_dt}|\n".format(step_name=k, **v))
+ f.write("Coverage: {}/{}\n".format(covered, total))
+ print("Create coverage\n", file=sys.stderr)
+
+
+def raise_if():
+ if exceptions:
+ if len(exceptions) <= 1:
+ raise exceptions[0][1][1]
+ message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1]))
+ message += "\n".join(["{}: {}".format(h[0], h[1][1]) for h in exceptions[1:]])
+ raise exceptions[0][1][0](message).with_traceback(exceptions[0][1][2])
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_endpoint.yaml b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_endpoint.yaml
index ac82fb12053..b876b4b543e 100644
--- a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_endpoint.yaml
+++ b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_endpoint.yaml
@@ -13,21 +13,21 @@ interactions:
ParameterSetName:
- -g -n --public-network-access
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest_amcs_endpoints000001?api-version=2020-10-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest_amcs_endpoints000001?api-version=2021-04-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001","name":"clitest_amcs_endpoints000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2021-05-27T07:25:20Z"},"properties":{"provisioningState":"Succeeded"}}'
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001","name":"clitest_amcs_endpoints000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-04-21T09:49:54Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- - '433'
+ - '339'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:25 GMT
+ - Thu, 21 Apr 2022 09:50:00 GMT
expires:
- '-1'
pragma:
@@ -60,23 +60,23 @@ interactions:
ParameterSetName:
- -g -n --public-network-access
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-09-01-preview
response:
body:
- string: '{"properties":{"immutableId":"dce-20a0c7744d92462dab029b274da94533","configurationAccess":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Disabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01005984-0000-3400-0000-60af496e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:32.1877003Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:32.1877003Z"}}'
+ string: '{"properties":{"immutableId":"dce-6bf72b1e442446c9b5f294a243f33c11","configurationAccess":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Disabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00001c76-0000-3300-0000-626128cf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:05.1808069Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:05.1808069Z"}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '940'
+ - '915'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:35 GMT
+ - Thu, 21 Apr 2022 09:50:09 GMT
expires:
- '-1'
pragma:
@@ -112,23 +112,23 @@ interactions:
ParameterSetName:
- -g -n --public-network-access --kind
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-09-01-preview
response:
body:
- string: '{"properties":{"immutableId":"dce-20a0c7744d92462dab029b274da94533","configurationAccess":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Disabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01005984-0000-3400-0000-60af496e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:32.1877003Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:32.1877003Z"}}'
+ string: '{"properties":{"immutableId":"dce-6bf72b1e442446c9b5f294a243f33c11","configurationAccess":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Disabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00001c76-0000-3300-0000-626128cf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:05.1808069Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:05.1808069Z"}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '940'
+ - '915'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:37 GMT
+ - Thu, 21 Apr 2022 09:50:12 GMT
expires:
- '-1'
pragma:
@@ -150,7 +150,7 @@ interactions:
message: OK
- request:
body: '{"location": "eastus2euap", "kind": "Windows", "properties": {"immutableId":
- "dce-20a0c7744d92462dab029b274da94533", "configurationAccess": {}, "logsIngestion":
+ "dce-6bf72b1e442446c9b5f294a243f33c11", "configurationAccess": {}, "logsIngestion":
{}, "networkAcls": {"publicNetworkAccess": "Enabled"}}}'
headers:
Accept:
@@ -168,23 +168,23 @@ interactions:
ParameterSetName:
- -g -n --public-network-access --kind
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1?api-version=2021-09-01-preview
response:
body:
- string: '{"properties":{"immutableId":"dce-20a0c7744d92462dab029b274da94533","configurationAccess":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006184-0000-3400-0000-60af49730000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:32.1877003Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:39.2156275Z"}}'
+ string: '{"properties":{"immutableId":"dce-6bf72b1e442446c9b5f294a243f33c11","configurationAccess":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00002576-0000-3300-0000-626128d60000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:05.1808069Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:14.0042181Z"}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '956'
+ - '931'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:42 GMT
+ - Thu, 21 Apr 2022 09:50:16 GMT
expires:
- '-1'
pragma:
@@ -220,21 +220,21 @@ interactions:
ParameterSetName:
- -g -n --public-network-access --kind
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest_amcs_endpoints000001?api-version=2020-10-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest_amcs_endpoints000001?api-version=2021-04-01
response:
body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001","name":"clitest_amcs_endpoints000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2021-05-27T07:25:20Z"},"properties":{"provisioningState":"Succeeded"}}'
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001","name":"clitest_amcs_endpoints000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-04-21T09:49:54Z"},"properties":{"provisioningState":"Succeeded"}}'
headers:
cache-control:
- no-cache
content-length:
- - '433'
+ - '339'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:43 GMT
+ - Thu, 21 Apr 2022 09:50:17 GMT
expires:
- '-1'
pragma:
@@ -267,23 +267,23 @@ interactions:
ParameterSetName:
- -g -n --public-network-access --kind
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-09-01-preview
response:
body:
- string: '{"properties":{"immutableId":"dce-fb5a318363404a6d99c12ad2d598066e","configurationAccess":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006584-0000-3400-0000-60af497e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:48.438582Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:48.438582Z"}}'
+ string: '{"properties":{"immutableId":"dce-b364c0e7c86d47af830514c42083fdca","configurationAccess":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00003476-0000-3300-0000-626128e30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:25.0754476Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:25.0754476Z"}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '952'
+ - '929'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:51 GMT
+ - Thu, 21 Apr 2022 09:50:29 GMT
expires:
- '-1'
pragma:
@@ -319,23 +319,23 @@ interactions:
ParameterSetName:
- -g -n
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-09-01-preview
response:
body:
- string: '{"properties":{"immutableId":"dce-fb5a318363404a6d99c12ad2d598066e","configurationAccess":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006584-0000-3400-0000-60af497e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:48.438582Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:48.438582Z"}}'
+ string: '{"properties":{"immutableId":"dce-b364c0e7c86d47af830514c42083fdca","configurationAccess":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00003476-0000-3300-0000-626128e30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:25.0754476Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:25.0754476Z"}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '952'
+ - '929'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:53 GMT
+ - Thu, 21 Apr 2022 09:50:32 GMT
expires:
- '-1'
pragma:
@@ -369,23 +369,23 @@ interactions:
ParameterSetName:
- -g
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-09-01-preview
response:
body:
- string: '{"value":[{"properties":{"immutableId":"dce-20a0c7744d92462dab029b274da94533","configurationAccess":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006184-0000-3400-0000-60af49730000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:32.1877003Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:39.2156275Z"}},{"properties":{"immutableId":"dce-fb5a318363404a6d99c12ad2d598066e","configurationAccess":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-e5xp.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006584-0000-3400-0000-60af497e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:48.438582Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:48.438582Z"}}],"nextLink":null}'
+ string: '{"value":[{"properties":{"immutableId":"dce-6bf72b1e442446c9b5f294a243f33c11","configurationAccess":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00002576-0000-3300-0000-626128d60000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:05.1808069Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:14.0042181Z"}},{"properties":{"immutableId":"dce-b364c0e7c86d47af830514c42083fdca","configurationAccess":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint2-cc4j.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Linux","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2","name":"endpoint2","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00003476-0000-3300-0000-626128e30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:25.0754476Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:25.0754476Z"}}],"nextLink":null}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '1937'
+ - '1889'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:25:55 GMT
+ - Thu, 21 Apr 2022 09:50:32 GMT
expires:
- '-1'
pragma:
@@ -421,21 +421,75 @@ interactions:
ParameterSetName:
- -g -n -y
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-09-01-preview
response:
body:
- string: ''
+ string: '{"error":{"code":"ProcessingError","message":"The scope ''/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-amcs-canary-eeap/providers/Microsoft.Network/dnsZones/eastus2euap-1.handler.canary.control.monitor.azure.com/CNAME/endpoint2-cc4j''
+ cannot perform delete operation because following scope(s) are locked: ''/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg-amcs-canary-eeap/providers/Microsoft.Network/DNSZones/eastus2euap-1.handler.canary.control.monitor.azure.com''.
+ Please remove the lock and try again."}}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
+ connection:
+ - close
content-length:
+ - '551'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:50:35 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-failure-cause:
+ - service
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 500
+ message: Internal Server Error
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection endpoint delete
+ Connection:
+ - keep-alive
+ Content-Length:
- '0'
+ ParameterSetName:
+ - -g -n -y
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint2?api-version=2021-09-01-preview
+ response:
+ body:
+ string: ''
+ headers:
+ api-supported-versions:
+ - 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
date:
- - Thu, 27 May 2021 07:26:02 GMT
+ - Thu, 21 Apr 2022 09:50:40 GMT
expires:
- '-1'
pragma:
@@ -449,10 +503,10 @@ interactions:
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-deletes:
- - '14998'
+ - '14999'
status:
- code: 200
- message: OK
+ code: 204
+ message: No Content
- request:
body: null
headers:
@@ -467,23 +521,23 @@ interactions:
ParameterSetName:
- -g
User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-04-01
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-09-01-preview
response:
body:
- string: '{"value":[{"properties":{"immutableId":"dce-20a0c7744d92462dab029b274da94533","configurationAccess":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.handler.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-v5th.eastus2euap-1.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"01006184-0000-3400-0000-60af49730000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T07:25:32.1877003Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T07:25:39.2156275Z"}}],"nextLink":null}'
+ string: '{"value":[{"properties":{"immutableId":"dce-6bf72b1e442446c9b5f294a243f33c11","configurationAccess":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.handler.canary.control.monitor.azure.com"},"logsIngestion":{"endpoint":"https://endpoint1-cdsd.eastus2euap-1.canary.ingest.monitor.azure.com"},"networkAcls":{"publicNetworkAccess":"Enabled"},"provisioningState":"Succeeded"},"location":"eastus2euap","kind":"Windows","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_endpoints000001/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1","name":"endpoint1","type":"Microsoft.Insights/dataCollectionEndpoints","etag":"\"00002576-0000-3300-0000-626128d60000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:05.1808069Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:14.0042181Z"}}],"nextLink":null}'
headers:
api-supported-versions:
- - '2021-04-01'
+ - 2021-04-01, 2021-09-01-preview
cache-control:
- no-cache
content-length:
- - '984'
+ - '959'
content-type:
- application/json; charset=utf-8
date:
- - Thu, 27 May 2021 07:26:04 GMT
+ - Thu, 21 Apr 2022 09:50:41 GMT
expires:
- '-1'
pragma:
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_rule.yaml b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_rule.yaml
new file mode 100644
index 00000000000..3906feb9cfa
--- /dev/null
+++ b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_amcs_data_collection_rule.yaml
@@ -0,0 +1,369 @@
+interactions:
+- request:
+ body: '{"location": "westus2", "properties": {"dataSources": {"performanceCounters":
+ [{"streams": ["Microsoft-InsightsMetrics"], "samplingFrequencyInSeconds": 10,
+ "counterSpecifiers": ["\\Processor Information(_Total)\\% Processor Time"],
+ "name": "perfCounter01"}]}, "destinations": {"azureMonitorMetrics": {"name":
+ "azureMonitorMetrics-default"}}, "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"],
+ "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '450'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --resource-group --location --name --rule-file
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-f6061dec0df342efa0ce098bc816649a","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule","name":"testrule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1500a89e-0000-0800-0000-626128cc0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:03.3050825Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:03.3050825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1024'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:06 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource-group --name --performance-counters
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-f6061dec0df342efa0ce098bc816649a","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule","name":"testrule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1500a89e-0000-0800-0000-626128cc0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:03.3050825Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:03.3050825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1024'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:09 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "westus2", "properties": {"dataSources": {"performanceCounters":
+ [{"streams": ["Microsoft-InsightsMetrics"], "samplingFrequencyInSeconds": 20,
+ "counterSpecifiers": ["[\\Processor Information(_Total)\\% Processor Time]"],
+ "name": "perfCounter02"}]}, "destinations": {"azureMonitorMetrics": {"name":
+ "azureMonitorMetrics-default"}}, "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"],
+ "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '452'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --resource-group --name --performance-counters
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-f6061dec0df342efa0ce098bc816649a","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":20,"counterSpecifiers":["[\\Processor
+ Information(_Total)\\% Processor Time]"],"name":"perfCounter02"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule","name":"testrule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1500bd9e-0000-0800-0000-626128d10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:03.3050825Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:09.5638593Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1026'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:09 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-f6061dec0df342efa0ce098bc816649a","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":20,"counterSpecifiers":["[\\Processor
+ Information(_Total)\\% Processor Time]"],"name":"perfCounter02"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule","name":"testrule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1500bd9e-0000-0800-0000-626128d10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:03.3050825Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:09.5638593Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1026'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:10 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[{"properties":{"immutableId":"dcr-f6061dec0df342efa0ce098bc816649a","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":20,"counterSpecifiers":["[\\Processor
+ Information(_Total)\\% Processor Time]"],"name":"perfCounter02"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule","name":"testrule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1500bd9e-0000-0800-0000-626128d10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:50:03.3050825Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:50:09.5638593Z"}}],"nextLink":null}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1054'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:12 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -g -n -y
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules/testrule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: ''
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ date:
+ - Thu, 21 Apr 2022 09:50:24 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest_amcs_rule000001/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '12'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:50:24 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
+version: 1
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_Scenario.yaml b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_Scenario.yaml
deleted file mode 100644
index 66d9be3d0ca..00000000000
--- a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_Scenario.yaml
+++ /dev/null
@@ -1,4169 +0,0 @@
-interactions:
-- request:
- body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
- "capacityReservationLevel": 100}, "retentionInDays": 30, "workspaceCapping":
- {"dailyQuotaGb": 1.0}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- Content-Length:
- - '177'
- Content-Type:
- - application/json
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000002?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"e1f3c979-79c2-4132-95eb-ef451a1d189b\",\r\n \"provisioningState\": \"Creating\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 100,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:00:43 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
- \ \"quotaNextResetTime\": \"Fri, 28 May 2021 03:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:00:43 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:00:43 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002\",\r\n
- \ \"name\": \"clitest000002\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:00:44 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000002?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"e1f3c979-79c2-4132-95eb-ef451a1d189b\",\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 100,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:00:43 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
- \ \"quotaNextResetTime\": \"Fri, 28 May 2021 03:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:00:43 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:00:46 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002\",\r\n
- \ \"name\": \"clitest000002\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:01:14 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
- "capacityReservationLevel": 300}, "retentionInDays": 30, "workspaceCapping":
- {"dailyQuotaGb": 1.0}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- Content-Length:
- - '177'
- Content-Type:
- - application/json
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000003?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"54976f20-00d4-4abf-a6b6-fcf82ee13639\",\r\n \"provisioningState\": \"Creating\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 300,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:01:23 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
- \ \"quotaNextResetTime\": \"Thu, 27 May 2021 07:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:01:23 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:01:23 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003\",\r\n
- \ \"name\": \"clitest000003\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:01:24 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000003?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"54976f20-00d4-4abf-a6b6-fcf82ee13639\",\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 300,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:01:23 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
- \ \"quotaNextResetTime\": \"Thu, 27 May 2021 07:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:01:23 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:01:24 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003\",\r\n
- \ \"name\": \"clitest000003\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:01:54 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
- "capacityReservationLevel": 200}, "retentionInDays": 30, "workspaceCapping":
- {"dailyQuotaGb": 1.0}}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- Content-Length:
- - '177'
- Content-Type:
- - application/json
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000004?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"1fb933a2-3b43-4ede-acbd-ec1fa089717d\",\r\n \"provisioningState\": \"Creating\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 200,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:02:03 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
- \ \"quotaNextResetTime\": \"Thu, 27 May 2021 09:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:02:03 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:02:03 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004\",\r\n
- \ \"name\": \"clitest000004\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:02:04 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-writes:
- - '1199'
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor log-analytics workspace create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --location --quota --level --sku
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-loganalytics/8.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000004?api-version=2020-08-01
- response:
- body:
- string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
- \"1fb933a2-3b43-4ede-acbd-ec1fa089717d\",\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
- 200,\r\n \"lastSkuUpdate\": \"Thu, 27 May 2021 05:02:03 GMT\"\r\n },\r\n
- \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
- \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
- true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
- \ \"quotaNextResetTime\": \"Thu, 27 May 2021 09:00:00 GMT\",\r\n \"dataIngestionStatus\":
- \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
- \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
- \"Thu, 27 May 2021 05:02:03 GMT\",\r\n \"modifiedDate\": \"Thu, 27 May
- 2021 05:02:05 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004\",\r\n
- \ \"name\": \"clitest000004\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
- \ \"location\": \"eastus\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '1183'
- content-type:
- - application/json
- date:
- - Thu, 27 May 2021 05:02:35 GMT
- pragma:
- - no-cache
- server:
- - Microsoft-IIS/10.0
- - Microsoft-IIS/10.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-powered-by:
- - ASP.NET
- - ASP.NET
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-05-27T05:00:29Z"},"properties":{"provisioningState":"Succeeded"}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '428'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:02:36 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:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- User-Agent:
- - python-requests/2.22.0
- method: GET
- uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json
- response:
- 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 \"outputs\": {\n \"aliases\": {\n \"type\":
- \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\":
- {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n
- \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n
- \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\":
- \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n
- \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n
- \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\":
- \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\":
- \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\":
- \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\":
- {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n
- \ \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n },\n
- \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\":
- \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n
- \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n
- \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n
- \ \"version\": \"latest\"\n }\n },\n \"Windows\":
- {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n
- \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n
- \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\":
- {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\":
- \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\":
- \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\":
- \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\":
- \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n
- \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n
- \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n
- \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\":
- {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\":
- \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\":
- \"latest\"\n }\n }\n }\n }\n }\n}\n"
- headers:
- accept-ranges:
- - bytes
- access-control-allow-origin:
- - '*'
- cache-control:
- - max-age=300
- connection:
- - keep-alive
- content-length:
- - '2501'
- content-security-policy:
- - default-src 'none'; style-src 'unsafe-inline'; sandbox
- content-type:
- - text/plain; charset=utf-8
- date:
- - Thu, 27 May 2021 05:02:37 GMT
- etag:
- - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da"
- expires:
- - Thu, 27 May 2021 05:07:37 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-content-type-options:
- - nosniff
- x-fastly-request-id:
- - 182007291e6b82255e79daa85764cc13a4c5e26c
- x-frame-options:
- - deny
- x-github-request-id:
- - 7E5E:3B3E:63EE34:75DB8C:60AF1DE6
- x-served-by:
- - cache-qpg1269-QPG
- x-timer:
- - S1622091757.967009,VS0,VE287
- x-xss-protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01
- response:
- body:
- string: '{"value":[]}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '12'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:02:37 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: '{"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": "vm1VNET", "type": "Microsoft.Network/virtualNetworks", "location":
- "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties":
- {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name":
- "vm1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": "Microsoft.Network/networkSecurityGroups",
- "name": "vm1NSG", "apiVersion": "2015-06-15", "location": "westus", "tags":
- {}, "dependsOn": [], "properties": {"securityRules": [{"name": "default-allow-ssh",
- "properties": {"protocol": "Tcp", "sourcePortRange": "*", "destinationPortRange":
- "22", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access":
- "Allow", "priority": 1000, "direction": "Inbound"}}]}}, {"apiVersion": "2018-01-01",
- "type": "Microsoft.Network/publicIPAddresses", "name": "vm1PublicIP", "location":
- "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod":
- null}}, {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
- "name": "vm1VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
- "Microsoft.Network/networkSecurityGroups/vm1NSG", "Microsoft.Network/publicIpAddresses/vm1PublicIP"],
- "properties": {"ipConfigurations": [{"name": "ipconfigvm1", "properties": {"privateIPAllocationMethod":
- "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
- "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}}}],
- "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}},
- {"apiVersion": "2020-12-01", "type": "Microsoft.Compute/virtualMachines", "name":
- "vm1", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"],
- "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
- {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]},
- "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching":
- "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference":
- {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version":
- "latest"}}, "osProfile": {"computerName": "vm1", "adminUsername": "testadmin",
- "adminPassword": "[parameters(''adminPassword'')]"}}}], "outputs": {}}, "parameters":
- {"adminPassword": {"value": "TestPassword11!!"}}, "mode": "incremental"}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- Content-Length:
- - '3316'
- Content-Type:
- - application/json
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_wJCgfYlJ8wEzfv4f9A3TCBTcmv2yG4JH","name":"vm_deploy_wJCgfYlJ8wEzfv4f9A3TCBTcmv2yG4JH","type":"Microsoft.Resources/deployments","properties":{"templateHash":"697295396846284346","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-05-27T05:02:42.619245Z","duration":"PT2.459995S","correlationId":"6278bf0f-a9b0-444b-8e5b-69b426a361d1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'
- headers:
- azure-asyncoperation:
- - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_wJCgfYlJ8wEzfv4f9A3TCBTcmv2yG4JH/operationStatuses/08585795151253183926?api-version=2020-10-01
- cache-control:
- - no-cache
- content-length:
- - '2778'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:02:43 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'
- status:
- code: 201
- message: Created
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585795151253183926?api-version=2020-10-01
- response:
- body:
- string: '{"status":"Running"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '20'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:03:14 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:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585795151253183926?api-version=2020-10-01
- response:
- body:
- string: '{"status":"Running"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '20'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:03:44 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:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585795151253183926?api-version=2020-10-01
- response:
- body:
- string: '{"status":"Succeeded"}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '22'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:14 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:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2020-10-01
- response:
- body:
- string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_wJCgfYlJ8wEzfv4f9A3TCBTcmv2yG4JH","name":"vm_deploy_wJCgfYlJ8wEzfv4f9A3TCBTcmv2yG4JH","type":"Microsoft.Resources/deployments","properties":{"templateHash":"697295396846284346","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2021-05-27T05:03:49.0282913Z","duration":"PT1M8.8690413S","correlationId":"6278bf0f-a9b0-444b-8e5b-69b426a361d1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3846'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:15 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:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-compute/20.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2020-12-01
- response:
- body:
- string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n
- \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n
- \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"0a235e8d-d3d8-4119-b7fc-e04a7dc2bf67\",\r\n
- \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
- \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
- \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
- \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\":
- \"18.04.202105120\"\r\n },\r\n \"osDisk\": {\r\n \"osType\":
- \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_d09f6bcdeee04c2385abfad23784df25\",\r\n
- \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n
- \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_d09f6bcdeee04c2385abfad23784df25\"\r\n
- \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\":
- []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n
- \ \"adminUsername\": \"testadmin\",\r\n \"linuxConfiguration\": {\r\n
- \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\":
- true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\"\r\n
- \ }\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\":
- true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\":
- {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n
- \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\":
- \"vm1\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n
- \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.3.0.2\",\r\n \"statuses\":
- [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n
- \ \"message\": \"Guest Agent is running\",\r\n \"time\":
- \"2021-05-27T05:04:00+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\":
- []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_d09f6bcdeee04c2385abfad23784df25\",\r\n
- \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2021-05-27T05:03:20.6650778+00:00\"\r\n
- \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\":
- \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
- succeeded\",\r\n \"time\": \"2021-05-27T05:03:47.6494974+00:00\"\r\n
- \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n
- \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n
- \ }\r\n ]\r\n }\r\n }\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '3261'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-resource:
- - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31997
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2018-01-01
- response:
- body:
- string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\",\r\n
- \ \"etag\": \"W/\\\"cae235b3-f078-4e65-acfb-8061bc6792c4\\\"\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":
- \"Succeeded\",\r\n \"resourceGuid\": \"ba7b35de-3f41-4f51-adae-9ce0f74d48c8\",\r\n
- \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\",\r\n
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\",\r\n
- \ \"etag\": \"W/\\\"cae235b3-f078-4e65-acfb-8061bc6792c4\\\"\",\r\n
- \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n
- \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
- \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\":
- \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\r\n
- \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\r\n
- \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\":
- \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\":
- [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\":
- \"h2fageeraunevd35g4lbxmsthh.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\":
- \"00-0D-3A-33-DA-A9\",\r\n \"enableAcceleratedNetworking\": false,\r\n
- \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n
- \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\r\n
- \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\":
- \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1\"\r\n
- \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '2568'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:17 GMT
- etag:
- - W/"cae235b3-f078-4e65-acfb-8061bc6792c4"
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-arm-service-request-id:
- - 3f5b88f3-499c-4a57-a966-0aa1d33b2c9e
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json, text/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - vm create
- Connection:
- - keep-alive
- ParameterSetName:
- - -g -n --image --admin-password --admin-username --authentication-type
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-azure-mgmt-network/19.0.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2018-01-01
- response:
- body:
- string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\",\r\n
- \ \"etag\": \"W/\\\"bdf3af73-d300-4abe-8600-66387e7da23c\\\"\",\r\n \"location\":
- \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":
- \"Succeeded\",\r\n \"resourceGuid\": \"888384cb-1ed2-47ba-a49a-db6a8724735a\",\r\n
- \ \"ipAddress\": \"104.42.45.39\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n
- \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\":
- 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n
- \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n
- \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"
- headers:
- cache-control:
- - no-cache
- content-length:
- - '996'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:17 GMT
- etag:
- - W/"bdf3af73-d300-4abe-8600-66387e7da23c"
- expires:
- - '-1'
- pragma:
- - no-cache
- server:
- - Microsoft-HTTPAPI/2.0
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-arm-service-request-id:
- - f0a16fa3-53dd-4317-9ab0-f37886358001
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "properties": {"dataSources": {"performanceCounters":
- [{"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 15, "counterSpecifiers":
- ["\\Processor(_Total)\\% Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free
- Megabytes", "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule create
- Connection:
- - keep-alive
- Content-Length:
- - '1454'
- Content-Type:
- - application/json
- ParameterSetName:
- - -g -n --location --data-flows --log-analytics --performance-counters --performance-counters
- --syslog --windows-event-logs --windows-event-logs
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033e81-0000-0100-0000-60af28570000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:21.728359Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2099'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:25 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule show
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033e81-0000-0100-0000-60af28570000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:21.728359Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2099'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:27 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule list
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-04-01
- response:
- body:
- string: '{"value":[{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033e81-0000-0100-0000-60af28570000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:21.728359Z"}}],"nextLink":null}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2127'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:28 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule list
- Connection:
- - keep-alive
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-04-01
- response:
- body:
- string: '{"value":[{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033e81-0000-0100-0000-60af28570000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:21.728359Z"}}],"nextLink":null}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2127'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:31 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule update
- Connection:
- - keep-alive
- ParameterSetName:
- - --tags --name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033e81-0000-0100-0000-60af28570000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:21.728359Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2099'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:33 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule update
- Connection:
- - keep-alive
- Content-Length:
- - '1503'
- Content-Type:
- - application/json
- ParameterSetName:
- - --tags --name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24030b82-0000-0100-0000-60af28630000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:34.6668503Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:38 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24030b82-0000-0100-0000-60af28630000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:34.6668503Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:39 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}, {"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
- "name": "clitest000003"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics add
- Connection:
- - keep-alive
- Content-Length:
- - '1778'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034e82-0000-0100-0000-60af28680000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:39.7318852Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:40 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '58'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034e82-0000-0100-0000-60af28680000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:39.7318852Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:42 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics show
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034e82-0000-0100-0000-60af28680000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:39.7318852Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:44 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics update
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034e82-0000-0100-0000-60af28680000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:39.7318852Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:46 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}, {"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004",
- "name": "clitest000003"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics update
- Connection:
- - keep-alive
- Content-Length:
- - '1778'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004","workspaceId":"1fb933a2-3b43-4ede-acbd-ec1fa089717d","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403d582-0000-0100-0000-60af28700000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:47.1234635Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:48 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics delete
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004","workspaceId":"1fb933a2-3b43-4ede-acbd-ec1fa089717d","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403d582-0000-0100-0000-60af28700000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:47.1234635Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:49 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics delete
- Connection:
- - keep-alive
- Content-Length:
- - '1503'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403fe82-0000-0100-0000-60af28730000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:50.6813746Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:50 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --counter-specifiers --sampling-frequency
- --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403fe82-0000-0100-0000-60af28730000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:50.6813746Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:53 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}, {"streams":
- ["Microsoft-Perf"], "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Memory\\Committed
- Bytes", "\\Processor(_Total)\\% Processor Time"], "name": "extraCounters"}],
- "windowsEventLogs": [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["Security!"], "name": "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"],
- "xPathQueries": ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter add
- Connection:
- - keep-alive
- Content-Length:
- - '1688'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --counter-specifiers --sampling-frequency
- --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
- Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033083-0000-0100-0000-60af28760000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:53.8305782Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2318'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:54 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
- Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033083-0000-0100-0000-60af28760000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:53.8305782Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2318'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:56 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter show
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
- Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033083-0000-0100-0000-60af28760000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:53.8305782Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2318'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:56 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter update
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --counter-specifiers
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
- Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24033083-0000-0100-0000-60af28760000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:53.8305782Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2318'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:58 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}, {"streams":
- ["Microsoft-Perf"], "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time"], "name": "extraCounters"}], "windowsEventLogs": [{"streams":
- ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name": "cloudSecurityTeamEvents"},
- {"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog": [{"streams":
- ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels": ["Alert", "Critical",
- "Emergency"], "name": "syslogBase"}]}, "destinations": {"logAnalytics": [{"workspaceResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter update
- Connection:
- - keep-alive
- Content-Length:
- - '1659'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --counter-specifiers
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24039d83-0000-0100-0000-60af287a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:58.6286179Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2290'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:04:59 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '58'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter delete
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time"],"name":"extraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24039d83-0000-0100-0000-60af287a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:04:58.6286179Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2290'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:01 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule performance-counter delete
- Connection:
- - keep-alive
- Content-Length:
- - '1503'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403bf83-0000-0100-0000-60af287e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:01.6532559Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:02 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --streams --x-path-queries
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403bf83-0000-0100-0000-60af287e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:01.6532559Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:03 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}, {"streams":
- ["Microsoft-WindowsEvent"], "xPathQueries": ["System![System[(Level = 1 or Level
- = 2 or Level = 3)]]", "Application!*[System[(Level = 1 or Level = 2 or Level
- = 3)]]"], "name": "extraEvents"}], "syslog": [{"streams": ["Microsoft-Syslog"],
- "facilityNames": ["syslog"], "logLevels": ["Alert", "Critical", "Emergency"],
- "name": "syslogBase"}]}, "destinations": {"logAnalytics": [{"workspaceResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log add
- Connection:
- - keep-alive
- Content-Length:
- - '1707'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --streams --x-path-queries
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403f483-0000-0100-0000-60af28800000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:04.5906857Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2339'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:04 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403f483-0000-0100-0000-60af28800000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:04.5906857Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2339'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:05 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log show
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403f483-0000-0100-0000-60af28800000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:04.5906857Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2339'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:07 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log update
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --x-path-queries
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403f483-0000-0100-0000-60af28800000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:04.5906857Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2339'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:09 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}, {"streams":
- ["Microsoft-WindowsEvent"], "xPathQueries": ["Application!*[System[(Level =
- 1 or Level = 2 or Level = 3)]]"], "name": "extraEvents"}], "syslog": [{"streams":
- ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels": ["Alert", "Critical",
- "Emergency"], "name": "syslogBase"}]}, "destinations": {"logAnalytics": [{"workspaceResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log update
- Connection:
- - keep-alive
- Content-Length:
- - '1649'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --x-path-queries
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034584-0000-0100-0000-60af28860000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:10.5712585Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2282'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:11 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log delete
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"],"name":"extraEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24034584-0000-0100-0000-60af28860000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:10.5712585Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2282'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:12 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule windows-event-log delete
- Connection:
- - keep-alive
- Content-Length:
- - '1503'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24036984-0000-0100-0000-60af288a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:13.6485434Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:14 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --facility-names --log-levels --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24036984-0000-0100-0000-60af288a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:13.6485434Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:15 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}, {"streams": ["Microsoft-Syslog"],
- "facilityNames": ["cron"], "logLevels": ["Debug", "Critical", "Emergency"],
- "name": "cronSyslog"}]}, "destinations": {"logAnalytics": [{"workspaceResourceId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog add
- Connection:
- - keep-alive
- Content-Length:
- - '1636'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --facility-names --log-levels --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24038484-0000-0100-0000-60af288c0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:15.737088Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:16 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24038484-0000-0100-0000-60af288c0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:15.737088Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:17 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog show
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24038484-0000-0100-0000-60af288c0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:15.737088Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:19 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog update
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --log-levels
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24038484-0000-0100-0000-60af288c0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:15.737088Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2264'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:19 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}, {"streams": ["Microsoft-Syslog"],
- "facilityNames": ["cron"], "logLevels": ["Critical", "Emergency"], "name": "cronSyslog"}]},
- "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog update
- Connection:
- - keep-alive
- Content-Length:
- - '1627'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --log-levels
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403d884-0000-0100-0000-60af28910000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:20.8260998Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2257'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:21 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog delete
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"},{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"2403d884-0000-0100-0000-60af28910000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:20.8260998Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2257'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:24 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule syslog delete
- Connection:
- - keep-alive
- Content-Length:
- - '1503'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24031385-0000-0100-0000-60af28940000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:24.3388454Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:25 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24031385-0000-0100-0000-60af28940000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:24.3388454Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2142'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:27 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}, {"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
- "name": "clitest000003"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule log-analytics add
- Connection:
- - keep-alive
- Content-Length:
- - '1778'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --name --resource-id
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24032c85-0000-0100-0000-60af28980000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:27.6480313Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:28 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule data-flow add
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group --destinations --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24032c85-0000-0100-0000-60af28980000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:27.6480313Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2466'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:29 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
- "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-Perf"],
- "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
- Processor Time", "\\Memory\\Committed Bytes", "\\LogicalDisk(_Total)\\Free Megabytes",
- "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length"], "name": "cloudTeamCoreCounters"},
- {"streams": ["Microsoft-Perf"], "samplingFrequencyInSeconds": 30, "counterSpecifiers":
- ["\\Process(_Total)\\Thread Count"], "name": "appTeamExtraCounters"}], "windowsEventLogs":
- [{"streams": ["Microsoft-WindowsEvent"], "xPathQueries": ["Security!"], "name":
- "cloudSecurityTeamEvents"}, {"streams": ["Microsoft-WindowsEvent"], "xPathQueries":
- ["System![System[(Level = 1 or Level = 2 or Level = 3)]]", "Application!*[System[(Level
- = 1 or Level = 2 or Level = 3)]]"], "name": "appTeam1AppEvents"}], "syslog":
- [{"streams": ["Microsoft-Syslog"], "facilityNames": ["syslog"], "logLevels":
- ["Alert", "Critical", "Emergency"], "name": "syslogBase"}]}, "destinations":
- {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002",
- "name": "clitest000002"}, {"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
- "name": "clitest000003"}]}, "dataFlows": [{"streams": ["Microsoft-Perf", "Microsoft-Syslog",
- "Microsoft-WindowsEvent"], "destinations": ["clitest000002"]}, {"streams": ["Microsoft-Perf"],
- "destinations": ["clitest000003"]}]}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule data-flow add
- Connection:
- - keep-alive
- Content-Length:
- - '1853'
- Content-Type:
- - application/json
- ParameterSetName:
- - --rule-name --resource-group --destinations --streams
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]},{"streams":["Microsoft-Perf"],"destinations":["clitest000003"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24035685-0000-0100-0000-60af289a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:29.7720549Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2537'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:30 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '58'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule data-flow list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"immutableId":"dcr-2ca3bc8e5ae947f2abc7321f84473831","dataSources":{"performanceCounters":[{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
- Processor Time","\\Memory\\Committed Bytes","\\LogicalDisk(_Total)\\Free Megabytes","\\PhysicalDisk(_Total)\\Avg.
- Disk Queue Length"],"name":"cloudTeamCoreCounters"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":30,"counterSpecifiers":["\\Process(_Total)\\Thread
- Count"],"name":"appTeamExtraCounters"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Security!"],"name":"cloudSecurityTeamEvents"},{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
- = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
- = 2 or Level = 3)]]"],"name":"appTeam1AppEvents"}],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["syslog"],"logLevels":["Alert","Critical","Emergency"],"name":"syslogBase"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002","workspaceId":"e1f3c979-79c2-4132-95eb-ef451a1d189b","name":"clitest000002"},{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"54976f20-00d4-4abf-a6b6-fcf82ee13639","name":"clitest000003"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-Syslog","Microsoft-WindowsEvent"],"destinations":["clitest000002"]},{"streams":["Microsoft-Perf"],"destinations":["clitest000003"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"24035685-0000-0100-0000-60af289a0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:04:21.728359Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:29.7720549Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '2537'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:32 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association create
- Connection:
- - keep-alive
- Content-Length:
- - '252'
- Content-Type:
- - application/json
- ParameterSetName:
- - --name --rule-id --resource
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"1101db03-0000-0700-0000-60af289e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:05:33.46805Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:33.46805Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '880'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:34 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association show
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --resource
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"1101db03-0000-0700-0000-60af289e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:05:33.46805Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:33.46805Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '880'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:36 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association list
- Connection:
- - keep-alive
- ParameterSetName:
- - --rule-name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule/associations?api-version=2021-04-01
- response:
- body:
- string: '{"value":[{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.insights/datacollectionrules/mycollectionrule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.compute/virtualmachines/vm1/providers/microsoft.insights/datacollectionruleassociations/myassociation","name":"myassociation","type":"Microsoft.Insights/dataCollectionRuleAssociations"}],"nextLink":null}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '632'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:38 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association list
- Connection:
- - keep-alive
- ParameterSetName:
- - --resource
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version=2021-04-01
- response:
- body:
- string: '{"value":[{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"1101db03-0000-0700-0000-60af289e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:05:33.46805Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:33.46805Z"}}],"nextLink":null}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '908'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:39 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association update
- Connection:
- - keep-alive
- ParameterSetName:
- - --name --resource --description
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: GET
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"1101db03-0000-0700-0000-60af289e0000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:05:33.46805Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:33.46805Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '880'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:41 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- status:
- code: 200
- message: OK
-- request:
- body: '{"properties": {"description": "this is description", "dataCollectionRuleId":
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"}}'
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association update
- Connection:
- - keep-alive
- Content-Length:
- - '290'
- Content-Type:
- - application/json
- ParameterSetName:
- - --name --resource --description
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: PUT
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-04-01
- response:
- body:
- string: '{"properties":{"description":"this is description","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"1101df05-0000-0700-0000-60af28a60000\"","systemData":{"createdBy":"kairu@microsoft.com","createdByType":"User","createdAt":"2021-05-27T05:05:41.8700929Z","lastModifiedBy":"kairu@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2021-05-27T05:05:41.8700929Z"}}'
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '920'
- content-type:
- - application/json; charset=utf-8
- date:
- - Thu, 27 May 2021 05:05:42 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- transfer-encoding:
- - chunked
- vary:
- - Accept-Encoding,Accept-Encoding
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-resource-requests:
- - '59'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule association delete
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- ParameterSetName:
- - -y --name --resource
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-04-01
- response:
- body:
- string: ''
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '0'
- date:
- - Thu, 27 May 2021 05:05:44 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-deletes:
- - '14999'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- CommandName:
- - monitor data-collection rule delete
- Connection:
- - keep-alive
- Content-Length:
- - '0'
- ParameterSetName:
- - -y --name --resource-group
- User-Agent:
- - AZURECLI/2.24.0 azsdk-python-mgmt-monitor/0.1.0 Python/3.8.10 (Windows-10-10.0.19043-SP0)
- method: DELETE
- uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-04-01
- response:
- body:
- string: ''
- headers:
- api-supported-versions:
- - 2019-11-01-preview, 2021-04-01
- cache-control:
- - no-cache
- content-length:
- - '0'
- date:
- - Thu, 27 May 2021 05:05:50 GMT
- expires:
- - '-1'
- pragma:
- - no-cache
- request-context:
- - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
- server:
- - Microsoft-HTTPAPI/2.0
- strict-transport-security:
- - max-age=31536000; includeSubDomains
- x-content-type-options:
- - nosniff
- x-ms-ratelimit-remaining-subscription-deletes:
- - '14999'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_commands.yaml b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_commands.yaml
new file mode 100644
index 00000000000..2d9b48a4cbd
--- /dev/null
+++ b/src/monitor-control-service/azext_amcs/tests/latest/recordings/test_monitor_control_service_commands.yaml
@@ -0,0 +1,3907 @@
+interactions:
+- request:
+ body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
+ "capacityReservationLevel": 100}, "retentionInDays": 30, "workspaceCapping":
+ {"dailyQuotaGb": 1.0}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '177'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000002?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"1590dd03-3d49-4656-ad81-2d5c91d6112d\",\r\n \"provisioningState\": \"Creating\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 100,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:50:06 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
+ \ \"quotaNextResetTime\": \"Fri, 22 Apr 2022 00:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:50:06 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:50:06 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002\",\r\n
+ \ \"name\": \"clitest000002\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:50:06 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 201
+ message: Created
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000002?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"1590dd03-3d49-4656-ad81-2d5c91d6112d\",\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 100,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:50:06 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
+ \ \"quotaNextResetTime\": \"Fri, 22 Apr 2022 00:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:50:06 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:50:07 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000002\",\r\n
+ \ \"name\": \"clitest000002\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:50:37 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
+ "capacityReservationLevel": 300}, "retentionInDays": 30, "workspaceCapping":
+ {"dailyQuotaGb": 1.0}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '177'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000003?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"8c9185a6-f7c0-45d3-9a67-d217af2b4aad\",\r\n \"provisioningState\": \"Creating\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 300,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:50:45 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
+ \ \"quotaNextResetTime\": \"Fri, 22 Apr 2022 09:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:50:45 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:50:45 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003\",\r\n
+ \ \"name\": \"clitest000003\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:50:46 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 201
+ message: Created
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000003?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"8c9185a6-f7c0-45d3-9a67-d217af2b4aad\",\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 300,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:50:45 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
+ \ \"quotaNextResetTime\": \"Fri, 22 Apr 2022 09:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:50:45 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:50:47 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003\",\r\n
+ \ \"name\": \"clitest000003\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:51:16 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "properties": {"sku": {"name": "CapacityReservation",
+ "capacityReservationLevel": 200}, "retentionInDays": 30, "workspaceCapping":
+ {"dailyQuotaGb": 1.0}}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '177'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000004?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"210b5382-4bb1-4076-b5b1-676e54a84e9d\",\r\n \"provisioningState\": \"Creating\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 200,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:51:23 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": -1.0,\r\n
+ \ \"quotaNextResetTime\": \"Thu, 21 Apr 2022 11:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:51:23 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:51:23 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004\",\r\n
+ \ \"name\": \"clitest000004\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:51:24 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-writes:
+ - '1199'
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 201
+ message: Created
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor log-analytics workspace create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --location --quota --level --sku
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-loganalytics/13.0.0b4 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.OperationalInsights/workspaces/clitest000004?api-version=2021-12-01-preview
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"source\": \"Azure\",\r\n \"customerId\":
+ \"210b5382-4bb1-4076-b5b1-676e54a84e9d\",\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"sku\": {\r\n \"name\": \"capacityreservation\",\r\n \"capacityReservationLevel\":
+ 200,\r\n \"lastSkuUpdate\": \"Thu, 21 Apr 2022 09:51:23 GMT\"\r\n },\r\n
+ \ \"retentionInDays\": 30,\r\n \"features\": {\r\n \"legacy\": 0,\r\n
+ \ \"searchVersion\": 1,\r\n \"enableLogAccessUsingOnlyResourcePermissions\":
+ true\r\n },\r\n \"workspaceCapping\": {\r\n \"dailyQuotaGb\": 1.0,\r\n
+ \ \"quotaNextResetTime\": \"Thu, 21 Apr 2022 11:00:00 GMT\",\r\n \"dataIngestionStatus\":
+ \"RespectQuota\"\r\n },\r\n \"publicNetworkAccessForIngestion\": \"Enabled\",\r\n
+ \ \"publicNetworkAccessForQuery\": \"Enabled\",\r\n \"createdDate\":
+ \"Thu, 21 Apr 2022 09:51:23 GMT\",\r\n \"modifiedDate\": \"Thu, 21 Apr
+ 2022 09:51:26 GMT\"\r\n },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004\",\r\n
+ \ \"name\": \"clitest000004\",\r\n \"type\": \"Microsoft.OperationalInsights/workspaces\",\r\n
+ \ \"location\": \"eastus\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '1107'
+ content-type:
+ - application/json
+ date:
+ - Thu, 21 Apr 2022 09:51:55 GMT
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-IIS/10.0
+ - Microsoft-IIS/10.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-powered-by:
+ - ASP.NET
+ - ASP.NET
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2021-04-01
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-21T09:49:54Z"},"properties":{"provisioningState":"Succeeded"}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '304'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:51:55 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:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ User-Agent:
+ - python-requests/2.26.0
+ method: GET
+ uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json
+ response:
+ 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 \"outputs\": {\n \"aliases\": {\n \"type\":
+ \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\":
+ {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n
+ \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n
+ \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\":
+ \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"latest\"\n
+ \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n
+ \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\":
+ \"stable\",\n \"version\": \"latest\"\n },\n \"openSUSE-Leap\":
+ {\n \"publisher\": \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n
+ \ \"sku\": \"gen2\",\n \"version\": \"latest\"\n },\n
+ \ \"RHEL\": {\n \"publisher\": \"RedHat\",\n \"offer\":
+ \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n
+ \ },\n \"SLES\": {\n \"publisher\": \"SUSE\",\n
+ \ \"offer\": \"sles-15-sp3\",\n \"sku\": \"gen2\",\n
+ \ \"version\": \"latest\"\n },\n \"UbuntuLTS\":
+ {\n \"publisher\": \"Canonical\",\n \"offer\": \"UbuntuServer\",\n
+ \ \"sku\": \"18.04-LTS\",\n \"version\": \"latest\"\n
+ \ }\n },\n \"Windows\": {\n \"Win2022Datacenter\":
+ {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\":
+ \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\":
+ \"latest\"\n },\n \"Win2019Datacenter\": {\n \"publisher\":
+ \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\":
+ \"2019-Datacenter\",\n \"version\": \"latest\"\n },\n
+ \ \"Win2016Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n
+ \ \"offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n
+ \ \"version\": \"latest\"\n },\n \"Win2012R2Datacenter\":
+ {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\":
+ \"WindowsServer\",\n \"sku\": \"2012-R2-Datacenter\",\n \"version\":
+ \"latest\"\n },\n \"Win2012Datacenter\": {\n \"publisher\":
+ \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\":
+ \"2012-Datacenter\",\n \"version\": \"latest\"\n },\n
+ \ \"Win2008R2SP1\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n
+ \ \"offer\": \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n
+ \ \"version\": \"latest\"\n }\n }\n }\n }\n
+ \ }\n}\n"
+ headers:
+ accept-ranges:
+ - bytes
+ access-control-allow-origin:
+ - '*'
+ cache-control:
+ - max-age=300
+ connection:
+ - keep-alive
+ content-length:
+ - '2744'
+ content-security-policy:
+ - default-src 'none'; style-src 'unsafe-inline'; sandbox
+ content-type:
+ - text/plain; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:51:56 GMT
+ etag:
+ - W/"d5acead0b38a79d988c245a7a15ec01f999da9244c97bbdc1fa2ec70d9e433f5"
+ expires:
+ - Thu, 21 Apr 2022 09:56:56 GMT
+ source-age:
+ - '273'
+ strict-transport-security:
+ - max-age=31536000
+ vary:
+ - Authorization,Accept-Encoding,Origin
+ via:
+ - 1.1 varnish
+ x-cache:
+ - HIT
+ x-cache-hits:
+ - '1'
+ x-content-type-options:
+ - nosniff
+ x-fastly-request-id:
+ - 9398f5b7d6f9aeb7e27060cf29251477ef147e79
+ x-frame-options:
+ - deny
+ x-github-request-id:
+ - B7AC:5964:40E41:5DE69:6260830E
+ x-served-by:
+ - cache-qpg1258-QPG
+ x-timer:
+ - S1650534717.504945,VS0,VE1
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2021-11-01
+ response:
+ body:
+ string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202204190\",\r\n
+ \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204190\"\r\n
+ \ }\r\n]"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '286'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:51:57 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-resource:
+ - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202204190?api-version=2021-11-01
+ response:
+ body:
+ string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\":
+ \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n
+ \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\":
+ {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\":
+ {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n
+ \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\":
+ \"True\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\":
+ \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n
+ \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n
+ \ \"name\": \"18.04.202204190\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204190\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '873'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:51:59 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-resource:
+ - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json, text/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01
+ response:
+ body:
+ string: '{"value":[]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '12'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:52:00 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: '{"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": "vm1VNET", "type": "Microsoft.Network/virtualNetworks", "location":
+ "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties":
+ {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name":
+ "vm1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": "Microsoft.Network/networkSecurityGroups",
+ "name": "vm1NSG", "apiVersion": "2015-06-15", "location": "westus", "tags":
+ {}, "dependsOn": [], "properties": {"securityRules": [{"name": "default-allow-ssh",
+ "properties": {"protocol": "Tcp", "sourcePortRange": "*", "destinationPortRange":
+ "22", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access":
+ "Allow", "priority": 1000, "direction": "Inbound"}}]}}, {"apiVersion": "2018-01-01",
+ "type": "Microsoft.Network/publicIPAddresses", "name": "vm1PublicIP", "location":
+ "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod":
+ null}}, {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces",
+ "name": "vm1VMNic", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET",
+ "Microsoft.Network/networkSecurityGroups/vm1NSG", "Microsoft.Network/publicIpAddresses/vm1PublicIP"],
+ "properties": {"ipConfigurations": [{"name": "ipconfigvm1", "properties": {"privateIPAllocationMethod":
+ "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},
+ "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"}}}],
+ "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"}}},
+ {"apiVersion": "2021-11-01", "type": "Microsoft.Compute/virtualMachines", "name":
+ "vm1", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm1VMNic"],
+ "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile":
+ {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic",
+ "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption":
+ "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType":
+ null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer",
+ "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vm1",
+ "adminUsername": "testadmin", "adminPassword": "[parameters(''adminPassword'')]"}}}],
+ "outputs": {}}, "parameters": {"adminPassword": {"value": "TestPassword11!!"}},
+ "mode": "incremental"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '3106'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_u8UGciNk5xm8gYddlDfSRapMOjpMMVac","name":"vm_deploy_u8UGciNk5xm8gYddlDfSRapMOjpMMVac","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10918816366699461988","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-04-21T09:52:07.2997948Z","duration":"PT0.0009946S","correlationId":"0bcfdeaf-4dbf-4202-bf4f-a4a70d441ef8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}'
+ headers:
+ azure-asyncoperation:
+ - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_u8UGciNk5xm8gYddlDfSRapMOjpMMVac/operationStatuses/08585510721605616331?api-version=2021-04-01
+ cache-control:
+ - no-cache
+ content-length:
+ - '2348'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:52:08 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'
+ status:
+ code: 201
+ message: Created
+- request:
+ body: null
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585510721605616331?api-version=2021-04-01
+ response:
+ body:
+ string: '{"status":"Running"}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '20'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:52: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:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585510721605616331?api-version=2021-04-01
+ response:
+ body:
+ string: '{"status":"Succeeded"}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '22'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:09 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:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01
+ response:
+ body:
+ string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Resources/deployments/vm_deploy_u8UGciNk5xm8gYddlDfSRapMOjpMMVac","name":"vm_deploy_u8UGciNk5xm8gYddlDfSRapMOjpMMVac","type":"Microsoft.Resources/deployments","properties":{"templateHash":"10918816366699461988","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-04-21T09:52:50.85723Z","duration":"PT43.5584298S","correlationId":"0bcfdeaf-4dbf-4202-bf4f-a4a70d441ef8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '3101'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:09 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:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2021-11-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n
+ \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n
+ \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"26174098-5166-4a0f-b38d-435b7b97d1c7\",\r\n
+ \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n
+ \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\":
+ \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\":
+ \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\":
+ \"18.04.202204190\"\r\n },\r\n \"osDisk\": {\r\n \"osType\":
+ \"Linux\",\r\n \"name\": \"vm1_disk1_77f0589299524d61b00fe47dee0c1c05\",\r\n
+ \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n
+ \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/disks/vm1_disk1_77f0589299524d61b00fe47dee0c1c05\"\r\n
+ \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\":
+ 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\":
+ {\r\n \"computerName\": \"vm1\",\r\n \"adminUsername\": \"testadmin\",\r\n
+ \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\":
+ false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\":
+ {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\":
+ \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\":
+ false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\":
+ true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\":
+ {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n
+ \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\":
+ \"vm1\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n
+ \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.1.0\",\r\n \"statuses\":
+ [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
+ \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n
+ \ \"message\": \"Guest Agent is running\",\r\n \"time\":
+ \"2022-04-21T09:53:00+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\":
+ []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_disk1_77f0589299524d61b00fe47dee0c1c05\",\r\n
+ \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
+ \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
+ succeeded\",\r\n \"time\": \"2022-04-21T09:52:34.4664924+00:00\"\r\n
+ \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\":
+ \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n
+ \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning
+ succeeded\",\r\n \"time\": \"2022-04-21T09:52:47.3256997+00:00\"\r\n
+ \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n
+ \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n
+ \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-04-21T09:52:33.0758633+00:00\"\r\n
+ \ }\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '3251'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:11 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-resource:
+ - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31959
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json, text/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic?api-version=2018-01-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\",\r\n
+ \ \"etag\": \"W/\\\"e78665fe-cdac-45b8-9abd-dae0cd90c7bc\\\"\",\r\n \"location\":
+ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":
+ \"Succeeded\",\r\n \"resourceGuid\": \"f6c4095d-1948-45ef-b97e-eee8683ee489\",\r\n
+ \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\",\r\n
+ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\",\r\n
+ \ \"etag\": \"W/\\\"e78665fe-cdac-45b8-9abd-dae0cd90c7bc\\\"\",\r\n
+ \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n
+ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
+ \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\":
+ \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\"\r\n
+ \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"\r\n
+ \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\":
+ \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\":
+ [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\":
+ \"vtatbegtds3e3kxl2svh0bwggb.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\":
+ \"00-0D-3A-5A-F5-64\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\":
+ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\r\n
+ \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\":
+ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1\"\r\n
+ \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '2153'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:11 GMT
+ etag:
+ - W/"e78665fe-cdac-45b8-9abd-dae0cd90c7bc"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 631b0187-51db-4c0b-bb84-d6b2b9280720
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json, text/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - vm create
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - -g -n --image --admin-password --admin-username --authentication-type
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP?api-version=2018-01-01
+ response:
+ body:
+ string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\",\r\n
+ \ \"etag\": \"W/\\\"428175b5-18e8-42b9-be6e-564fbf0663e5\\\"\",\r\n \"location\":
+ \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":
+ \"Succeeded\",\r\n \"resourceGuid\": \"746d33b7-0cc1-475c-9214-23b0e56b7ab7\",\r\n
+ \ \"ipAddress\": \"157.56.164.63\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n
+ \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\":
+ 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n
+ \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n
+ \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '873'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:12 GMT
+ etag:
+ - W/"428175b5-18e8-42b9-be6e-564fbf0663e5"
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ server:
+ - Microsoft-HTTPAPI/2.0
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-arm-service-request-id:
+ - 429eaa0f-78fb-49f3-83f4-f03b6d4115f0
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "properties": {"dataSources": {"performanceCounters":
+ [{"streams": ["Microsoft-InsightsMetrics"], "samplingFrequencyInSeconds": 10,
+ "counterSpecifiers": ["\\Processor Information(_Total)\\% Processor Time"],
+ "name": "perfCounter01"}]}, "destinations": {"azureMonitorMetrics": {"name":
+ "azureMonitorMetrics-default"}}, "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"],
+ "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '449'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - -g -n --location --rule-file
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e6d9-0000-0100-0000-626129900000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:19.2668365Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1029'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:21 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e6d9-0000-0100-0000-626129900000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:19.2668365Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1029'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:23 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e6d9-0000-0100-0000-626129900000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:19.2668365Z"}}],"nextLink":null}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1057'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:25 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule list
+ Connection:
+ - keep-alive
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e6d9-0000-0100-0000-626129900000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:19.2668365Z"}},{"properties":{"immutableId":"dcr-751c51b0d9214b48bcfe22b1cb1c4441","dataSources":{"extensions":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"extensionName":"ContainerInsights","name":"ContainerInsightsExtension"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-0b1f6471-1bf0-4dda-aec3-cb9272f09590-wus2","workspaceId":"66de590e-57a9-4012-9aeb-ca88d3dc1a52","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/MSCI-cliakstestq2qzdd-westus2","name":"MSCI-cliakstestq2qzdd-westus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1a006c31-0000-0800-0000-6258ea560000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2022-03-31T15:59:22.2387353Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-31T15:59:22.2387353Z"}},{"properties":{"immutableId":"dcr-691acf39af104793abcdf597ff6b0479","dataSources":{"extensions":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"extensionName":"ContainerInsights","name":"ContainerInsightsExtension"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-0b1f6471-1bf0-4dda-aec3-cb9272f09590-wus2","workspaceId":"66de590e-57a9-4012-9aeb-ca88d3dc1a52","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/MSCI-cliakstest2knbhf-westus2","name":"MSCI-cliakstest2knbhf-westus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1a006d31-0000-0800-0000-6258ea570000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2022-03-31T16:04:13.773966Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-03-31T16:04:13.773966Z"}},{"properties":{"immutableId":"dcr-613f2b21c3824d9ab2b930c7d9e24a5d","dataSources":{"extensions":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"extensionName":"ContainerInsights","name":"ContainerInsightsExtension"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-0b1f6471-1bf0-4dda-aec3-cb9272f09590-wus2","workspaceId":"66de590e-57a9-4012-9aeb-ca88d3dc1a52","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/MSCI-cliakstest7wdjsy-westus2","name":"MSCI-cliakstest7wdjsy-westus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1a006e31-0000-0800-0000-6258ea570000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2022-04-07T16:07:46.4893752Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-07T16:07:46.4893752Z"}},{"properties":{"immutableId":"dcr-07bea7cea95340769f14f8069be3c84f","dataSources":{"extensions":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"extensionName":"ContainerInsights","name":"ContainerInsightsExtension"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/defaultresourcegroup-wus2/providers/microsoft.operationalinsights/workspaces/defaultworkspace-0b1f6471-1bf0-4dda-aec3-cb9272f09590-wus2","workspaceId":"66de590e-57a9-4012-9aeb-ca88d3dc1a52","name":"la-workspace"}]},"dataFlows":[{"streams":["Microsoft-Perf","Microsoft-ContainerInventory","Microsoft-ContainerLog","Microsoft-ContainerLogV2","Microsoft-ContainerNodeInventory","Microsoft-KubeEvents","Microsoft-KubeMonAgentEvents","Microsoft-KubeNodeInventory","Microsoft-KubePodInventory","Microsoft-KubePVInventory","Microsoft-KubeServices","Microsoft-InsightsMetrics"],"destinations":["la-workspace"]}],"provisioningState":"Succeeded"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/defaultresourcegroup-wus2/providers/Microsoft.Insights/dataCollectionRules/MSCI-cliakstestc3frt3-westus2","name":"MSCI-cliakstestc3frt3-westus2","type":"Microsoft.Insights/dataCollectionRules","etag":"\"1a007131-0000-0800-0000-6258ea580000\"","systemData":{"createdBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","createdByType":"User","createdAt":"2022-04-14T15:52:52.5588833Z","lastModifiedBy":"azureclilivetest@azuresdkteam.onmicrosoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-14T15:52:52.5588833Z"}}]}'
+ headers:
+ cache-control:
+ - no-cache
+ content-length:
+ - '8615'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:27 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ vary:
+ - Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-original-request-ids:
+ - e2a2ec4c-c090-4445-93eb-07c7ab4d4229
+ - f6dc8c78-7186-44ed-82fe-f28e1c926b12
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --tags --name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e6d9-0000-0100-0000-626129900000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:19.2668365Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1029'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:30 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}]}, "destinations": {"azureMonitorMetrics":
+ {"name": "azureMonitorMetrics-default"}}, "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"],
+ "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '498'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --tags --name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a001cda-0000-0100-0000-6261299d0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:32.8480071Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1071'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:35 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a001cda-0000-0100-0000-6261299d0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:32.8480071Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1071'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:37 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}]}, "destinations": {"logAnalytics":
+ [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
+ "name": "clitest000003"}], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '715'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0036da-0000-0100-0000-626129a30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:38.486709Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1335'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:38 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0036da-0000-0100-0000-626129a30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:38.486709Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1335'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:41 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0036da-0000-0100-0000-626129a30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:38.486709Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1335'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:42 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0036da-0000-0100-0000-626129a30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:38.486709Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1335'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:45 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}]}, "destinations": {"logAnalytics":
+ [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004",
+ "name": "clitest000003"}], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '715'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004","workspaceId":"210b5382-4bb1-4076-b5b1-676e54a84e9d","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0058da-0000-0100-0000-626129aa0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:46.2582769Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1336'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:47 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000004","workspaceId":"210b5382-4bb1-4076-b5b1-676e54a84e9d","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0058da-0000-0100-0000-626129aa0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:46.2582769Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1336'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:48 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}]}, "destinations": {"logAnalytics":
+ [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}}, "dataFlows":
+ [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '518'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0069da-0000-0100-0000-626129ad0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:49.5445369Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1089'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:49 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --counter-specifiers --sampling-frequency
+ --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0069da-0000-0100-0000-626129ad0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:49.5445369Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1089'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:50 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}, {"streams": ["Microsoft-Perf"],
+ "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Memory\\Committed
+ Bytes", "\\Processor(_Total)\\% Processor Time"], "name": "extraCounters"}]},
+ "destinations": {"logAnalytics": [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '703'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --counter-specifiers --sampling-frequency
+ --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
+ Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0070da-0000-0100-0000-626129af0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:51.1226656Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1265'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:50 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '148'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
+ Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0070da-0000-0100-0000-626129af0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:51.1226656Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1265'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:51 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
+ Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0070da-0000-0100-0000-626129af0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:51.1226656Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1265'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:52 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --counter-specifiers
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Memory\\Committed
+ Bytes","\\Processor(_Total)\\% Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0070da-0000-0100-0000-626129af0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:51.1226656Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1265'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:54 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}, {"streams": ["Microsoft-Perf"],
+ "samplingFrequencyInSeconds": 15, "counterSpecifiers": ["\\Processor(_Total)\\%
+ Processor Time"], "name": "extraCounters"}]}, "destinations": {"logAnalytics":
+ [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}}, "dataFlows":
+ [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '674'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --counter-specifiers
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
+ Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a008ada-0000-0100-0000-626129b30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:55.5045857Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1237'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:55 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"},{"streams":["Microsoft-Perf"],"samplingFrequencyInSeconds":15,"counterSpecifiers":["\\Processor(_Total)\\%
+ Processor Time"],"name":"extraCounters"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a008ada-0000-0100-0000-626129b30000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:55.5045857Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1237'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:56 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}]}, "destinations": {"logAnalytics":
+ [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}}, "dataFlows":
+ [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule performance-counter delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '518'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0090da-0000-0100-0000-626129b50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:57.0315067Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1089'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:56 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --streams --x-path-queries
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0090da-0000-0100-0000-626129b50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:57.0315067Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1089'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:58 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [{"streams":
+ ["Microsoft-WindowsEvent"], "xPathQueries": ["System![System[(Level = 1 or Level
+ = 2 or Level = 3)]]", "Application!*[System[(Level = 1 or Level = 2 or Level
+ = 3)]]"], "name": "extraEvents"}]}, "destinations": {"logAnalytics": [], "azureMonitorMetrics":
+ {"name": "azureMonitorMetrics-default"}}, "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"],
+ "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '744'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --streams --x-path-queries
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
+ = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
+ = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00a4da-0000-0100-0000-626129b80000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:59.9590825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1307'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:53:59 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
+ = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
+ = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00a4da-0000-0100-0000-626129b80000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:59.9590825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1307'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:01 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
+ = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
+ = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00a4da-0000-0100-0000-626129b80000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:59.9590825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1307'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:05 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --x-path-queries
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["System![System[(Level
+ = 1 or Level = 2 or Level = 3)]]","Application!*[System[(Level = 1 or Level
+ = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00a4da-0000-0100-0000-626129b80000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:53:59.9590825Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1307'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:06 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [{"streams":
+ ["Microsoft-WindowsEvent"], "xPathQueries": ["Application!*[System[(Level =
+ 1 or Level = 2 or Level = 3)]]"], "name": "extraEvents"}]}, "destinations":
+ {"logAnalytics": [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '686'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --x-path-queries
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Application!*[System[(Level
+ = 1 or Level = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00d0da-0000-0100-0000-626129bf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:07.4785054Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1250'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:07 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '148'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[{"streams":["Microsoft-WindowsEvent"],"xPathQueries":["Application!*[System[(Level
+ = 1 or Level = 2 or Level = 3)]]"],"name":"extraEvents"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00d0da-0000-0100-0000-626129bf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:07.4785054Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1250'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:07 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": []}, "destinations":
+ {"logAnalytics": [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule windows-event-log delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '542'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00d5da-0000-0100-0000-626129c10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:09.0043117Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1111'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:08 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '148'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --facility-names --log-levels --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00d5da-0000-0100-0000-626129c10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:09.0043117Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1111'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:10 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [], "syslog":
+ [{"streams": ["Microsoft-Syslog"], "facilityNames": ["cron"], "logLevels": ["Debug",
+ "Critical", "Emergency"], "name": "cronSyslog"}]}, "destinations": {"logAnalytics":
+ [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}}, "dataFlows":
+ [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '687'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --facility-names --log-levels --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e2da-0000-0100-0000-626129c20000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:10.503311Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1244'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:10 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '148'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e2da-0000-0100-0000-626129c20000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:10.503311Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1244'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:12 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e2da-0000-0100-0000-626129c20000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:10.503311Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1244'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:14 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --log-levels
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Debug","Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00e2da-0000-0100-0000-626129c20000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:10.503311Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1244'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:16 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [], "syslog":
+ [{"streams": ["Microsoft-Syslog"], "facilityNames": ["cron"], "logLevels": ["Critical",
+ "Emergency"], "name": "cronSyslog"}]}, "destinations": {"logAnalytics": [],
+ "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}}, "dataFlows":
+ [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '678'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --log-levels
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00fbda-0000-0100-0000-626129c90000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:17.4468346Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1237'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:17 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog delete
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[{"streams":["Microsoft-Syslog"],"facilityNames":["cron"],"logLevels":["Critical","Emergency"],"name":"cronSyslog"}]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a00fbda-0000-0100-0000-626129c90000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:17.4468346Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1237'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:19 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [], "syslog":
+ []}, "destinations": {"logAnalytics": [], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule syslog delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '556'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a000edb-0000-0100-0000-626129cc0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:20.2348366Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1123'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:20 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a000edb-0000-0100-0000-626129cc0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:20.2348366Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1123'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:22 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [], "syslog":
+ []}, "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
+ "name": "clitest000003"}], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule log-analytics add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '753'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --name --resource-id
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0024db-0000-0100-0000-626129cf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:23.0729691Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1370'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:23 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule data-flow add
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group --destinations --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a0024db-0000-0100-0000-626129cf0000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:23.0729691Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1370'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:24 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"location": "eastus", "tags": {"tag1": "A", "tag2": "B", "tag3": "C"},
+ "properties": {"dataSources": {"performanceCounters": [{"streams": ["Microsoft-InsightsMetrics"],
+ "samplingFrequencyInSeconds": 10, "counterSpecifiers": ["\\Processor Information(_Total)\\%
+ Processor Time"], "name": "perfCounter01"}], "windowsEventLogs": [], "syslog":
+ []}, "destinations": {"logAnalytics": [{"workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003",
+ "name": "clitest000003"}], "azureMonitorMetrics": {"name": "azureMonitorMetrics-default"}},
+ "dataFlows": [{"streams": ["Microsoft-InsightsMetrics"], "destinations": ["azureMonitorMetrics-default"]},
+ {"streams": ["Microsoft-Perf"], "destinations": ["clitest000003"]}]}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule data-flow add
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '821'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --rule-name --resource-group --destinations --streams
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]},{"streams":["Microsoft-Perf"],"destinations":["clitest000003"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a002ddb-0000-0100-0000-626129d10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:25.1662254Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1434'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:26 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '149'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule data-flow list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"immutableId":"dcr-adbc950d1b5b4195b7f80f1fdd00daf7","dataSources":{"performanceCounters":[{"streams":["Microsoft-InsightsMetrics"],"samplingFrequencyInSeconds":10,"counterSpecifiers":["\\Processor
+ Information(_Total)\\% Processor Time"],"name":"perfCounter01"}],"windowsEventLogs":[],"syslog":[]},"destinations":{"logAnalytics":[{"workspaceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.operationalinsights/workspaces/clitest000003","workspaceId":"8c9185a6-f7c0-45d3-9a67-d217af2b4aad","name":"clitest000003"}],"azureMonitorMetrics":{"name":"azureMonitorMetrics-default"}},"dataFlows":[{"streams":["Microsoft-InsightsMetrics"],"destinations":["azureMonitorMetrics-default"]},{"streams":["Microsoft-Perf"],"destinations":["clitest000003"]}],"provisioningState":"Succeeded"},"location":"eastus","tags":{"tag1":"A","tag2":"B","tag3":"C"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule","name":"myCollectionRule","type":"Microsoft.Insights/dataCollectionRules","etag":"\"0a002ddb-0000-0100-0000-626129d10000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:53:19.2668365Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:25.1662254Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '1434'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:27 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"properties": {"dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association create
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '190'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --name --rule-id --resource
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"0700a8e1-0000-0700-0000-626129d50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:54:27.7749913Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:27.7749913Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '768'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:29 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '299'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association show
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --resource
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"0700a8e1-0000-0700-0000-626129d50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:54:27.7749913Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:27.7749913Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '768'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:31 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --rule-name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule/associations?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.insights/datacollectionrules/mycollectionrule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001/providers/microsoft.compute/virtualmachines/vm1/providers/microsoft.insights/datacollectionruleassociations/myassociation","name":"myassociation","type":"Microsoft.Insights/dataCollectionRuleAssociations"}],"nextLink":null}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '508'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:36 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association list
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --resource
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"value":[{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"0700a8e1-0000-0700-0000-626129d50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:54:27.7749913Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:27.7749913Z"}}],"nextLink":null}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '796'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:37 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association update
+ Connection:
+ - keep-alive
+ ParameterSetName:
+ - --name --resource --description
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: GET
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"0700a8e1-0000-0700-0000-626129d50000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:54:27.7749913Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:27.7749913Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '768'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:39 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"properties": {"description": "this is description", "dataCollectionRuleId":
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"}}'
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association update
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '228'
+ Content-Type:
+ - application/json
+ ParameterSetName:
+ - --name --resource --description
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: PUT
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview
+ response:
+ body:
+ string: '{"properties":{"description":"this is description","dataCollectionRuleId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation","name":"myAssociation","type":"Microsoft.Insights/dataCollectionRuleAssociations","etag":"\"070061e3-0000-0700-0000-626129e00000\"","systemData":{"createdBy":"ethanyang@microsoft.com","createdByType":"User","createdAt":"2022-04-21T09:54:40.1667561Z","lastModifiedBy":"ethanyang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-04-21T09:54:40.1667561Z"}}'
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '804'
+ content-type:
+ - application/json; charset=utf-8
+ date:
+ - Thu, 21 Apr 2022 09:54:40 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ transfer-encoding:
+ - chunked
+ vary:
+ - Accept-Encoding,Accept-Encoding
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-resource-requests:
+ - '299'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule association delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -y --name --resource
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview
+ response:
+ body:
+ string: ''
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ date:
+ - Thu, 21 Apr 2022 09:54:42 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 200
+ message: OK
+- request:
+ body: null
+ headers:
+ Accept:
+ - application/json
+ Accept-Encoding:
+ - gzip, deflate
+ CommandName:
+ - monitor data-collection rule delete
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '0'
+ ParameterSetName:
+ - -y --name --resource-group
+ User-Agent:
+ - AZURECLI/2.35.0 azsdk-python-mgmt-monitor/1.0.0b1 Python/3.8.10 (Windows-10-10.0.19044-SP0)
+ method: DELETE
+ uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule?api-version=2021-09-01-preview
+ response:
+ body:
+ string: ''
+ headers:
+ api-supported-versions:
+ - 2019-11-01-preview, 2021-04-01, 2021-09-01-preview
+ cache-control:
+ - no-cache
+ content-length:
+ - '0'
+ date:
+ - Thu, 21 Apr 2022 09:54:49 GMT
+ expires:
+ - '-1'
+ pragma:
+ - no-cache
+ request-context:
+ - appId=cid-v1:2bbfbac8-e1b0-44af-b9c6-3a40669d37e3
+ server:
+ - Microsoft-HTTPAPI/2.0
+ strict-transport-security:
+ - max-age=31536000; includeSubDomains
+ x-content-type-options:
+ - nosniff
+ x-ms-ratelimit-remaining-subscription-deletes:
+ - '14999'
+ status:
+ code: 200
+ message: OK
+version: 1
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/rule_files/rule_file.json b/src/monitor-control-service/azext_amcs/tests/latest/rule_files/rule_file.json
new file mode 100644
index 00000000000..b403b1876f9
--- /dev/null
+++ b/src/monitor-control-service/azext_amcs/tests/latest/rule_files/rule_file.json
@@ -0,0 +1,34 @@
+{
+ "properties": {
+ "dataSources": {
+ "performanceCounters": [
+ {
+ "streams": [
+ "Microsoft-InsightsMetrics"
+ ],
+ "scheduledTransferPeriod": "PT1M",
+ "samplingFrequencyInSeconds": 10,
+ "counterSpecifiers": [
+ "\\Processor Information(_Total)\\% Processor Time"
+ ],
+ "name": "perfCounter01"
+ }
+ ]
+ },
+ "destinations": {
+ "azureMonitorMetrics": {
+ "name": "azureMonitorMetrics-default"
+ }
+ },
+ "dataFlows": [
+ {
+ "streams": [
+ "Microsoft-InsightsMetrics"
+ ],
+ "destinations": [
+ "azureMonitorMetrics-default"
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/monitor-control-service/azext_amcs/tests/latest/test_monitor_control_service_scenario.py b/src/monitor-control-service/azext_amcs/tests/latest/test_monitor_control_service_scenario.py
index 07532a37ed4..d2a2244d31e 100644
--- a/src/monitor-control-service/azext_amcs/tests/latest/test_monitor_control_service_scenario.py
+++ b/src/monitor-control-service/azext_amcs/tests/latest/test_monitor_control_service_scenario.py
@@ -94,26 +94,7 @@ def step_data_collection_rule_create(test, rg, checks=None):
if checks is None:
checks = []
rule_json = test.cmd('az monitor data-collection rule create '
- '-g {rg} -n {myDataCollectionRule} --location "{location}" '
- '--data-flows destinations="{workspace_name}" streams="Microsoft-Perf" '
- 'streams="Microsoft-Syslog" streams="Microsoft-WindowsEvent" '
- '--log-analytics name="{workspace_name}" resource-id="{workspace_id}" '
- '--performance-counters name="cloudTeamCoreCounters" counter-specifiers="\\\\Processor(_Total'
- ')\\\\% Processor Time" counter-specifiers="\\\\Memory\\\\Committed Bytes" '
- 'counter-specifiers="\\\\LogicalDisk(_Total)\\\\Free Megabytes" '
- 'counter-specifiers="\\\\PhysicalDisk(_Total)\\\\Avg. Disk Queue Length" '
- 'sampling-frequency=15 streams="Microsoft-Perf" '
- '--performance-counters name="appTeamExtraCounters" '
- 'counter-specifiers="\\\\Process(_Total)\\\\Thread Count" sampling-frequency=30 '
- 'streams="Microsoft-Perf" '
- '--syslog name="syslogBase" facility-names="syslog" log-levels="Alert" log-levels="Critical" '
- 'log-levels="Emergency" streams="Microsoft-Syslog" '
- '--windows-event-logs name="cloudSecurityTeamEvents" '
- 'streams="Microsoft-WindowsEvent" x-path-queries="Security!" '
- '--windows-event-logs name="appTeam1AppEvents" '
- 'streams="Microsoft-WindowsEvent" '
- 'x-path-queries="System![System[(Level = 1 or Level = 2 or Level = 3)]]" '
- 'x-path-queries="Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" ',
+ '-g {rg} -n {myDataCollectionRule} --location "{location}" --rule-file "{ruleFile}"',
checks=checks).get_output_in_json()
test.kwargs['rule_id'] = rule_json['id']
@@ -451,7 +432,7 @@ def call_scenario(test, rg):
step_data_collection_rule_log_analytics_add(test, rg, checks=[])
step_data_collection_rule_log_analytics_list(test, rg, checks=[
- test.check('length(@)', 2),
+ test.check('length(@)', 1),
])
step_data_collection_rule_log_analytics_show(test, rg, checks=[])
step_data_collection_rule_log_analytics_update(test, rg, checks=[])
@@ -459,7 +440,7 @@ def call_scenario(test, rg):
step_data_collection_rule_performance_counter_add(test, rg, checks=[])
step_data_collection_rule_performance_counter_list(test, rg, checks=[
- test.check('length(@)', 3),
+ test.check('length(@)', 2),
])
step_data_collection_rule_performance_counter_show(test, rg, checks=[])
step_data_collection_rule_performance_counter_update(test, rg, checks=[])
@@ -467,7 +448,7 @@ def call_scenario(test, rg):
step_data_collection_rule_windows_event_log_add(test, rg, checks=[])
step_data_collection_rule_windows_event_log_list(test, rg, checks=[
- test.check('length(@)', 3),
+ test.check('length(@)', 1),
])
step_data_collection_rule_windows_event_log_show(test, rg, checks=[])
step_data_collection_rule_windows_event_log_update(test, rg, checks=[])
@@ -475,7 +456,7 @@ def call_scenario(test, rg):
step_data_collection_rule_syslog_add(test, rg, checks=[])
step_data_collection_rule_syslog_list(test, rg, checks=[
- test.check('length(@)', 2),
+ test.check('length(@)', 1),
])
step_data_collection_rule_syslog_show(test, rg, checks=[])
step_data_collection_rule_syslog_update(test, rg, checks=[])
@@ -513,14 +494,22 @@ class Monitor_control_serviceScenarioTest(ScenarioTest):
@ResourceGroupPreparer(name_prefix='clitestmonitor_control_service_myResourceGroup'[:7], key='rg',
parameter_name='rg')
- def test_monitor_control_service_Scenario(self, rg):
+ def test_monitor_control_service_commands(self, rg):
self.kwargs.update({
'subscription_id': self.get_subscription_id()
})
-
+ import os
+
+ TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
+ templateFile = os.path.join(
+ TEST_DIR,
+ "rule_files",
+ "rule_file.json",
+ )
self.kwargs.update({
'myDataCollectionRule': 'myCollectionRule',
- 'myAssociation': 'myAssociation'
+ 'myAssociation': 'myAssociation',
+ 'ruleFile': templateFile
})
call_scenario(self, rg)
@@ -558,3 +547,46 @@ def test_amcs_data_collection_endpoint(self, resource_group):
self.cmd('monitor data-collection endpoint list -g {rg}', checks=[
self.check('length(@)', 1)
])
+
+ @ResourceGroupPreparer(name_prefix='clitest_amcs_rule', location='westus2')
+ def test_amcs_data_collection_rule(self, resource_group):
+ import os
+
+ TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))
+ templateFile = os.path.join(
+ TEST_DIR,
+ "rule_files",
+ "rule_file.json",
+ )
+
+ self.kwargs.update({
+ 'rg': resource_group,
+ 'name': 'testrule',
+ 'location': 'westus2',
+ 'rule_file': templateFile
+ })
+
+ self.cmd('monitor data-collection rule create --resource-group {rg} --location {location} '
+ '--name {name} --rule-file "{rule_file}"',
+ checks=[self.check('provisioningState', 'Succeeded')])
+
+ self.cmd('monitor data-collection rule update --resource-group {rg} --name {name} '
+ '--performance-counters name="perfCounter02" '
+ 'counter-specifiers=["\\Processor Information(_Total)\\% Processor Time"] '
+ 'sampling-frequency=20 transfer-period="PT1M" streams="Microsoft-InsightsMetrics"',
+ checks=[self.check('provisioningState', 'Succeeded')])
+
+ self.cmd('monitor data-collection rule show -g {rg} -n {name}', checks=[
+ self.check('name', '{name}'),
+ self.check('provisioningState', 'Succeeded')
+ ])
+
+ self.cmd('monitor data-collection rule list -g {rg}', checks=[
+ self.check('length(@)', 1)
+ ])
+
+ self.cmd('monitor data-collection rule delete -g {rg} -n {name} -y')
+ self.cmd('monitor data-collection rule list -g {rg}', checks=[
+ self.check('length(@)', 0)
+ ])
+
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_configuration.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_configuration.py
index c0ee9f1b265..6e0a96766af 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_configuration.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_configuration.py
@@ -48,7 +48,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-04-01"
+ self.api_version = "2021-09-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-monitor/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_monitor_client.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_monitor_client.py
index 71e40774c68..4becb10ff1f 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_monitor_client.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_monitor_client.py
@@ -28,11 +28,11 @@ class MonitorClient(object):
"""Monitor Management Client.
:ivar data_collection_endpoints: DataCollectionEndpointsOperations operations
- :vartype data_collection_endpoints: azure.mgmt.amcs.operations.DataCollectionEndpointsOperations
+ :vartype data_collection_endpoints: $(python-base-namespace).v2021_09_01_preview.operations.DataCollectionEndpointsOperations
:ivar data_collection_rule_associations: DataCollectionRuleAssociationsOperations operations
- :vartype data_collection_rule_associations: azure.mgmt.amcs.operations.DataCollectionRuleAssociationsOperations
+ :vartype data_collection_rule_associations: $(python-base-namespace).v2021_09_01_preview.operations.DataCollectionRuleAssociationsOperations
:ivar data_collection_rules: DataCollectionRulesOperations operations
- :vartype data_collection_rules: azure.mgmt.amcs.operations.DataCollectionRulesOperations
+ :vartype data_collection_rules: $(python-base-namespace).v2021_09_01_preview.operations.DataCollectionRulesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_version.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_version.py
index eae7c95b6fb..e5754a47ce6 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_version.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "0.1.0"
+VERSION = "1.0.0b1"
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_configuration.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_configuration.py
index a8be4b95105..c56e575b90b 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_configuration.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_configuration.py
@@ -45,7 +45,7 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
- self.api_version = "2021-04-01"
+ self.api_version = "2021-09-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-monitor/{}'.format(VERSION))
self._configure(**kwargs)
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_monitor_client.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_monitor_client.py
index acdee347a4f..e72e4a5649a 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_monitor_client.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/_monitor_client.py
@@ -26,11 +26,11 @@ class MonitorClient(object):
"""Monitor Management Client.
:ivar data_collection_endpoints: DataCollectionEndpointsOperations operations
- :vartype data_collection_endpoints: azure.mgmt.amcs.aio.operations.DataCollectionEndpointsOperations
+ :vartype data_collection_endpoints: $(python-base-namespace).v2021_09_01_preview.aio.operations.DataCollectionEndpointsOperations
:ivar data_collection_rule_associations: DataCollectionRuleAssociationsOperations operations
- :vartype data_collection_rule_associations: azure.mgmt.amcs.aio.operations.DataCollectionRuleAssociationsOperations
+ :vartype data_collection_rule_associations: $(python-base-namespace).v2021_09_01_preview.aio.operations.DataCollectionRuleAssociationsOperations
:ivar data_collection_rules: DataCollectionRulesOperations operations
- :vartype data_collection_rules: azure.mgmt.amcs.aio.operations.DataCollectionRulesOperations
+ :vartype data_collection_rules: $(python-base-namespace).v2021_09_01_preview.aio.operations.DataCollectionRulesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_endpoints_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_endpoints_operations.py
index 0a708d5565c..c6e05cb0ecb 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_endpoints_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_endpoints_operations.py
@@ -26,7 +26,7 @@ class DataCollectionEndpointsOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -54,7 +54,7 @@ def list_by_resource_group(
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionEndpointResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionEndpointResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResourceListResult"]
@@ -62,7 +62,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -75,7 +75,7 @@ def prepare_request(next_link=None):
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@@ -103,7 +103,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -124,7 +124,7 @@ def list_by_subscription(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionEndpointResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionEndpointResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResourceListResult"]
@@ -132,7 +132,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -172,7 +172,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -200,7 +200,7 @@ async def get(
:type data_collection_endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -208,14 +208,14 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -234,7 +234,7 @@ async def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionEndpointResource', pipeline_response)
@@ -262,10 +262,10 @@ async def create(
case insensitive.
:type data_collection_endpoint_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -273,7 +273,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -281,7 +281,7 @@ async def create(
url = self.create.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -307,7 +307,7 @@ async def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -339,10 +339,10 @@ async def update(
case insensitive.
:type data_collection_endpoint_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.ResourceForUpdate
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.ResourceForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -350,7 +350,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -358,7 +358,7 @@ async def update(
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -384,7 +384,7 @@ async def update(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionEndpointResource', pipeline_response)
@@ -420,14 +420,14 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -446,7 +446,7 @@ async def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rule_associations_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rule_associations_operations.py
index 3dc0eaeeada..cf7e454c9bd 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rule_associations_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rule_associations_operations.py
@@ -26,7 +26,7 @@ class DataCollectionRuleAssociationsOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -54,7 +54,7 @@ def list_by_resource(
:type resource_uri: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
@@ -62,7 +62,7 @@ def list_by_resource(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -102,7 +102,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -130,7 +130,7 @@ def list_by_rule(
:type data_collection_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
@@ -138,7 +138,7 @@ def list_by_rule(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -151,7 +151,7 @@ def prepare_request(next_link=None):
url = self.list_by_rule.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -180,7 +180,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -191,6 +191,84 @@ async def get_next(next_link=None):
)
list_by_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations'} # type: ignore
+ def list_by_data_collection_endpoint(
+ self,
+ resource_group_name: str,
+ data_collection_endpoint_name: str,
+ **kwargs
+ ) -> AsyncIterable["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]:
+ """Lists associations for the specified data collection endpoint.
+
+ Lists associations for the specified data collection endpoint.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ :type resource_group_name: str
+ :param data_collection_endpoint_name: The name of the data collection endpoint. The name is
+ case insensitive.
+ :type data_collection_endpoint_name: str
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2021-09-01-preview"
+ accept = "application/json"
+
+ def prepare_request(next_link=None):
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_data_collection_endpoint.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
+ 'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ else:
+ url = next_link
+ query_parameters = {} # type: Dict[str, Any]
+ request = self._client.get(url, query_parameters, header_parameters)
+ return request
+
+ async def extract_data(pipeline_response):
+ deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResourceListResult', pipeline_response)
+ list_of_elem = deserialized.value
+ if cls:
+ list_of_elem = cls(list_of_elem)
+ return deserialized.next_link or None, AsyncList(list_of_elem)
+
+ async def get_next(next_link=None):
+ request = prepare_request(next_link)
+
+ pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ return pipeline_response
+
+ return AsyncItemPaged(
+ get_next, extract_data
+ )
+ list_by_data_collection_endpoint.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations'} # type: ignore
+
async def get(
self,
resource_uri: str,
@@ -207,7 +285,7 @@ async def get(
:type association_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
@@ -215,7 +293,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
@@ -240,7 +318,7 @@ async def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResource', pipeline_response)
@@ -267,10 +345,10 @@ async def create(
:param association_name: The name of the association. The name is case insensitive.
:type association_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
@@ -278,7 +356,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -311,7 +389,7 @@ async def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -350,7 +428,7 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
@@ -375,7 +453,7 @@ async def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rules_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rules_operations.py
index e7f9820120f..3f2b32e6006 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rules_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/aio/operations/_data_collection_rules_operations.py
@@ -26,7 +26,7 @@ class DataCollectionRulesOperations:
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -54,7 +54,7 @@ def list_by_resource_group(
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
@@ -62,7 +62,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -75,7 +75,7 @@ def prepare_request(next_link=None):
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@@ -103,7 +103,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -124,7 +124,7 @@ def list_by_subscription(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleResourceListResult]
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
@@ -132,7 +132,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -172,7 +172,7 @@ async def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -200,7 +200,7 @@ async def get(
:type data_collection_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -208,14 +208,14 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -234,7 +234,7 @@ async def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
@@ -262,10 +262,10 @@ async def create(
insensitive.
:type data_collection_rule_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -273,7 +273,7 @@ async def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -281,7 +281,7 @@ async def create(
url = self.create.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -307,7 +307,7 @@ async def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -339,10 +339,10 @@ async def update(
insensitive.
:type data_collection_rule_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.ResourceForUpdate
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.ResourceForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -350,7 +350,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -358,7 +358,7 @@ async def update(
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -384,7 +384,7 @@ async def update(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
@@ -420,14 +420,14 @@ async def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -446,7 +446,7 @@ async def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/__init__.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/__init__.py
index 9e21704b867..a1fffdad613 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/__init__.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/__init__.py
@@ -8,6 +8,7 @@
try:
from ._models_py3 import AzureMonitorMetricsDestination
+ from ._models_py3 import ColumnDefinition
from ._models_py3 import ConfigurationAccessEndpointSpec
from ._models_py3 import DataCollectionEndpoint
from ._models_py3 import DataCollectionEndpointConfigurationAccess
@@ -19,12 +20,14 @@
from ._models_py3 import DataCollectionEndpointResourceSystemData
from ._models_py3 import DataCollectionRule
from ._models_py3 import DataCollectionRuleAssociation
+ from ._models_py3 import DataCollectionRuleAssociationMetadata
from ._models_py3 import DataCollectionRuleAssociationProxyOnlyResource
from ._models_py3 import DataCollectionRuleAssociationProxyOnlyResourceListResult
from ._models_py3 import DataCollectionRuleAssociationProxyOnlyResourceProperties
from ._models_py3 import DataCollectionRuleAssociationProxyOnlyResourceSystemData
from ._models_py3 import DataCollectionRuleDataSources
from ._models_py3 import DataCollectionRuleDestinations
+ from ._models_py3 import DataCollectionRuleMetadata
from ._models_py3 import DataCollectionRuleResource
from ._models_py3 import DataCollectionRuleResourceListResult
from ._models_py3 import DataCollectionRuleResourceProperties
@@ -35,18 +38,27 @@
from ._models_py3 import DestinationsSpecAzureMonitorMetrics
from ._models_py3 import ErrorAdditionalInfo
from ._models_py3 import ErrorDetail
- from ._models_py3 import ErrorResponse
+ from ._models_py3 import ErrorResponseCommonV2
from ._models_py3 import ExtensionDataSource
+ from ._models_py3 import IisLogsDataSource
from ._models_py3 import LogAnalyticsDestination
+ from ._models_py3 import LogFileSettings
+ from ._models_py3 import LogFileSettingsText
+ from ._models_py3 import LogFileTextSettings
+ from ._models_py3 import LogFilesDataSource
+ from ._models_py3 import LogFilesDataSourceSettings
from ._models_py3 import LogsIngestionEndpointSpec
+ from ._models_py3 import Metadata
from ._models_py3 import NetworkRuleSet
from ._models_py3 import PerfCounterDataSource
from ._models_py3 import ResourceForUpdate
+ from ._models_py3 import StreamDeclaration
from ._models_py3 import SyslogDataSource
from ._models_py3 import SystemData
from ._models_py3 import WindowsEventLogDataSource
except (SyntaxError, ImportError):
from ._models import AzureMonitorMetricsDestination # type: ignore
+ from ._models import ColumnDefinition # type: ignore
from ._models import ConfigurationAccessEndpointSpec # type: ignore
from ._models import DataCollectionEndpoint # type: ignore
from ._models import DataCollectionEndpointConfigurationAccess # type: ignore
@@ -58,12 +70,14 @@
from ._models import DataCollectionEndpointResourceSystemData # type: ignore
from ._models import DataCollectionRule # type: ignore
from ._models import DataCollectionRuleAssociation # type: ignore
+ from ._models import DataCollectionRuleAssociationMetadata # type: ignore
from ._models import DataCollectionRuleAssociationProxyOnlyResource # type: ignore
from ._models import DataCollectionRuleAssociationProxyOnlyResourceListResult # type: ignore
from ._models import DataCollectionRuleAssociationProxyOnlyResourceProperties # type: ignore
from ._models import DataCollectionRuleAssociationProxyOnlyResourceSystemData # type: ignore
from ._models import DataCollectionRuleDataSources # type: ignore
from ._models import DataCollectionRuleDestinations # type: ignore
+ from ._models import DataCollectionRuleMetadata # type: ignore
from ._models import DataCollectionRuleResource # type: ignore
from ._models import DataCollectionRuleResourceListResult # type: ignore
from ._models import DataCollectionRuleResourceProperties # type: ignore
@@ -74,19 +88,28 @@
from ._models import DestinationsSpecAzureMonitorMetrics # type: ignore
from ._models import ErrorAdditionalInfo # type: ignore
from ._models import ErrorDetail # type: ignore
- from ._models import ErrorResponse # type: ignore
+ from ._models import ErrorResponseCommonV2 # type: ignore
from ._models import ExtensionDataSource # type: ignore
+ from ._models import IisLogsDataSource # type: ignore
from ._models import LogAnalyticsDestination # type: ignore
+ from ._models import LogFileSettings # type: ignore
+ from ._models import LogFileSettingsText # type: ignore
+ from ._models import LogFileTextSettings # type: ignore
+ from ._models import LogFilesDataSource # type: ignore
+ from ._models import LogFilesDataSourceSettings # type: ignore
from ._models import LogsIngestionEndpointSpec # type: ignore
+ from ._models import Metadata # type: ignore
from ._models import NetworkRuleSet # type: ignore
from ._models import PerfCounterDataSource # type: ignore
from ._models import ResourceForUpdate # type: ignore
+ from ._models import StreamDeclaration # type: ignore
from ._models import SyslogDataSource # type: ignore
from ._models import SystemData # type: ignore
from ._models import WindowsEventLogDataSource # type: ignore
from ._monitor_client_enums import (
CreatedByType,
+ KnownColumnDefinitionType,
KnownDataCollectionEndpointProvisioningState,
KnownDataCollectionEndpointResourceKind,
KnownDataCollectionRuleAssociationProvisioningState,
@@ -94,6 +117,8 @@
KnownDataCollectionRuleResourceKind,
KnownDataFlowStreams,
KnownExtensionDataSourceStreams,
+ KnownLogFileTextSettingsRecordStartTimestampFormat,
+ KnownLogFilesDataSourceFormat,
KnownPerfCounterDataSourceStreams,
KnownPublicNetworkAccessOptions,
KnownSyslogDataSourceFacilityNames,
@@ -104,6 +129,7 @@
__all__ = [
'AzureMonitorMetricsDestination',
+ 'ColumnDefinition',
'ConfigurationAccessEndpointSpec',
'DataCollectionEndpoint',
'DataCollectionEndpointConfigurationAccess',
@@ -115,12 +141,14 @@
'DataCollectionEndpointResourceSystemData',
'DataCollectionRule',
'DataCollectionRuleAssociation',
+ 'DataCollectionRuleAssociationMetadata',
'DataCollectionRuleAssociationProxyOnlyResource',
'DataCollectionRuleAssociationProxyOnlyResourceListResult',
'DataCollectionRuleAssociationProxyOnlyResourceProperties',
'DataCollectionRuleAssociationProxyOnlyResourceSystemData',
'DataCollectionRuleDataSources',
'DataCollectionRuleDestinations',
+ 'DataCollectionRuleMetadata',
'DataCollectionRuleResource',
'DataCollectionRuleResourceListResult',
'DataCollectionRuleResourceProperties',
@@ -131,17 +159,26 @@
'DestinationsSpecAzureMonitorMetrics',
'ErrorAdditionalInfo',
'ErrorDetail',
- 'ErrorResponse',
+ 'ErrorResponseCommonV2',
'ExtensionDataSource',
+ 'IisLogsDataSource',
'LogAnalyticsDestination',
+ 'LogFileSettings',
+ 'LogFileSettingsText',
+ 'LogFileTextSettings',
+ 'LogFilesDataSource',
+ 'LogFilesDataSourceSettings',
'LogsIngestionEndpointSpec',
+ 'Metadata',
'NetworkRuleSet',
'PerfCounterDataSource',
'ResourceForUpdate',
+ 'StreamDeclaration',
'SyslogDataSource',
'SystemData',
'WindowsEventLogDataSource',
'CreatedByType',
+ 'KnownColumnDefinitionType',
'KnownDataCollectionEndpointProvisioningState',
'KnownDataCollectionEndpointResourceKind',
'KnownDataCollectionRuleAssociationProvisioningState',
@@ -149,6 +186,8 @@
'KnownDataCollectionRuleResourceKind',
'KnownDataFlowStreams',
'KnownExtensionDataSourceStreams',
+ 'KnownLogFileTextSettingsRecordStartTimestampFormat',
+ 'KnownLogFilesDataSourceFormat',
'KnownPerfCounterDataSourceStreams',
'KnownPublicNetworkAccessOptions',
'KnownSyslogDataSourceFacilityNames',
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models.py
index 67d16f1882d..48c949ae8a0 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models.py
@@ -31,6 +31,31 @@ def __init__(
self.name = kwargs.get('name', None)
+class ColumnDefinition(msrest.serialization.Model):
+ """Definition of custom data column.
+
+ :param name: The name of the column.
+ :type name: str
+ :param type: The type of the column data. Possible values include: "string", "int", "long",
+ "real", "boolean", "datetime", "dynamic".
+ :type type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownColumnDefinitionType
+ """
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(ColumnDefinition, self).__init__(**kwargs)
+ self.name = kwargs.get('name', None)
+ self.type = kwargs.get('type', None)
+
+
class ConfigurationAccessEndpointSpec(msrest.serialization.Model):
"""Definition of the endpoint used for accessing configuration.
@@ -66,16 +91,18 @@ class DataCollectionEndpoint(msrest.serialization.Model):
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -105,7 +132,7 @@ def __init__(
class DataCollectionEndpointConfigurationAccess(ConfigurationAccessEndpointSpec):
- """The endpoint used by agents to access their configuration.
+ """The endpoint used by clients to access their configuration.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -182,7 +209,8 @@ class NetworkRuleSet(msrest.serialization.Model):
:param public_network_access: The configuration to set whether network access from public
internet to the endpoints are allowed. Possible values include: "Enabled", "Disabled".
- :type public_network_access: str or ~azure.mgmt.amcs.models.KnownPublicNetworkAccessOptions
+ :type public_network_access: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPublicNetworkAccessOptions
"""
_attribute_map = {
@@ -202,7 +230,8 @@ class DataCollectionEndpointNetworkAcls(NetworkRuleSet):
:param public_network_access: The configuration to set whether network access from public
internet to the endpoints are allowed. Possible values include: "Enabled", "Disabled".
- :type public_network_access: str or ~azure.mgmt.amcs.models.KnownPublicNetworkAccessOptions
+ :type public_network_access: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPublicNetworkAccessOptions
"""
_attribute_map = {
@@ -228,7 +257,8 @@ class DataCollectionEndpointResource(msrest.serialization.Model):
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param kind: The kind of the resource. Possible values include: "Linux", "Windows".
- :type kind: str or ~azure.mgmt.amcs.models.KnownDataCollectionEndpointResourceKind
+ :type kind: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointResourceKind
:ivar id: Fully qualified ID of the resource.
:vartype id: str
:ivar name: The name of the resource.
@@ -238,22 +268,24 @@ class DataCollectionEndpointResource(msrest.serialization.Model):
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the data collection endpoint.
:type description: str
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -310,7 +342,8 @@ class DataCollectionEndpointResourceListResult(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionEndpointResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionEndpointResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -343,16 +376,18 @@ class DataCollectionEndpointResourceProperties(DataCollectionEndpoint):
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -382,14 +417,16 @@ class SystemData(msrest.serialization.Model):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -423,14 +460,16 @@ class DataCollectionEndpointResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -460,28 +499,40 @@ class DataCollectionRule(msrest.serialization.Model):
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'immutable_id': {'key': 'immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'dataFlows', 'type': '[DataFlow]'},
@@ -495,6 +546,9 @@ def __init__(
super(DataCollectionRule, self).__init__(**kwargs)
self.description = kwargs.get('description', None)
self.immutable_id = None
+ self.data_collection_endpoint_id = kwargs.get('data_collection_endpoint_id', None)
+ self.metadata = None
+ self.stream_declarations = kwargs.get('stream_declarations', None)
self.data_sources = kwargs.get('data_sources', None)
self.destinations = kwargs.get('destinations', None)
self.data_flows = kwargs.get('data_flows', None)
@@ -516,12 +570,15 @@ class DataCollectionRuleAssociation(msrest.serialization.Model):
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -529,6 +586,7 @@ class DataCollectionRuleAssociation(msrest.serialization.Model):
'data_collection_rule_id': {'key': 'dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
}
def __init__(
@@ -540,6 +598,56 @@ def __init__(
self.data_collection_rule_id = kwargs.get('data_collection_rule_id', None)
self.data_collection_endpoint_id = kwargs.get('data_collection_endpoint_id', None)
self.provisioning_state = None
+ self.metadata = None
+
+
+class Metadata(msrest.serialization.Model):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(Metadata, self).__init__(**kwargs)
+ self.provisioned_by = None
+
+
+class DataCollectionRuleAssociationMetadata(Metadata):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DataCollectionRuleAssociationMetadata, self).__init__(**kwargs)
class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model):
@@ -556,7 +664,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the association.
:type description: str
:param data_collection_rule_id: The resource ID of the data collection rule that is to be
@@ -567,8 +675,10 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
@@ -578,6 +688,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
'etag': {'readonly': True},
'system_data': {'readonly': True},
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -590,6 +701,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
'data_collection_rule_id': {'key': 'properties.dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'properties.dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'properties.metadata', 'type': 'Metadata'},
}
def __init__(
@@ -606,6 +718,7 @@ def __init__(
self.data_collection_rule_id = kwargs.get('data_collection_rule_id', None)
self.data_collection_endpoint_id = kwargs.get('data_collection_endpoint_id', None)
self.provisioning_state = None
+ self.metadata = None
class DataCollectionRuleAssociationProxyOnlyResourceListResult(msrest.serialization.Model):
@@ -614,7 +727,8 @@ class DataCollectionRuleAssociationProxyOnlyResourceListResult(msrest.serializat
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -652,12 +766,15 @@ class DataCollectionRuleAssociationProxyOnlyResourceProperties(DataCollectionRul
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -665,6 +782,7 @@ class DataCollectionRuleAssociationProxyOnlyResourceProperties(DataCollectionRul
'data_collection_rule_id': {'key': 'dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
}
def __init__(
@@ -681,14 +799,16 @@ class DataCollectionRuleAssociationProxyOnlyResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -713,13 +833,20 @@ class DataSourcesSpec(msrest.serialization.Model):
"""Specification of data sources that will be collected.
:param performance_counters: The list of performance counter data source configurations.
- :type performance_counters: list[~azure.mgmt.amcs.models.PerfCounterDataSource]
+ :type performance_counters: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.PerfCounterDataSource]
:param windows_event_logs: The list of Windows Event Log data source configurations.
- :type windows_event_logs: list[~azure.mgmt.amcs.models.WindowsEventLogDataSource]
+ :type windows_event_logs: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.WindowsEventLogDataSource]
:param syslog: The list of Syslog data source configurations.
- :type syslog: list[~azure.mgmt.amcs.models.SyslogDataSource]
+ :type syslog: list[~$(python-base-namespace).v2021_09_01_preview.models.SyslogDataSource]
:param extensions: The list of Azure VM extension data source configurations.
- :type extensions: list[~azure.mgmt.amcs.models.ExtensionDataSource]
+ :type extensions: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ExtensionDataSource]
+ :param log_files: The list of Log files source configurations.
+ :type log_files: list[~$(python-base-namespace).v2021_09_01_preview.models.LogFilesDataSource]
+ :param iis_logs: The list of IIS logs source configurations.
+ :type iis_logs: list[~$(python-base-namespace).v2021_09_01_preview.models.IisLogsDataSource]
"""
_attribute_map = {
@@ -727,6 +854,8 @@ class DataSourcesSpec(msrest.serialization.Model):
'windows_event_logs': {'key': 'windowsEventLogs', 'type': '[WindowsEventLogDataSource]'},
'syslog': {'key': 'syslog', 'type': '[SyslogDataSource]'},
'extensions': {'key': 'extensions', 'type': '[ExtensionDataSource]'},
+ 'log_files': {'key': 'logFiles', 'type': '[LogFilesDataSource]'},
+ 'iis_logs': {'key': 'iisLogs', 'type': '[IisLogsDataSource]'},
}
def __init__(
@@ -738,6 +867,8 @@ def __init__(
self.windows_event_logs = kwargs.get('windows_event_logs', None)
self.syslog = kwargs.get('syslog', None)
self.extensions = kwargs.get('extensions', None)
+ self.log_files = kwargs.get('log_files', None)
+ self.iis_logs = kwargs.get('iis_logs', None)
class DataCollectionRuleDataSources(DataSourcesSpec):
@@ -745,13 +876,20 @@ class DataCollectionRuleDataSources(DataSourcesSpec):
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
:param performance_counters: The list of performance counter data source configurations.
- :type performance_counters: list[~azure.mgmt.amcs.models.PerfCounterDataSource]
+ :type performance_counters: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.PerfCounterDataSource]
:param windows_event_logs: The list of Windows Event Log data source configurations.
- :type windows_event_logs: list[~azure.mgmt.amcs.models.WindowsEventLogDataSource]
+ :type windows_event_logs: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.WindowsEventLogDataSource]
:param syslog: The list of Syslog data source configurations.
- :type syslog: list[~azure.mgmt.amcs.models.SyslogDataSource]
+ :type syslog: list[~$(python-base-namespace).v2021_09_01_preview.models.SyslogDataSource]
:param extensions: The list of Azure VM extension data source configurations.
- :type extensions: list[~azure.mgmt.amcs.models.ExtensionDataSource]
+ :type extensions: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ExtensionDataSource]
+ :param log_files: The list of Log files source configurations.
+ :type log_files: list[~$(python-base-namespace).v2021_09_01_preview.models.LogFilesDataSource]
+ :param iis_logs: The list of IIS logs source configurations.
+ :type iis_logs: list[~$(python-base-namespace).v2021_09_01_preview.models.IisLogsDataSource]
"""
_attribute_map = {
@@ -759,6 +897,8 @@ class DataCollectionRuleDataSources(DataSourcesSpec):
'windows_event_logs': {'key': 'windowsEventLogs', 'type': '[WindowsEventLogDataSource]'},
'syslog': {'key': 'syslog', 'type': '[SyslogDataSource]'},
'extensions': {'key': 'extensions', 'type': '[ExtensionDataSource]'},
+ 'log_files': {'key': 'logFiles', 'type': '[LogFilesDataSource]'},
+ 'iis_logs': {'key': 'iisLogs', 'type': '[IisLogsDataSource]'},
}
def __init__(
@@ -772,9 +912,11 @@ class DestinationsSpec(msrest.serialization.Model):
"""Specification of destinations that can be used in data flows.
:param log_analytics: List of Log Analytics destinations.
- :type log_analytics: list[~azure.mgmt.amcs.models.LogAnalyticsDestination]
+ :type log_analytics: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.LogAnalyticsDestination]
:param azure_monitor_metrics: Azure Monitor Metrics destination.
- :type azure_monitor_metrics: ~azure.mgmt.amcs.models.AzureMonitorMetricsDestination
+ :type azure_monitor_metrics: ~$(python-base-
+ namespace).v2021_09_01_preview.models.AzureMonitorMetricsDestination
"""
_attribute_map = {
@@ -795,9 +937,11 @@ class DataCollectionRuleDestinations(DestinationsSpec):
"""The specification of destinations.
:param log_analytics: List of Log Analytics destinations.
- :type log_analytics: list[~azure.mgmt.amcs.models.LogAnalyticsDestination]
+ :type log_analytics: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.LogAnalyticsDestination]
:param azure_monitor_metrics: Azure Monitor Metrics destination.
- :type azure_monitor_metrics: ~azure.mgmt.amcs.models.AzureMonitorMetricsDestination
+ :type azure_monitor_metrics: ~$(python-base-
+ namespace).v2021_09_01_preview.models.AzureMonitorMetricsDestination
"""
_attribute_map = {
@@ -812,6 +956,30 @@ def __init__(
super(DataCollectionRuleDestinations, self).__init__(**kwargs)
+class DataCollectionRuleMetadata(Metadata):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DataCollectionRuleMetadata, self).__init__(**kwargs)
+
+
class DataCollectionRuleResource(msrest.serialization.Model):
"""Definition of ARM tracked top level resource.
@@ -824,7 +992,8 @@ class DataCollectionRuleResource(msrest.serialization.Model):
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param kind: The kind of the resource. Possible values include: "Linux", "Windows".
- :type kind: str or ~azure.mgmt.amcs.models.KnownDataCollectionRuleResourceKind
+ :type kind: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleResourceKind
:ivar id: Fully qualified ID of the resource.
:vartype id: str
:ivar name: The name of the resource.
@@ -834,23 +1003,31 @@ class DataCollectionRuleResource(msrest.serialization.Model):
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the data collection rule.
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
@@ -861,6 +1038,7 @@ class DataCollectionRuleResource(msrest.serialization.Model):
'etag': {'readonly': True},
'system_data': {'readonly': True},
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
@@ -875,6 +1053,9 @@ class DataCollectionRuleResource(msrest.serialization.Model):
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'description': {'key': 'properties.description', 'type': 'str'},
'immutable_id': {'key': 'properties.immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'properties.dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'properties.metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'properties.streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'properties.dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'properties.destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'properties.dataFlows', 'type': '[DataFlow]'},
@@ -896,6 +1077,9 @@ def __init__(
self.system_data = None
self.description = kwargs.get('description', None)
self.immutable_id = None
+ self.data_collection_endpoint_id = kwargs.get('data_collection_endpoint_id', None)
+ self.metadata = None
+ self.stream_declarations = kwargs.get('stream_declarations', None)
self.data_sources = kwargs.get('data_sources', None)
self.destinations = kwargs.get('destinations', None)
self.data_flows = kwargs.get('data_flows', None)
@@ -908,7 +1092,8 @@ class DataCollectionRuleResourceListResult(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionRuleResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionRuleResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -940,28 +1125,40 @@ class DataCollectionRuleResourceProperties(DataCollectionRule):
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'immutable_id': {'key': 'immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'dataFlows', 'type': '[DataFlow]'},
@@ -982,14 +1179,16 @@ class DataCollectionRuleResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -1014,14 +1213,22 @@ class DataFlow(msrest.serialization.Model):
"""Definition of which streams are sent to which destinations.
:param streams: List of streams for this data flow.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownDataFlowStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataFlowStreams]
:param destinations: List of destinations for this data flow.
:type destinations: list[str]
+ :param transform_kql: The KQL query to transform stream data.
+ :type transform_kql: str
+ :param output_stream: The output stream of the transform. Only required if the transform
+ changes data to a different stream.
+ :type output_stream: str
"""
_attribute_map = {
'streams': {'key': 'streams', 'type': '[str]'},
'destinations': {'key': 'destinations', 'type': '[str]'},
+ 'transform_kql': {'key': 'transformKql', 'type': 'str'},
+ 'output_stream': {'key': 'outputStream', 'type': 'str'},
}
def __init__(
@@ -1031,6 +1238,8 @@ def __init__(
super(DataFlow, self).__init__(**kwargs)
self.streams = kwargs.get('streams', None)
self.destinations = kwargs.get('destinations', None)
+ self.transform_kql = kwargs.get('transform_kql', None)
+ self.output_stream = kwargs.get('output_stream', None)
class DestinationsSpecAzureMonitorMetrics(AzureMonitorMetricsDestination):
@@ -1095,9 +1304,10 @@ class ErrorDetail(msrest.serialization.Model):
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
- :vartype details: list[~azure.mgmt.amcs.models.ErrorDetail]
+ :vartype details: list[~$(python-base-namespace).v2021_09_01_preview.models.ErrorDetail]
:ivar additional_info: The error additional info.
- :vartype additional_info: list[~azure.mgmt.amcs.models.ErrorAdditionalInfo]
+ :vartype additional_info: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ErrorAdditionalInfo]
"""
_validation = {
@@ -1128,11 +1338,11 @@ def __init__(
self.additional_info = None
-class ErrorResponse(msrest.serialization.Model):
+class ErrorResponseCommonV2(msrest.serialization.Model):
"""Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
:param error: The error object.
- :type error: ~azure.mgmt.amcs.models.ErrorDetail
+ :type error: ~$(python-base-namespace).v2021_09_01_preview.models.ErrorDetail
"""
_attribute_map = {
@@ -1143,7 +1353,7 @@ def __init__(
self,
**kwargs
):
- super(ErrorResponse, self).__init__(**kwargs)
+ super(ErrorResponseCommonV2, self).__init__(**kwargs)
self.error = kwargs.get('error', None)
@@ -1156,7 +1366,8 @@ class ExtensionDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownExtensionDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownExtensionDataSourceStreams]
:param extension_name: Required. The name of the VM extension.
:type extension_name: str
:param extension_settings: The extension settings. The format is specific for particular
@@ -1194,6 +1405,41 @@ def __init__(
self.name = kwargs.get('name', None)
+class IisLogsDataSource(msrest.serialization.Model):
+ """Enables IIS logs to be collected by this data collection rule.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param streams: Required. IIS streams.
+ :type streams: list[str]
+ :param log_directories: Absolute paths file location.
+ :type log_directories: list[str]
+ :param name: A friendly name for the data source.
+ This name should be unique across all data sources (regardless of type) within the data
+ collection rule.
+ :type name: str
+ """
+
+ _validation = {
+ 'streams': {'required': True},
+ }
+
+ _attribute_map = {
+ 'streams': {'key': 'streams', 'type': '[str]'},
+ 'log_directories': {'key': 'logDirectories', 'type': '[str]'},
+ 'name': {'key': 'name', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(IisLogsDataSource, self).__init__(**kwargs)
+ self.streams = kwargs['streams']
+ self.log_directories = kwargs.get('log_directories', None)
+ self.name = kwargs.get('name', None)
+
+
class LogAnalyticsDestination(msrest.serialization.Model):
"""Log Analytics destination.
@@ -1229,6 +1475,147 @@ def __init__(
self.name = kwargs.get('name', None)
+class LogFilesDataSource(msrest.serialization.Model):
+ """Definition of which custom log files will be collected by this data collection rule.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param streams: Required. List of streams that this data source will be sent to.
+ A stream indicates what schema will be used for this data source.
+ :type streams: list[str]
+ :param file_patterns: Required. File Patterns where the log files are located.
+ :type file_patterns: list[str]
+ :param format: Required. The data format of the log files. Possible values include: "text".
+ :type format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFilesDataSourceFormat
+ :param settings: The log files specific settings.
+ :type settings: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileSettings
+ :param name: A friendly name for the data source.
+ This name should be unique across all data sources (regardless of type) within the data
+ collection rule.
+ :type name: str
+ """
+
+ _validation = {
+ 'streams': {'required': True},
+ 'file_patterns': {'required': True},
+ 'format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'streams': {'key': 'streams', 'type': '[str]'},
+ 'file_patterns': {'key': 'filePatterns', 'type': '[str]'},
+ 'format': {'key': 'format', 'type': 'str'},
+ 'settings': {'key': 'settings', 'type': 'LogFileSettings'},
+ 'name': {'key': 'name', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(LogFilesDataSource, self).__init__(**kwargs)
+ self.streams = kwargs['streams']
+ self.file_patterns = kwargs['file_patterns']
+ self.format = kwargs['format']
+ self.settings = kwargs.get('settings', None)
+ self.name = kwargs.get('name', None)
+
+
+class LogFileSettings(msrest.serialization.Model):
+ """Settings for different log file formats.
+
+ :param text: Text settings.
+ :type text: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileTextSettings
+ """
+
+ _attribute_map = {
+ 'text': {'key': 'text', 'type': 'LogFileTextSettings'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(LogFileSettings, self).__init__(**kwargs)
+ self.text = kwargs.get('text', None)
+
+
+class LogFilesDataSourceSettings(LogFileSettings):
+ """The log files specific settings.
+
+ :param text: Text settings.
+ :type text: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileTextSettings
+ """
+
+ _attribute_map = {
+ 'text': {'key': 'text', 'type': 'LogFileTextSettings'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(LogFilesDataSourceSettings, self).__init__(**kwargs)
+
+
+class LogFileTextSettings(msrest.serialization.Model):
+ """Settings for text log files.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param record_start_timestamp_format: Required. One of the supported timestamp formats.
+ Possible values include: "ISO 8601", "YYYY-MM-DD HH:MM:SS", "M/D/YYYY HH:MM:SS AM/PM", "Mon DD,
+ YYYY HH:MM:SS", "yyMMdd HH:mm:ss", "ddMMyy HH:mm:ss", "MMM d hh:mm:ss", "dd/MMM/yyyy:HH:mm:ss
+ zzz", "yyyy-MM-ddTHH:mm:ssK".
+ :type record_start_timestamp_format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFileTextSettingsRecordStartTimestampFormat
+ """
+
+ _validation = {
+ 'record_start_timestamp_format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'record_start_timestamp_format': {'key': 'recordStartTimestampFormat', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(LogFileTextSettings, self).__init__(**kwargs)
+ self.record_start_timestamp_format = kwargs['record_start_timestamp_format']
+
+
+class LogFileSettingsText(LogFileTextSettings):
+ """Text settings.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param record_start_timestamp_format: Required. One of the supported timestamp formats.
+ Possible values include: "ISO 8601", "YYYY-MM-DD HH:MM:SS", "M/D/YYYY HH:MM:SS AM/PM", "Mon DD,
+ YYYY HH:MM:SS", "yyMMdd HH:mm:ss", "ddMMyy HH:mm:ss", "MMM d hh:mm:ss", "dd/MMM/yyyy:HH:mm:ss
+ zzz", "yyyy-MM-ddTHH:mm:ssK".
+ :type record_start_timestamp_format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFileTextSettingsRecordStartTimestampFormat
+ """
+
+ _validation = {
+ 'record_start_timestamp_format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'record_start_timestamp_format': {'key': 'recordStartTimestampFormat', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(LogFileSettingsText, self).__init__(**kwargs)
+
+
class PerfCounterDataSource(msrest.serialization.Model):
"""Definition of which performance counters will be collected and how they will be collected by this data collection rule.
Collected from both Windows and Linux machines where the counter is present.
@@ -1236,7 +1623,8 @@ class PerfCounterDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownPerfCounterDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPerfCounterDataSourceStreams]
:param sampling_frequency_in_seconds: The number of seconds between consecutive counter
measurements (samples).
:type sampling_frequency_in_seconds: int
@@ -1288,6 +1676,25 @@ def __init__(
self.tags = kwargs.get('tags', None)
+class StreamDeclaration(msrest.serialization.Model):
+ """Declaration of a custom stream.
+
+ :param columns: List of columns used by data in this stream.
+ :type columns: list[~$(python-base-namespace).v2021_09_01_preview.models.ColumnDefinition]
+ """
+
+ _attribute_map = {
+ 'columns': {'key': 'columns', 'type': '[ColumnDefinition]'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(StreamDeclaration, self).__init__(**kwargs)
+ self.columns = kwargs.get('columns', None)
+
+
class SyslogDataSource(msrest.serialization.Model):
"""Definition of which syslog data will be collected and how it will be collected.
Only collected from Linux machines.
@@ -1295,11 +1702,14 @@ class SyslogDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceStreams]
:param facility_names: The list of facility names.
- :type facility_names: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceFacilityNames]
+ :type facility_names: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceFacilityNames]
:param log_levels: The log levels to collect.
- :type log_levels: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceLogLevels]
+ :type log_levels: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceLogLevels]
:param name: A friendly name for the data source.
This name should be unique across all data sources (regardless of type) within the data
collection rule.
@@ -1331,7 +1741,8 @@ class WindowsEventLogDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownWindowsEventLogDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownWindowsEventLogDataSourceStreams]
:param x_path_queries: A list of Windows Event Log queries in XPATH format.
:type x_path_queries: list[str]
:param name: A friendly name for the data source.
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models_py3.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models_py3.py
index 00b4d7984c3..eac1042ad23 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models_py3.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models_py3.py
@@ -38,6 +38,34 @@ def __init__(
self.name = name
+class ColumnDefinition(msrest.serialization.Model):
+ """Definition of custom data column.
+
+ :param name: The name of the column.
+ :type name: str
+ :param type: The type of the column data. Possible values include: "string", "int", "long",
+ "real", "boolean", "datetime", "dynamic".
+ :type type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownColumnDefinitionType
+ """
+
+ _attribute_map = {
+ 'name': {'key': 'name', 'type': 'str'},
+ 'type': {'key': 'type', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ name: Optional[str] = None,
+ type: Optional[Union[str, "KnownColumnDefinitionType"]] = None,
+ **kwargs
+ ):
+ super(ColumnDefinition, self).__init__(**kwargs)
+ self.name = name
+ self.type = type
+
+
class ConfigurationAccessEndpointSpec(msrest.serialization.Model):
"""Definition of the endpoint used for accessing configuration.
@@ -73,16 +101,18 @@ class DataCollectionEndpoint(msrest.serialization.Model):
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -118,7 +148,7 @@ def __init__(
class DataCollectionEndpointConfigurationAccess(ConfigurationAccessEndpointSpec):
- """The endpoint used by agents to access their configuration.
+ """The endpoint used by clients to access their configuration.
Variables are only populated by the server, and will be ignored when sending a request.
@@ -195,7 +225,8 @@ class NetworkRuleSet(msrest.serialization.Model):
:param public_network_access: The configuration to set whether network access from public
internet to the endpoints are allowed. Possible values include: "Enabled", "Disabled".
- :type public_network_access: str or ~azure.mgmt.amcs.models.KnownPublicNetworkAccessOptions
+ :type public_network_access: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPublicNetworkAccessOptions
"""
_attribute_map = {
@@ -217,7 +248,8 @@ class DataCollectionEndpointNetworkAcls(NetworkRuleSet):
:param public_network_access: The configuration to set whether network access from public
internet to the endpoints are allowed. Possible values include: "Enabled", "Disabled".
- :type public_network_access: str or ~azure.mgmt.amcs.models.KnownPublicNetworkAccessOptions
+ :type public_network_access: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPublicNetworkAccessOptions
"""
_attribute_map = {
@@ -245,7 +277,8 @@ class DataCollectionEndpointResource(msrest.serialization.Model):
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param kind: The kind of the resource. Possible values include: "Linux", "Windows".
- :type kind: str or ~azure.mgmt.amcs.models.KnownDataCollectionEndpointResourceKind
+ :type kind: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointResourceKind
:ivar id: Fully qualified ID of the resource.
:vartype id: str
:ivar name: The name of the resource.
@@ -255,22 +288,24 @@ class DataCollectionEndpointResource(msrest.serialization.Model):
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the data collection endpoint.
:type description: str
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -336,7 +371,8 @@ class DataCollectionEndpointResourceListResult(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionEndpointResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionEndpointResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -372,16 +408,18 @@ class DataCollectionEndpointResourceProperties(DataCollectionEndpoint):
:param immutable_id: The immutable ID of this data collection endpoint resource. This property
is READ-ONLY.
:type immutable_id: str
- :param configuration_access: The endpoint used by agents to access their configuration.
- :type configuration_access: ~azure.mgmt.amcs.models.ConfigurationAccessEndpointSpec
+ :param configuration_access: The endpoint used by clients to access their configuration.
+ :type configuration_access: ~$(python-base-
+ namespace).v2021_09_01_preview.models.ConfigurationAccessEndpointSpec
:param logs_ingestion: The endpoint used by clients to ingest logs.
- :type logs_ingestion: ~azure.mgmt.amcs.models.LogsIngestionEndpointSpec
+ :type logs_ingestion: ~$(python-base-
+ namespace).v2021_09_01_preview.models.LogsIngestionEndpointSpec
:param network_acls: Network access control rules for the endpoints.
- :type network_acls: ~azure.mgmt.amcs.models.NetworkRuleSet
+ :type network_acls: ~$(python-base-namespace).v2021_09_01_preview.models.NetworkRuleSet
:ivar provisioning_state: The resource provisioning state. This property is READ-ONLY. Possible
values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionEndpointProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionEndpointProvisioningState
"""
_validation = {
@@ -417,14 +455,16 @@ class SystemData(msrest.serialization.Model):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -465,14 +505,16 @@ class DataCollectionEndpointResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -509,28 +551,40 @@ class DataCollectionRule(msrest.serialization.Model):
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'immutable_id': {'key': 'immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'dataFlows', 'type': '[DataFlow]'},
@@ -541,6 +595,8 @@ def __init__(
self,
*,
description: Optional[str] = None,
+ data_collection_endpoint_id: Optional[str] = None,
+ stream_declarations: Optional[Dict[str, "StreamDeclaration"]] = None,
data_sources: Optional["DataSourcesSpec"] = None,
destinations: Optional["DestinationsSpec"] = None,
data_flows: Optional[List["DataFlow"]] = None,
@@ -549,6 +605,9 @@ def __init__(
super(DataCollectionRule, self).__init__(**kwargs)
self.description = description
self.immutable_id = None
+ self.data_collection_endpoint_id = data_collection_endpoint_id
+ self.metadata = None
+ self.stream_declarations = stream_declarations
self.data_sources = data_sources
self.destinations = destinations
self.data_flows = data_flows
@@ -570,12 +629,15 @@ class DataCollectionRuleAssociation(msrest.serialization.Model):
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -583,6 +645,7 @@ class DataCollectionRuleAssociation(msrest.serialization.Model):
'data_collection_rule_id': {'key': 'dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
}
def __init__(
@@ -598,6 +661,56 @@ def __init__(
self.data_collection_rule_id = data_collection_rule_id
self.data_collection_endpoint_id = data_collection_endpoint_id
self.provisioning_state = None
+ self.metadata = None
+
+
+class Metadata(msrest.serialization.Model):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(Metadata, self).__init__(**kwargs)
+ self.provisioned_by = None
+
+
+class DataCollectionRuleAssociationMetadata(Metadata):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DataCollectionRuleAssociationMetadata, self).__init__(**kwargs)
class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model):
@@ -614,7 +727,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the association.
:type description: str
:param data_collection_rule_id: The resource ID of the data collection rule that is to be
@@ -625,8 +738,10 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
@@ -636,6 +751,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
'etag': {'readonly': True},
'system_data': {'readonly': True},
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -648,6 +764,7 @@ class DataCollectionRuleAssociationProxyOnlyResource(msrest.serialization.Model)
'data_collection_rule_id': {'key': 'properties.dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'properties.dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'properties.metadata', 'type': 'Metadata'},
}
def __init__(
@@ -668,6 +785,7 @@ def __init__(
self.data_collection_rule_id = data_collection_rule_id
self.data_collection_endpoint_id = data_collection_endpoint_id
self.provisioning_state = None
+ self.metadata = None
class DataCollectionRuleAssociationProxyOnlyResourceListResult(msrest.serialization.Model):
@@ -676,7 +794,8 @@ class DataCollectionRuleAssociationProxyOnlyResourceListResult(msrest.serializat
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -717,12 +836,15 @@ class DataCollectionRuleAssociationProxyOnlyResourceProperties(DataCollectionRul
:type data_collection_endpoint_id: str
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleAssociationProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleAssociationProvisioningState
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
"""
_validation = {
'provisioning_state': {'readonly': True},
+ 'metadata': {'readonly': True},
}
_attribute_map = {
@@ -730,6 +852,7 @@ class DataCollectionRuleAssociationProxyOnlyResourceProperties(DataCollectionRul
'data_collection_rule_id': {'key': 'dataCollectionRuleId', 'type': 'str'},
'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
}
def __init__(
@@ -750,14 +873,16 @@ class DataCollectionRuleAssociationProxyOnlyResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -789,13 +914,20 @@ class DataSourcesSpec(msrest.serialization.Model):
"""Specification of data sources that will be collected.
:param performance_counters: The list of performance counter data source configurations.
- :type performance_counters: list[~azure.mgmt.amcs.models.PerfCounterDataSource]
+ :type performance_counters: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.PerfCounterDataSource]
:param windows_event_logs: The list of Windows Event Log data source configurations.
- :type windows_event_logs: list[~azure.mgmt.amcs.models.WindowsEventLogDataSource]
+ :type windows_event_logs: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.WindowsEventLogDataSource]
:param syslog: The list of Syslog data source configurations.
- :type syslog: list[~azure.mgmt.amcs.models.SyslogDataSource]
+ :type syslog: list[~$(python-base-namespace).v2021_09_01_preview.models.SyslogDataSource]
:param extensions: The list of Azure VM extension data source configurations.
- :type extensions: list[~azure.mgmt.amcs.models.ExtensionDataSource]
+ :type extensions: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ExtensionDataSource]
+ :param log_files: The list of Log files source configurations.
+ :type log_files: list[~$(python-base-namespace).v2021_09_01_preview.models.LogFilesDataSource]
+ :param iis_logs: The list of IIS logs source configurations.
+ :type iis_logs: list[~$(python-base-namespace).v2021_09_01_preview.models.IisLogsDataSource]
"""
_attribute_map = {
@@ -803,6 +935,8 @@ class DataSourcesSpec(msrest.serialization.Model):
'windows_event_logs': {'key': 'windowsEventLogs', 'type': '[WindowsEventLogDataSource]'},
'syslog': {'key': 'syslog', 'type': '[SyslogDataSource]'},
'extensions': {'key': 'extensions', 'type': '[ExtensionDataSource]'},
+ 'log_files': {'key': 'logFiles', 'type': '[LogFilesDataSource]'},
+ 'iis_logs': {'key': 'iisLogs', 'type': '[IisLogsDataSource]'},
}
def __init__(
@@ -812,6 +946,8 @@ def __init__(
windows_event_logs: Optional[List["WindowsEventLogDataSource"]] = None,
syslog: Optional[List["SyslogDataSource"]] = None,
extensions: Optional[List["ExtensionDataSource"]] = None,
+ log_files: Optional[List["LogFilesDataSource"]] = None,
+ iis_logs: Optional[List["IisLogsDataSource"]] = None,
**kwargs
):
super(DataSourcesSpec, self).__init__(**kwargs)
@@ -819,6 +955,8 @@ def __init__(
self.windows_event_logs = windows_event_logs
self.syslog = syslog
self.extensions = extensions
+ self.log_files = log_files
+ self.iis_logs = iis_logs
class DataCollectionRuleDataSources(DataSourcesSpec):
@@ -826,13 +964,20 @@ class DataCollectionRuleDataSources(DataSourcesSpec):
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
:param performance_counters: The list of performance counter data source configurations.
- :type performance_counters: list[~azure.mgmt.amcs.models.PerfCounterDataSource]
+ :type performance_counters: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.PerfCounterDataSource]
:param windows_event_logs: The list of Windows Event Log data source configurations.
- :type windows_event_logs: list[~azure.mgmt.amcs.models.WindowsEventLogDataSource]
+ :type windows_event_logs: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.WindowsEventLogDataSource]
:param syslog: The list of Syslog data source configurations.
- :type syslog: list[~azure.mgmt.amcs.models.SyslogDataSource]
+ :type syslog: list[~$(python-base-namespace).v2021_09_01_preview.models.SyslogDataSource]
:param extensions: The list of Azure VM extension data source configurations.
- :type extensions: list[~azure.mgmt.amcs.models.ExtensionDataSource]
+ :type extensions: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ExtensionDataSource]
+ :param log_files: The list of Log files source configurations.
+ :type log_files: list[~$(python-base-namespace).v2021_09_01_preview.models.LogFilesDataSource]
+ :param iis_logs: The list of IIS logs source configurations.
+ :type iis_logs: list[~$(python-base-namespace).v2021_09_01_preview.models.IisLogsDataSource]
"""
_attribute_map = {
@@ -840,6 +985,8 @@ class DataCollectionRuleDataSources(DataSourcesSpec):
'windows_event_logs': {'key': 'windowsEventLogs', 'type': '[WindowsEventLogDataSource]'},
'syslog': {'key': 'syslog', 'type': '[SyslogDataSource]'},
'extensions': {'key': 'extensions', 'type': '[ExtensionDataSource]'},
+ 'log_files': {'key': 'logFiles', 'type': '[LogFilesDataSource]'},
+ 'iis_logs': {'key': 'iisLogs', 'type': '[IisLogsDataSource]'},
}
def __init__(
@@ -849,18 +996,22 @@ def __init__(
windows_event_logs: Optional[List["WindowsEventLogDataSource"]] = None,
syslog: Optional[List["SyslogDataSource"]] = None,
extensions: Optional[List["ExtensionDataSource"]] = None,
+ log_files: Optional[List["LogFilesDataSource"]] = None,
+ iis_logs: Optional[List["IisLogsDataSource"]] = None,
**kwargs
):
- super(DataCollectionRuleDataSources, self).__init__(performance_counters=performance_counters, windows_event_logs=windows_event_logs, syslog=syslog, extensions=extensions, **kwargs)
+ super(DataCollectionRuleDataSources, self).__init__(performance_counters=performance_counters, windows_event_logs=windows_event_logs, syslog=syslog, extensions=extensions, log_files=log_files, iis_logs=iis_logs, **kwargs)
class DestinationsSpec(msrest.serialization.Model):
"""Specification of destinations that can be used in data flows.
:param log_analytics: List of Log Analytics destinations.
- :type log_analytics: list[~azure.mgmt.amcs.models.LogAnalyticsDestination]
+ :type log_analytics: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.LogAnalyticsDestination]
:param azure_monitor_metrics: Azure Monitor Metrics destination.
- :type azure_monitor_metrics: ~azure.mgmt.amcs.models.AzureMonitorMetricsDestination
+ :type azure_monitor_metrics: ~$(python-base-
+ namespace).v2021_09_01_preview.models.AzureMonitorMetricsDestination
"""
_attribute_map = {
@@ -884,9 +1035,11 @@ class DataCollectionRuleDestinations(DestinationsSpec):
"""The specification of destinations.
:param log_analytics: List of Log Analytics destinations.
- :type log_analytics: list[~azure.mgmt.amcs.models.LogAnalyticsDestination]
+ :type log_analytics: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.LogAnalyticsDestination]
:param azure_monitor_metrics: Azure Monitor Metrics destination.
- :type azure_monitor_metrics: ~azure.mgmt.amcs.models.AzureMonitorMetricsDestination
+ :type azure_monitor_metrics: ~$(python-base-
+ namespace).v2021_09_01_preview.models.AzureMonitorMetricsDestination
"""
_attribute_map = {
@@ -904,6 +1057,30 @@ def __init__(
super(DataCollectionRuleDestinations, self).__init__(log_analytics=log_analytics, azure_monitor_metrics=azure_monitor_metrics, **kwargs)
+class DataCollectionRuleMetadata(Metadata):
+ """Metadata about the resource.
+
+ Variables are only populated by the server, and will be ignored when sending a request.
+
+ :ivar provisioned_by: Azure offering managing this resource on-behalf-of customer.
+ :vartype provisioned_by: str
+ """
+
+ _validation = {
+ 'provisioned_by': {'readonly': True},
+ }
+
+ _attribute_map = {
+ 'provisioned_by': {'key': 'provisionedBy', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ **kwargs
+ ):
+ super(DataCollectionRuleMetadata, self).__init__(**kwargs)
+
+
class DataCollectionRuleResource(msrest.serialization.Model):
"""Definition of ARM tracked top level resource.
@@ -916,7 +1093,8 @@ class DataCollectionRuleResource(msrest.serialization.Model):
:param tags: A set of tags. Resource tags.
:type tags: dict[str, str]
:param kind: The kind of the resource. Possible values include: "Linux", "Windows".
- :type kind: str or ~azure.mgmt.amcs.models.KnownDataCollectionRuleResourceKind
+ :type kind: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleResourceKind
:ivar id: Fully qualified ID of the resource.
:vartype id: str
:ivar name: The name of the resource.
@@ -926,23 +1104,31 @@ class DataCollectionRuleResource(msrest.serialization.Model):
:ivar etag: Resource entity tag (ETag).
:vartype etag: str
:ivar system_data: Metadata pertaining to creation and last modification of the resource.
- :vartype system_data: ~azure.mgmt.amcs.models.SystemData
+ :vartype system_data: ~$(python-base-namespace).v2021_09_01_preview.models.SystemData
:param description: Description of the data collection rule.
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
@@ -953,6 +1139,7 @@ class DataCollectionRuleResource(msrest.serialization.Model):
'etag': {'readonly': True},
'system_data': {'readonly': True},
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
@@ -967,6 +1154,9 @@ class DataCollectionRuleResource(msrest.serialization.Model):
'system_data': {'key': 'systemData', 'type': 'SystemData'},
'description': {'key': 'properties.description', 'type': 'str'},
'immutable_id': {'key': 'properties.immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'properties.dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'properties.metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'properties.streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'properties.dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'properties.destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'properties.dataFlows', 'type': '[DataFlow]'},
@@ -980,6 +1170,8 @@ def __init__(
tags: Optional[Dict[str, str]] = None,
kind: Optional[Union[str, "KnownDataCollectionRuleResourceKind"]] = None,
description: Optional[str] = None,
+ data_collection_endpoint_id: Optional[str] = None,
+ stream_declarations: Optional[Dict[str, "StreamDeclaration"]] = None,
data_sources: Optional["DataSourcesSpec"] = None,
destinations: Optional["DestinationsSpec"] = None,
data_flows: Optional[List["DataFlow"]] = None,
@@ -996,6 +1188,9 @@ def __init__(
self.system_data = None
self.description = description
self.immutable_id = None
+ self.data_collection_endpoint_id = data_collection_endpoint_id
+ self.metadata = None
+ self.stream_declarations = stream_declarations
self.data_sources = data_sources
self.destinations = destinations
self.data_flows = data_flows
@@ -1008,7 +1203,8 @@ class DataCollectionRuleResourceListResult(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.
:param value: Required. A list of resources.
- :type value: list[~azure.mgmt.amcs.models.DataCollectionRuleResource]
+ :type value: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.DataCollectionRuleResource]
:param next_link: The URL to use for getting the next set of results.
:type next_link: str
"""
@@ -1043,28 +1239,40 @@ class DataCollectionRuleResourceProperties(DataCollectionRule):
:type description: str
:ivar immutable_id: The immutable ID of this data collection rule. This property is READ-ONLY.
:vartype immutable_id: str
+ :param data_collection_endpoint_id: The resource ID of the data collection endpoint that this
+ rule can be used with.
+ :type data_collection_endpoint_id: str
+ :ivar metadata: Metadata about the resource.
+ :vartype metadata: ~$(python-base-namespace).v2021_09_01_preview.models.Metadata
+ :param stream_declarations: Declaration of custom streams used in this rule.
+ :type stream_declarations: dict[str, ~$(python-base-
+ namespace).v2021_09_01_preview.models.StreamDeclaration]
:param data_sources: The specification of data sources.
This property is optional and can be omitted if the rule is meant to be used via direct calls
to the provisioned endpoint.
- :type data_sources: ~azure.mgmt.amcs.models.DataSourcesSpec
+ :type data_sources: ~$(python-base-namespace).v2021_09_01_preview.models.DataSourcesSpec
:param destinations: The specification of destinations.
- :type destinations: ~azure.mgmt.amcs.models.DestinationsSpec
+ :type destinations: ~$(python-base-namespace).v2021_09_01_preview.models.DestinationsSpec
:param data_flows: The specification of data flows.
- :type data_flows: list[~azure.mgmt.amcs.models.DataFlow]
+ :type data_flows: list[~$(python-base-namespace).v2021_09_01_preview.models.DataFlow]
:ivar provisioning_state: The resource provisioning state. Possible values include: "Creating",
"Updating", "Deleting", "Succeeded", "Failed".
- :vartype provisioning_state: str or
- ~azure.mgmt.amcs.models.KnownDataCollectionRuleProvisioningState
+ :vartype provisioning_state: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataCollectionRuleProvisioningState
"""
_validation = {
'immutable_id': {'readonly': True},
+ 'metadata': {'readonly': True},
'provisioning_state': {'readonly': True},
}
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'immutable_id': {'key': 'immutableId', 'type': 'str'},
+ 'data_collection_endpoint_id': {'key': 'dataCollectionEndpointId', 'type': 'str'},
+ 'metadata': {'key': 'metadata', 'type': 'Metadata'},
+ 'stream_declarations': {'key': 'streamDeclarations', 'type': '{StreamDeclaration}'},
'data_sources': {'key': 'dataSources', 'type': 'DataSourcesSpec'},
'destinations': {'key': 'destinations', 'type': 'DestinationsSpec'},
'data_flows': {'key': 'dataFlows', 'type': '[DataFlow]'},
@@ -1075,12 +1283,14 @@ def __init__(
self,
*,
description: Optional[str] = None,
+ data_collection_endpoint_id: Optional[str] = None,
+ stream_declarations: Optional[Dict[str, "StreamDeclaration"]] = None,
data_sources: Optional["DataSourcesSpec"] = None,
destinations: Optional["DestinationsSpec"] = None,
data_flows: Optional[List["DataFlow"]] = None,
**kwargs
):
- super(DataCollectionRuleResourceProperties, self).__init__(description=description, data_sources=data_sources, destinations=destinations, data_flows=data_flows, **kwargs)
+ super(DataCollectionRuleResourceProperties, self).__init__(description=description, data_collection_endpoint_id=data_collection_endpoint_id, stream_declarations=stream_declarations, data_sources=data_sources, destinations=destinations, data_flows=data_flows, **kwargs)
class DataCollectionRuleResourceSystemData(SystemData):
@@ -1090,14 +1300,16 @@ class DataCollectionRuleResourceSystemData(SystemData):
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
- :type created_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type created_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param created_at: The timestamp of resource creation (UTC).
:type created_at: ~datetime.datetime
:param last_modified_by: The identity that last modified the resource.
:type last_modified_by: str
:param last_modified_by_type: The type of identity that last modified the resource. Possible
values include: "User", "Application", "ManagedIdentity", "Key".
- :type last_modified_by_type: str or ~azure.mgmt.amcs.models.CreatedByType
+ :type last_modified_by_type: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.CreatedByType
:param last_modified_at: The timestamp of resource last modification (UTC).
:type last_modified_at: ~datetime.datetime
"""
@@ -1129,14 +1341,22 @@ class DataFlow(msrest.serialization.Model):
"""Definition of which streams are sent to which destinations.
:param streams: List of streams for this data flow.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownDataFlowStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownDataFlowStreams]
:param destinations: List of destinations for this data flow.
:type destinations: list[str]
+ :param transform_kql: The KQL query to transform stream data.
+ :type transform_kql: str
+ :param output_stream: The output stream of the transform. Only required if the transform
+ changes data to a different stream.
+ :type output_stream: str
"""
_attribute_map = {
'streams': {'key': 'streams', 'type': '[str]'},
'destinations': {'key': 'destinations', 'type': '[str]'},
+ 'transform_kql': {'key': 'transformKql', 'type': 'str'},
+ 'output_stream': {'key': 'outputStream', 'type': 'str'},
}
def __init__(
@@ -1144,11 +1364,15 @@ def __init__(
*,
streams: Optional[List[Union[str, "KnownDataFlowStreams"]]] = None,
destinations: Optional[List[str]] = None,
+ transform_kql: Optional[str] = None,
+ output_stream: Optional[str] = None,
**kwargs
):
super(DataFlow, self).__init__(**kwargs)
self.streams = streams
self.destinations = destinations
+ self.transform_kql = transform_kql
+ self.output_stream = output_stream
class DestinationsSpecAzureMonitorMetrics(AzureMonitorMetricsDestination):
@@ -1215,9 +1439,10 @@ class ErrorDetail(msrest.serialization.Model):
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
- :vartype details: list[~azure.mgmt.amcs.models.ErrorDetail]
+ :vartype details: list[~$(python-base-namespace).v2021_09_01_preview.models.ErrorDetail]
:ivar additional_info: The error additional info.
- :vartype additional_info: list[~azure.mgmt.amcs.models.ErrorAdditionalInfo]
+ :vartype additional_info: list[~$(python-base-
+ namespace).v2021_09_01_preview.models.ErrorAdditionalInfo]
"""
_validation = {
@@ -1248,11 +1473,11 @@ def __init__(
self.additional_info = None
-class ErrorResponse(msrest.serialization.Model):
+class ErrorResponseCommonV2(msrest.serialization.Model):
"""Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
:param error: The error object.
- :type error: ~azure.mgmt.amcs.models.ErrorDetail
+ :type error: ~$(python-base-namespace).v2021_09_01_preview.models.ErrorDetail
"""
_attribute_map = {
@@ -1265,7 +1490,7 @@ def __init__(
error: Optional["ErrorDetail"] = None,
**kwargs
):
- super(ErrorResponse, self).__init__(**kwargs)
+ super(ErrorResponseCommonV2, self).__init__(**kwargs)
self.error = error
@@ -1278,7 +1503,8 @@ class ExtensionDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownExtensionDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownExtensionDataSourceStreams]
:param extension_name: Required. The name of the VM extension.
:type extension_name: str
:param extension_settings: The extension settings. The format is specific for particular
@@ -1322,6 +1548,45 @@ def __init__(
self.name = name
+class IisLogsDataSource(msrest.serialization.Model):
+ """Enables IIS logs to be collected by this data collection rule.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param streams: Required. IIS streams.
+ :type streams: list[str]
+ :param log_directories: Absolute paths file location.
+ :type log_directories: list[str]
+ :param name: A friendly name for the data source.
+ This name should be unique across all data sources (regardless of type) within the data
+ collection rule.
+ :type name: str
+ """
+
+ _validation = {
+ 'streams': {'required': True},
+ }
+
+ _attribute_map = {
+ 'streams': {'key': 'streams', 'type': '[str]'},
+ 'log_directories': {'key': 'logDirectories', 'type': '[str]'},
+ 'name': {'key': 'name', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ streams: List[str],
+ log_directories: Optional[List[str]] = None,
+ name: Optional[str] = None,
+ **kwargs
+ ):
+ super(IisLogsDataSource, self).__init__(**kwargs)
+ self.streams = streams
+ self.log_directories = log_directories
+ self.name = name
+
+
class LogAnalyticsDestination(msrest.serialization.Model):
"""Log Analytics destination.
@@ -1360,6 +1625,161 @@ def __init__(
self.name = name
+class LogFilesDataSource(msrest.serialization.Model):
+ """Definition of which custom log files will be collected by this data collection rule.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param streams: Required. List of streams that this data source will be sent to.
+ A stream indicates what schema will be used for this data source.
+ :type streams: list[str]
+ :param file_patterns: Required. File Patterns where the log files are located.
+ :type file_patterns: list[str]
+ :param format: Required. The data format of the log files. Possible values include: "text".
+ :type format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFilesDataSourceFormat
+ :param settings: The log files specific settings.
+ :type settings: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileSettings
+ :param name: A friendly name for the data source.
+ This name should be unique across all data sources (regardless of type) within the data
+ collection rule.
+ :type name: str
+ """
+
+ _validation = {
+ 'streams': {'required': True},
+ 'file_patterns': {'required': True},
+ 'format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'streams': {'key': 'streams', 'type': '[str]'},
+ 'file_patterns': {'key': 'filePatterns', 'type': '[str]'},
+ 'format': {'key': 'format', 'type': 'str'},
+ 'settings': {'key': 'settings', 'type': 'LogFileSettings'},
+ 'name': {'key': 'name', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ streams: List[str],
+ file_patterns: List[str],
+ format: Union[str, "KnownLogFilesDataSourceFormat"],
+ settings: Optional["LogFileSettings"] = None,
+ name: Optional[str] = None,
+ **kwargs
+ ):
+ super(LogFilesDataSource, self).__init__(**kwargs)
+ self.streams = streams
+ self.file_patterns = file_patterns
+ self.format = format
+ self.settings = settings
+ self.name = name
+
+
+class LogFileSettings(msrest.serialization.Model):
+ """Settings for different log file formats.
+
+ :param text: Text settings.
+ :type text: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileTextSettings
+ """
+
+ _attribute_map = {
+ 'text': {'key': 'text', 'type': 'LogFileTextSettings'},
+ }
+
+ def __init__(
+ self,
+ *,
+ text: Optional["LogFileTextSettings"] = None,
+ **kwargs
+ ):
+ super(LogFileSettings, self).__init__(**kwargs)
+ self.text = text
+
+
+class LogFilesDataSourceSettings(LogFileSettings):
+ """The log files specific settings.
+
+ :param text: Text settings.
+ :type text: ~$(python-base-namespace).v2021_09_01_preview.models.LogFileTextSettings
+ """
+
+ _attribute_map = {
+ 'text': {'key': 'text', 'type': 'LogFileTextSettings'},
+ }
+
+ def __init__(
+ self,
+ *,
+ text: Optional["LogFileTextSettings"] = None,
+ **kwargs
+ ):
+ super(LogFilesDataSourceSettings, self).__init__(text=text, **kwargs)
+
+
+class LogFileTextSettings(msrest.serialization.Model):
+ """Settings for text log files.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param record_start_timestamp_format: Required. One of the supported timestamp formats.
+ Possible values include: "ISO 8601", "YYYY-MM-DD HH:MM:SS", "M/D/YYYY HH:MM:SS AM/PM", "Mon DD,
+ YYYY HH:MM:SS", "yyMMdd HH:mm:ss", "ddMMyy HH:mm:ss", "MMM d hh:mm:ss", "dd/MMM/yyyy:HH:mm:ss
+ zzz", "yyyy-MM-ddTHH:mm:ssK".
+ :type record_start_timestamp_format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFileTextSettingsRecordStartTimestampFormat
+ """
+
+ _validation = {
+ 'record_start_timestamp_format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'record_start_timestamp_format': {'key': 'recordStartTimestampFormat', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ record_start_timestamp_format: Union[str, "KnownLogFileTextSettingsRecordStartTimestampFormat"],
+ **kwargs
+ ):
+ super(LogFileTextSettings, self).__init__(**kwargs)
+ self.record_start_timestamp_format = record_start_timestamp_format
+
+
+class LogFileSettingsText(LogFileTextSettings):
+ """Text settings.
+
+ All required parameters must be populated in order to send to Azure.
+
+ :param record_start_timestamp_format: Required. One of the supported timestamp formats.
+ Possible values include: "ISO 8601", "YYYY-MM-DD HH:MM:SS", "M/D/YYYY HH:MM:SS AM/PM", "Mon DD,
+ YYYY HH:MM:SS", "yyMMdd HH:mm:ss", "ddMMyy HH:mm:ss", "MMM d hh:mm:ss", "dd/MMM/yyyy:HH:mm:ss
+ zzz", "yyyy-MM-ddTHH:mm:ssK".
+ :type record_start_timestamp_format: str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownLogFileTextSettingsRecordStartTimestampFormat
+ """
+
+ _validation = {
+ 'record_start_timestamp_format': {'required': True},
+ }
+
+ _attribute_map = {
+ 'record_start_timestamp_format': {'key': 'recordStartTimestampFormat', 'type': 'str'},
+ }
+
+ def __init__(
+ self,
+ *,
+ record_start_timestamp_format: Union[str, "KnownLogFileTextSettingsRecordStartTimestampFormat"],
+ **kwargs
+ ):
+ super(LogFileSettingsText, self).__init__(record_start_timestamp_format=record_start_timestamp_format, **kwargs)
+
+
class PerfCounterDataSource(msrest.serialization.Model):
"""Definition of which performance counters will be collected and how they will be collected by this data collection rule.
Collected from both Windows and Linux machines where the counter is present.
@@ -1367,7 +1787,8 @@ class PerfCounterDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownPerfCounterDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownPerfCounterDataSourceStreams]
:param sampling_frequency_in_seconds: The number of seconds between consecutive counter
measurements (samples).
:type sampling_frequency_in_seconds: int
@@ -1426,6 +1847,27 @@ def __init__(
self.tags = tags
+class StreamDeclaration(msrest.serialization.Model):
+ """Declaration of a custom stream.
+
+ :param columns: List of columns used by data in this stream.
+ :type columns: list[~$(python-base-namespace).v2021_09_01_preview.models.ColumnDefinition]
+ """
+
+ _attribute_map = {
+ 'columns': {'key': 'columns', 'type': '[ColumnDefinition]'},
+ }
+
+ def __init__(
+ self,
+ *,
+ columns: Optional[List["ColumnDefinition"]] = None,
+ **kwargs
+ ):
+ super(StreamDeclaration, self).__init__(**kwargs)
+ self.columns = columns
+
+
class SyslogDataSource(msrest.serialization.Model):
"""Definition of which syslog data will be collected and how it will be collected.
Only collected from Linux machines.
@@ -1433,11 +1875,14 @@ class SyslogDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceStreams]
:param facility_names: The list of facility names.
- :type facility_names: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceFacilityNames]
+ :type facility_names: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceFacilityNames]
:param log_levels: The log levels to collect.
- :type log_levels: list[str or ~azure.mgmt.amcs.models.KnownSyslogDataSourceLogLevels]
+ :type log_levels: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownSyslogDataSourceLogLevels]
:param name: A friendly name for the data source.
This name should be unique across all data sources (regardless of type) within the data
collection rule.
@@ -1474,7 +1919,8 @@ class WindowsEventLogDataSource(msrest.serialization.Model):
:param streams: List of streams that this data source will be sent to.
A stream indicates what schema will be used for this data and usually what table in Log
Analytics the data will be sent to.
- :type streams: list[str or ~azure.mgmt.amcs.models.KnownWindowsEventLogDataSourceStreams]
+ :type streams: list[str or ~$(python-base-
+ namespace).v2021_09_01_preview.models.KnownWindowsEventLogDataSourceStreams]
:param x_path_queries: A list of Windows Event Log queries in XPATH format.
:type x_path_queries: list[str]
:param name: A friendly name for the data source.
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_monitor_client_enums.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_monitor_client_enums.py
index 9617f5f9e1e..13a81ab93fa 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_monitor_client_enums.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_monitor_client_enums.py
@@ -35,6 +35,18 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
MANAGED_IDENTITY = "ManagedIdentity"
KEY = "Key"
+class KnownColumnDefinitionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
+ """The type of the column data.
+ """
+
+ STRING = "string"
+ INT = "int"
+ LONG = "long"
+ REAL = "real"
+ BOOLEAN = "boolean"
+ DATETIME = "datetime"
+ DYNAMIC = "dynamic"
+
class KnownDataCollectionEndpointProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The resource provisioning state. This property is READ-ONLY.
"""
@@ -95,6 +107,26 @@ class KnownExtensionDataSourceStreams(with_metaclass(_CaseInsensitiveEnumMeta, s
MICROSOFT_SYSLOG = "Microsoft-Syslog"
MICROSOFT_WINDOWS_EVENT = "Microsoft-WindowsEvent"
+class KnownLogFilesDataSourceFormat(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
+ """The data format of the log files
+ """
+
+ TEXT = "text"
+
+class KnownLogFileTextSettingsRecordStartTimestampFormat(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
+ """One of the supported timestamp formats
+ """
+
+ ISO8601 = "ISO 8601"
+ YYYY_MM_DD_HH_MM_SS = "YYYY-MM-DD HH:MM:SS"
+ M_D_YYYY_HH_MM_SS_AM_PM = "M/D/YYYY HH:MM:SS AM/PM"
+ MON_DD_YYYY_HH_MM_SS = "Mon DD, YYYY HH:MM:SS"
+ YY_M_MDD_HH_MM_SS = "yyMMdd HH:mm:ss"
+ DD_M_MYY_HH_MM_SS = "ddMMyy HH:mm:ss"
+ MMM_D_HH_MM_SS = "MMM d hh:mm:ss"
+ DD_MMM_YYYY_HH_MM_SS_ZZZ = "dd/MMM/yyyy:HH:mm:ss zzz"
+ YYYY_MM_DD_THH_MM_SS_K = "yyyy-MM-ddTHH:mm:ssK"
+
class KnownPerfCounterDataSourceStreams(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
MICROSOFT_PERF = "Microsoft-Perf"
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_endpoints_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_endpoints_operations.py
index 87541fc7721..06d419b0f09 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_endpoints_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_endpoints_operations.py
@@ -30,7 +30,7 @@ class DataCollectionEndpointsOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -59,7 +59,7 @@ def list_by_resource_group(
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionEndpointResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionEndpointResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResourceListResult"]
@@ -67,7 +67,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -80,7 +80,7 @@ def prepare_request(next_link=None):
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@@ -108,7 +108,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -130,7 +130,7 @@ def list_by_subscription(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionEndpointResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionEndpointResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResourceListResult"]
@@ -138,7 +138,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -178,7 +178,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -207,7 +207,7 @@ def get(
:type data_collection_endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -215,14 +215,14 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -241,7 +241,7 @@ def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionEndpointResource', pipeline_response)
@@ -270,10 +270,10 @@ def create(
case insensitive.
:type data_collection_endpoint_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -281,7 +281,7 @@ def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -289,7 +289,7 @@ def create(
url = self.create.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -315,7 +315,7 @@ def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -348,10 +348,10 @@ def update(
case insensitive.
:type data_collection_endpoint_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.ResourceForUpdate
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.ResourceForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionEndpointResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionEndpointResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionEndpointResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionEndpointResource"]
@@ -359,7 +359,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -367,7 +367,7 @@ def update(
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -393,7 +393,7 @@ def update(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionEndpointResource', pipeline_response)
@@ -430,14 +430,14 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -456,7 +456,7 @@ def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_association_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_association_operations.py
deleted file mode 100644
index 5d40155e0c7..00000000000
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_association_operations.py
+++ /dev/null
@@ -1,399 +0,0 @@
-# coding=utf-8
-# --------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-from typing import TYPE_CHECKING
-import warnings
-
-from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
-from azure.core.paging import ItemPaged
-from azure.core.pipeline import PipelineResponse
-from azure.core.pipeline.transport import HttpRequest, HttpResponse
-from azure.mgmt.core.exceptions import ARMErrorFormat
-
-from .. import models
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union
-
- T = TypeVar('T')
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
-
-class DataCollectionRuleAssociationOperations(object):
- """DataCollectionRuleAssociationOperations operations.
-
- You should not instantiate this class directly. Instead, you should create a Client instance that
- instantiates it for you and attaches it as an attribute.
-
- :ivar models: Alias to model classes used in this operation group.
- :type models: ~$(python-base-namespace).v2019_11_01_preview.models
- :param client: Client for service requests.
- :param config: Configuration of service client.
- :param serializer: An object model serializer.
- :param deserializer: An object model deserializer.
- """
-
- models = models
-
- def __init__(self, client, config, serializer, deserializer):
- self._client = client
- self._serialize = serializer
- self._deserialize = deserializer
- self._config = config
-
- def list_by_resource(
- self,
- resource_uri, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> Iterable["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
- """Lists associations for the specified resource.
-
- Lists associations for the specified resource.
-
- :param resource_uri: The identifier of the resource.
- :type resource_uri: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- def prepare_request(next_link=None):
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- if not next_link:
- # Construct URL
- url = self.list_by_resource.metadata['url'] # type: ignore
- path_format_arguments = {
- 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True, min_length=1),
- }
- url = self._client.format_url(url, **path_format_arguments)
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- else:
- url = next_link
- query_parameters = {} # type: Dict[str, Any]
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def extract_data(pipeline_response):
- deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResourceListResult', pipeline_response)
- list_of_elem = deserialized.value
- if cls:
- list_of_elem = cls(list_of_elem)
- return deserialized.next_link or None, iter(list_of_elem)
-
- def get_next(next_link=None):
- request = prepare_request(next_link)
-
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- return pipeline_response
-
- return ItemPaged(
- get_next, extract_data
- )
- list_by_resource.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations'} # type: ignore
-
- def list_by_rule(
- self,
- resource_group_name, # type: str
- data_collection_rule_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> Iterable["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
- """Lists associations for the specified data collection rule.
-
- Lists associations for the specified data collection rule.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :param data_collection_rule_name: The name of the data collection rule. The name is case
- insensitive.
- :type data_collection_rule_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- def prepare_request(next_link=None):
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- if not next_link:
- # Construct URL
- url = self.list_by_rule.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- 'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- else:
- url = next_link
- query_parameters = {} # type: Dict[str, Any]
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def extract_data(pipeline_response):
- deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResourceListResult', pipeline_response)
- list_of_elem = deserialized.value
- if cls:
- list_of_elem = cls(list_of_elem)
- return deserialized.next_link or None, iter(list_of_elem)
-
- def get_next(next_link=None):
- request = prepare_request(next_link)
-
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- return pipeline_response
-
- return ItemPaged(
- get_next, extract_data
- )
- list_by_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations'} # type: ignore
-
- def get(
- self,
- resource_uri, # type: str
- association_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> "models.DataCollectionRuleAssociationProxyOnlyResource"
- """Returns the specified association.
-
- Returns the specified association.
-
- :param resource_uri: The identifier of the resource.
- :type resource_uri: str
- :param association_name: The name of the association.
- :type association_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- # Construct URL
- url = self.get.metadata['url'] # type: ignore
- path_format_arguments = {
- 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True, min_length=1),
- 'associationName': self._serialize.url("association_name", association_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResource', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- get.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}'} # type: ignore
-
- def create(
- self,
- resource_uri, # type: str
- association_name, # type: str
- description=None, # type: Optional[str]
- data_collection_rule_id=None, # type: Optional[str]
- **kwargs # type: Any
- ):
- # type: (...) -> "models.DataCollectionRuleAssociationProxyOnlyResource"
- """Creates or updates an association.
-
- Creates or updates an association.
-
- :param resource_uri: The identifier of the resource.
- :type resource_uri: str
- :param association_name: The name of the association.
- :type association_name: str
- :param description: Description of the association.
- :type description: str
- :param data_collection_rule_id: The resource ID of the data collection rule that is to be
- associated.
- :type data_collection_rule_id: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
-
- body = models.DataCollectionRuleAssociationProxyOnlyResource(description=description, data_collection_rule_id=data_collection_rule_id)
- api_version = "2019-11-01-preview"
- content_type = kwargs.pop("content_type", "application/json")
- accept = "application/json"
-
- # Construct URL
- url = self.create.metadata['url'] # type: ignore
- path_format_arguments = {
- 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True, min_length=1),
- 'associationName': self._serialize.url("association_name", association_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- body_content_kwargs = {} # type: Dict[str, Any]
- if body is not None:
- body_content = self._serialize.body(body, 'DataCollectionRuleAssociationProxyOnlyResource')
- else:
- body_content = None
- body_content_kwargs['content'] = body_content
- request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200, 201]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if response.status_code == 200:
- deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResource', pipeline_response)
-
- if response.status_code == 201:
- deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResource', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- create.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}'} # type: ignore
-
- def delete(
- self,
- resource_uri, # type: str
- association_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> None
- """Deletes an association.
-
- Deletes an association.
-
- :param resource_uri: The identifier of the resource.
- :type resource_uri: str
- :param association_name: The name of the association.
- :type association_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: None, or the result of cls(response)
- :rtype: None
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType[None]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- # Construct URL
- url = self.delete.metadata['url'] # type: ignore
- path_format_arguments = {
- 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True, min_length=1),
- 'associationName': self._serialize.url("association_name", association_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- request = self._client.delete(url, query_parameters, header_parameters)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200, 204]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if cls:
- return cls(pipeline_response, None, {})
-
- delete.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/dataCollectionRuleAssociations/{associationName}'} # type: ignore
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_associations_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_associations_operations.py
index 00530df666a..deadbcdc5b2 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_associations_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_associations_operations.py
@@ -30,7 +30,7 @@ class DataCollectionRuleAssociationsOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -59,7 +59,7 @@ def list_by_resource(
:type resource_uri: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
@@ -67,7 +67,7 @@ def list_by_resource(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -107,7 +107,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -136,7 +136,7 @@ def list_by_rule(
:type data_collection_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
@@ -144,7 +144,7 @@ def list_by_rule(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -157,7 +157,7 @@ def prepare_request(next_link=None):
url = self.list_by_rule.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -186,7 +186,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -197,6 +197,85 @@ def get_next(next_link=None):
)
list_by_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}/associations'} # type: ignore
+ def list_by_data_collection_endpoint(
+ self,
+ resource_group_name, # type: str
+ data_collection_endpoint_name, # type: str
+ **kwargs # type: Any
+ ):
+ # type: (...) -> Iterable["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
+ """Lists associations for the specified data collection endpoint.
+
+ Lists associations for the specified data collection endpoint.
+
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ :type resource_group_name: str
+ :param data_collection_endpoint_name: The name of the data collection endpoint. The name is
+ case insensitive.
+ :type data_collection_endpoint_name: str
+ :keyword callable cls: A custom type or function that will be passed the direct response
+ :return: An iterator like instance of either DataCollectionRuleAssociationProxyOnlyResourceListResult or the result of cls(response)
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResourceListResult]
+ :raises: ~azure.core.exceptions.HttpResponseError
+ """
+ cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResourceListResult"]
+ error_map = {
+ 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
+ }
+ error_map.update(kwargs.pop('error_map', {}))
+ api_version = "2021-09-01-preview"
+ accept = "application/json"
+
+ def prepare_request(next_link=None):
+ # Construct headers
+ header_parameters = {} # type: Dict[str, Any]
+ header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
+
+ if not next_link:
+ # Construct URL
+ url = self.list_by_data_collection_endpoint.metadata['url'] # type: ignore
+ path_format_arguments = {
+ 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
+ 'dataCollectionEndpointName': self._serialize.url("data_collection_endpoint_name", data_collection_endpoint_name, 'str'),
+ }
+ url = self._client.format_url(url, **path_format_arguments)
+ # Construct parameters
+ query_parameters = {} # type: Dict[str, Any]
+ query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
+
+ request = self._client.get(url, query_parameters, header_parameters)
+ else:
+ url = next_link
+ query_parameters = {} # type: Dict[str, Any]
+ request = self._client.get(url, query_parameters, header_parameters)
+ return request
+
+ def extract_data(pipeline_response):
+ deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResourceListResult', pipeline_response)
+ list_of_elem = deserialized.value
+ if cls:
+ list_of_elem = cls(list_of_elem)
+ return deserialized.next_link or None, iter(list_of_elem)
+
+ def get_next(next_link=None):
+ request = prepare_request(next_link)
+
+ pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+
+ return pipeline_response
+
+ return ItemPaged(
+ get_next, extract_data
+ )
+ list_by_data_collection_endpoint.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/associations'} # type: ignore
+
def get(
self,
resource_uri, # type: str
@@ -214,7 +293,7 @@ def get(
:type association_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
@@ -222,7 +301,7 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
@@ -247,7 +326,7 @@ def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleAssociationProxyOnlyResource', pipeline_response)
@@ -275,10 +354,10 @@ def create(
:param association_name: The name of the association. The name is case insensitive.
:type association_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleAssociationProxyOnlyResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleAssociationProxyOnlyResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleAssociationProxyOnlyResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleAssociationProxyOnlyResource"]
@@ -286,7 +365,7 @@ def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -319,7 +398,7 @@ def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -359,7 +438,7 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
@@ -384,7 +463,7 @@ def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_operations.py
deleted file mode 100644
index 3f3c20d4dac..00000000000
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rule_operations.py
+++ /dev/null
@@ -1,496 +0,0 @@
-# coding=utf-8
-# --------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the MIT License. See License.txt in the project root for license information.
-# Code generated by Microsoft (R) AutoRest Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-from typing import TYPE_CHECKING
-import warnings
-
-from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
-from azure.core.paging import ItemPaged
-from azure.core.pipeline import PipelineResponse
-from azure.core.pipeline.transport import HttpRequest, HttpResponse
-from azure.mgmt.core.exceptions import ARMErrorFormat
-
-from .. import models
-
-if TYPE_CHECKING:
- # pylint: disable=unused-import,ungrouped-imports
- from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union
-
- T = TypeVar('T')
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
-
-class DataCollectionRuleOperations(object):
- """DataCollectionRuleOperations operations.
-
- You should not instantiate this class directly. Instead, you should create a Client instance that
- instantiates it for you and attaches it as an attribute.
-
- :ivar models: Alias to model classes used in this operation group.
- :type models: ~$(python-base-namespace).v2019_11_01_preview.models
- :param client: Client for service requests.
- :param config: Configuration of service client.
- :param serializer: An object model serializer.
- :param deserializer: An object model deserializer.
- """
-
- models = models
-
- def __init__(self, client, config, serializer, deserializer):
- self._client = client
- self._serialize = serializer
- self._deserialize = deserializer
- self._config = config
-
- def list_by_resource_group(
- self,
- resource_group_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> Iterable["models.DataCollectionRuleResourceListResult"]
- """Lists all data collection rules in the specified resource group.
-
- Lists all data collection rules in the specified resource group.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleResourceListResult]
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- def prepare_request(next_link=None):
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- if not next_link:
- # Construct URL
- url = self.list_by_resource_group.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- else:
- url = next_link
- query_parameters = {} # type: Dict[str, Any]
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def extract_data(pipeline_response):
- deserialized = self._deserialize('DataCollectionRuleResourceListResult', pipeline_response)
- list_of_elem = deserialized.value
- if cls:
- list_of_elem = cls(list_of_elem)
- return deserialized.next_link or None, iter(list_of_elem)
-
- def get_next(next_link=None):
- request = prepare_request(next_link)
-
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- return pipeline_response
-
- return ItemPaged(
- get_next, extract_data
- )
- list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules'} # type: ignore
-
- def list_by_subscription(
- self,
- **kwargs # type: Any
- ):
- # type: (...) -> Iterable["models.DataCollectionRuleResourceListResult"]
- """Lists all data collection rules in the specified subscription.
-
- Lists all data collection rules in the specified subscription.
-
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleResourceListResult]
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- def prepare_request(next_link=None):
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- if not next_link:
- # Construct URL
- url = self.list_by_subscription.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- }
- url = self._client.format_url(url, **path_format_arguments)
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- else:
- url = next_link
- query_parameters = {} # type: Dict[str, Any]
- request = self._client.get(url, query_parameters, header_parameters)
- return request
-
- def extract_data(pipeline_response):
- deserialized = self._deserialize('DataCollectionRuleResourceListResult', pipeline_response)
- list_of_elem = deserialized.value
- if cls:
- list_of_elem = cls(list_of_elem)
- return deserialized.next_link or None, iter(list_of_elem)
-
- def get_next(next_link=None):
- request = prepare_request(next_link)
-
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- return pipeline_response
-
- return ItemPaged(
- get_next, extract_data
- )
- list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Insights/dataCollectionRules'} # type: ignore
-
- def get(
- self,
- resource_group_name, # type: str
- data_collection_rule_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> "models.DataCollectionRuleResource"
- """Returns the specified data collection rule.
-
- Returns the specified data collection rule.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :param data_collection_rule_name: The name of the data collection rule. The name is case
- insensitive.
- :type data_collection_rule_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleResource
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- # Construct URL
- url = self.get.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- 'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- request = self._client.get(url, query_parameters, header_parameters)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}'} # type: ignore
-
- def create(
- self,
- resource_group_name, # type: str
- data_collection_rule_name, # type: str
- location=None, # type: Optional[str]
- tags=None, # type: Optional[Dict[str, str]]
- description=None, # type: Optional[str]
- data_flows=None, # type: Optional[List["models.DataFlow"]]
- log_analytics=None, # type: Optional[List["models.LogAnalyticsDestination"]]
- azure_monitor_metrics=None, # type: Optional["models.AzureMonitorMetricsDestination"]
- performance_counters=None, # type: Optional[List["models.PerfCounterDataSource"]]
- windows_event_logs=None, # type: Optional[List["models.WindowsEventLogDataSource"]]
- syslog=None, # type: Optional[List["models.SyslogDataSource"]]
- extensions=None, # type: Optional[List["models.ExtensionDataSource"]]
- **kwargs # type: Any
- ):
- # type: (...) -> "models.DataCollectionRuleResource"
- """Creates or updates a data collection rule.
-
- Creates or updates a data collection rule.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :param data_collection_rule_name: The name of the data collection rule. The name is case
- insensitive.
- :type data_collection_rule_name: str
- :param location: The geo-location where the resource lives.
- :type location: str
- :param tags: Resource tags.
- :type tags: dict[str, str]
- :param description: Description of the data collection rule.
- :type description: str
- :param data_flows: The specification of data flows.
- :type data_flows: list[~$(python-base-namespace).v2019_11_01_preview.models.DataFlow]
- :param log_analytics: List of Log Analytics destinations.
- :type log_analytics: list[~$(python-base-namespace).v2019_11_01_preview.models.LogAnalyticsDestination]
- :param azure_monitor_metrics: Azure Monitor Metrics destination.
- :type azure_monitor_metrics: ~$(python-base-namespace).v2019_11_01_preview.models.AzureMonitorMetricsDestination
- :param performance_counters: The list of performance counter data source configurations.
- :type performance_counters: list[~$(python-base-namespace).v2019_11_01_preview.models.PerfCounterDataSource]
- :param windows_event_logs: The list of Windows Event Log data source configurations.
- :type windows_event_logs: list[~$(python-base-namespace).v2019_11_01_preview.models.WindowsEventLogDataSource]
- :param syslog: The list of Syslog data source configurations.
- :type syslog: list[~$(python-base-namespace).v2019_11_01_preview.models.SyslogDataSource]
- :param extensions: The list of Azure VM extension data source configurations.
- :type extensions: list[~$(python-base-namespace).v2019_11_01_preview.models.ExtensionDataSource]
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleResource
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
-
- body = models.DataCollectionRuleResource(location=location, tags=tags, description=description, data_flows=data_flows, log_analytics=log_analytics, azure_monitor_metrics=azure_monitor_metrics, performance_counters=performance_counters, windows_event_logs=windows_event_logs, syslog=syslog, extensions=extensions)
- api_version = "2019-11-01-preview"
- content_type = kwargs.pop("content_type", "application/json")
- accept = "application/json"
-
- # Construct URL
- url = self.create.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- 'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- body_content_kwargs = {} # type: Dict[str, Any]
- if body is not None:
- body_content = self._serialize.body(body, 'DataCollectionRuleResource')
- else:
- body_content = None
- body_content_kwargs['content'] = body_content
- request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200, 201]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if response.status_code == 200:
- deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
-
- if response.status_code == 201:
- deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}'} # type: ignore
-
- def update(
- self,
- resource_group_name, # type: str
- data_collection_rule_name, # type: str
- tags=None, # type: Optional[Dict[str, str]]
- **kwargs # type: Any
- ):
- # type: (...) -> "models.DataCollectionRuleResource"
- """Updates part of a data collection rule.
-
- Updates part of a data collection rule.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :param data_collection_rule_name: The name of the data collection rule. The name is case
- insensitive.
- :type data_collection_rule_name: str
- :param tags: Resource tags.
- :type tags: dict[str, str]
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~$(python-base-namespace).v2019_11_01_preview.models.DataCollectionRuleResource
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
-
- body = models.ResourceForUpdate(tags=tags)
- api_version = "2019-11-01-preview"
- content_type = kwargs.pop("content_type", "application/json")
- accept = "application/json"
-
- # Construct URL
- url = self.update.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- 'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- body_content_kwargs = {} # type: Dict[str, Any]
- if body is not None:
- body_content = self._serialize.body(body, 'ResourceForUpdate')
- else:
- body_content = None
- body_content_kwargs['content'] = body_content
- request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
-
- if cls:
- return cls(pipeline_response, deserialized, {})
-
- return deserialized
- update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}'} # type: ignore
-
- def delete(
- self,
- resource_group_name, # type: str
- data_collection_rule_name, # type: str
- **kwargs # type: Any
- ):
- # type: (...) -> None
- """Deletes a data collection rule.
-
- Deletes a data collection rule.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- :type resource_group_name: str
- :param data_collection_rule_name: The name of the data collection rule. The name is case
- insensitive.
- :type data_collection_rule_name: str
- :keyword callable cls: A custom type or function that will be passed the direct response
- :return: None, or the result of cls(response)
- :rtype: None
- :raises: ~azure.core.exceptions.HttpResponseError
- """
- cls = kwargs.pop('cls', None) # type: ClsType[None]
- error_map = {
- 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
- }
- error_map.update(kwargs.pop('error_map', {}))
- api_version = "2019-11-01-preview"
- accept = "application/json"
-
- # Construct URL
- url = self.delete.metadata['url'] # type: ignore
- path_format_arguments = {
- 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- 'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str', max_length=64, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
- }
- url = self._client.format_url(url, **path_format_arguments)
-
- # Construct parameters
- query_parameters = {} # type: Dict[str, Any]
- query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
-
- # Construct headers
- header_parameters = {} # type: Dict[str, Any]
- header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
-
- request = self._client.delete(url, query_parameters, header_parameters)
- pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
- response = pipeline_response.http_response
-
- if response.status_code not in [200, 204]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponseautogenerated, response)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if cls:
- return cls(pipeline_response, None, {})
-
- delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}'} # type: ignore
diff --git a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rules_operations.py b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rules_operations.py
index bc468bda805..c67926e15f8 100644
--- a/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rules_operations.py
+++ b/src/monitor-control-service/azext_amcs/vendored_sdks/amcs/operations/_data_collection_rules_operations.py
@@ -30,7 +30,7 @@ class DataCollectionRulesOperations(object):
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
- :type models: ~azure.mgmt.amcs.models
+ :type models: ~$(python-base-namespace).v2021_09_01_preview.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
@@ -59,7 +59,7 @@ def list_by_resource_group(
:type resource_group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
@@ -67,7 +67,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -80,7 +80,7 @@ def prepare_request(next_link=None):
url = self.list_by_resource_group.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
@@ -108,7 +108,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -130,7 +130,7 @@ def list_by_subscription(
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either DataCollectionRuleResourceListResult or the result of cls(response)
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.amcs.models.DataCollectionRuleResourceListResult]
+ :rtype: ~azure.core.paging.ItemPaged[~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResourceListResult"]
@@ -138,7 +138,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
def prepare_request(next_link=None):
@@ -178,7 +178,7 @@ def get_next(next_link=None):
response = pipeline_response.http_response
if response.status_code not in [200]:
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
@@ -207,7 +207,7 @@ def get(
:type data_collection_rule_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -215,14 +215,14 @@ def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -241,7 +241,7 @@ def get(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
@@ -270,10 +270,10 @@ def create(
insensitive.
:type data_collection_rule_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -281,7 +281,7 @@ def create(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -289,7 +289,7 @@ def create(
url = self.create.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -315,7 +315,7 @@ def create(
if response.status_code not in [200, 201]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if response.status_code == 200:
@@ -348,10 +348,10 @@ def update(
insensitive.
:type data_collection_rule_name: str
:param body: The payload.
- :type body: ~azure.mgmt.amcs.models.ResourceForUpdate
+ :type body: ~$(python-base-namespace).v2021_09_01_preview.models.ResourceForUpdate
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DataCollectionRuleResource, or the result of cls(response)
- :rtype: ~azure.mgmt.amcs.models.DataCollectionRuleResource
+ :rtype: ~$(python-base-namespace).v2021_09_01_preview.models.DataCollectionRuleResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["models.DataCollectionRuleResource"]
@@ -359,7 +359,7 @@ def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"
@@ -367,7 +367,7 @@ def update(
url = self.update.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -393,7 +393,7 @@ def update(
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
deserialized = self._deserialize('DataCollectionRuleResource', pipeline_response)
@@ -430,14 +430,14 @@ def delete(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
- api_version = "2021-04-01"
+ api_version = "2021-09-01-preview"
accept = "application/json"
# Construct URL
url = self.delete.metadata['url'] # type: ignore
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
- 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
+ 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
'dataCollectionRuleName': self._serialize.url("data_collection_rule_name", data_collection_rule_name, 'str'),
}
url = self._client.format_url(url, **path_format_arguments)
@@ -456,7 +456,7 @@ def delete(
if response.status_code not in [200, 204]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = self._deserialize(models.ErrorResponse, response)
+ error = self._deserialize(models.ErrorResponseCommonV2, response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
if cls:
diff --git a/src/monitor-control-service/gen.zip b/src/monitor-control-service/gen.zip
deleted file mode 100644
index 5baa5297f9c..00000000000
Binary files a/src/monitor-control-service/gen.zip and /dev/null differ
diff --git a/src/monitor-control-service/report.md b/src/monitor-control-service/report.md
deleted file mode 100644
index af54dda63d9..00000000000
--- a/src/monitor-control-service/report.md
+++ /dev/null
@@ -1,184 +0,0 @@
-# Azure CLI Module Creation Report
-
-## EXTENSION
-|CLI Extension|Command Groups|
-|---------|------------|
-|az monitor-control-service|[groups](#CommandGroups)
-
-## GROUPS
-### Command groups in `az monitor-control-service` extension
-|CLI Command Group|Group Swagger name|Commands|
-|---------|------------|--------|
-|az monitor data-collection endpoint|DataCollectionEndpoints|[commands](#CommandsInDataCollectionEndpoints)|
-|az monitor data-collection rule|DataCollectionRules|[commands](#CommandsInDataCollectionRules)|
-|az monitor data-collection rule association|DataCollectionRuleAssociations|[commands](#CommandsInDataCollectionRuleAssociations)|
-
-## COMMANDS
-### Commands in `az monitor data-collection endpoint` group
-|CLI Command|Operation Swagger name|Parameters|Examples|
-|---------|------------|--------|-----------|
-|[az monitor data-collection endpoint list](#DataCollectionEndpointsListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersDataCollectionEndpointsListByResourceGroup)|[Example](#ExamplesDataCollectionEndpointsListByResourceGroup)|
-|[az monitor data-collection endpoint list](#DataCollectionEndpointsListBySubscription)|ListBySubscription|[Parameters](#ParametersDataCollectionEndpointsListBySubscription)|[Example](#ExamplesDataCollectionEndpointsListBySubscription)|
-|[az monitor data-collection endpoint show](#DataCollectionEndpointsGet)|Get|[Parameters](#ParametersDataCollectionEndpointsGet)|[Example](#ExamplesDataCollectionEndpointsGet)|
-|[az monitor data-collection endpoint delete](#DataCollectionEndpointsDelete)|Delete|[Parameters](#ParametersDataCollectionEndpointsDelete)|[Example](#ExamplesDataCollectionEndpointsDelete)|
-
-### Commands in `az monitor data-collection rule` group
-|CLI Command|Operation Swagger name|Parameters|Examples|
-|---------|------------|--------|-----------|
-|[az monitor data-collection rule list](#DataCollectionRulesListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersDataCollectionRulesListByResourceGroup)|[Example](#ExamplesDataCollectionRulesListByResourceGroup)|
-|[az monitor data-collection rule list](#DataCollectionRulesListBySubscription)|ListBySubscription|[Parameters](#ParametersDataCollectionRulesListBySubscription)|[Example](#ExamplesDataCollectionRulesListBySubscription)|
-|[az monitor data-collection rule show](#DataCollectionRulesGet)|Get|[Parameters](#ParametersDataCollectionRulesGet)|[Example](#ExamplesDataCollectionRulesGet)|
-|[az monitor data-collection rule delete](#DataCollectionRulesDelete)|Delete|[Parameters](#ParametersDataCollectionRulesDelete)|[Example](#ExamplesDataCollectionRulesDelete)|
-
-### Commands in `az monitor data-collection rule association` group
-|CLI Command|Operation Swagger name|Parameters|Examples|
-|---------|------------|--------|-----------|
-|[az monitor data-collection rule association list](#DataCollectionRuleAssociationsListByRule)|ListByRule|[Parameters](#ParametersDataCollectionRuleAssociationsListByRule)|[Example](#ExamplesDataCollectionRuleAssociationsListByRule)|
-|[az monitor data-collection rule association list](#DataCollectionRuleAssociationsListByResource)|ListByResource|[Parameters](#ParametersDataCollectionRuleAssociationsListByResource)|[Example](#ExamplesDataCollectionRuleAssociationsListByResource)|
-|[az monitor data-collection rule association show](#DataCollectionRuleAssociationsGet)|Get|[Parameters](#ParametersDataCollectionRuleAssociationsGet)|[Example](#ExamplesDataCollectionRuleAssociationsGet)|
-|[az monitor data-collection rule association delete](#DataCollectionRuleAssociationsDelete)|Delete|[Parameters](#ParametersDataCollectionRuleAssociationsDelete)|[Example](#ExamplesDataCollectionRuleAssociationsDelete)|
-
-
-## COMMAND DETAILS
-### group `az monitor data-collection endpoint`
-#### Command `az monitor data-collection endpoint list`
-
-##### Example
-```
-az monitor data-collection endpoint list --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-
-#### Command `az monitor data-collection endpoint list`
-
-##### Example
-```
-az monitor data-collection endpoint list
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-
-#### Command `az monitor data-collection endpoint show`
-
-##### Example
-```
-az monitor data-collection endpoint show --name "myCollectionEndpoint" --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-|**--data-collection-endpoint-name**|string|The name of the data collection endpoint. The name is case insensitive.|data_collection_endpoint_name|dataCollectionEndpointName|
-
-#### Command `az monitor data-collection endpoint delete`
-
-##### Example
-```
-az monitor data-collection endpoint delete --name "myCollectionEndpoint" --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-|**--data-collection-endpoint-name**|string|The name of the data collection endpoint. The name is case insensitive.|data_collection_endpoint_name|dataCollectionEndpointName|
-
-### group `az monitor data-collection rule`
-#### Command `az monitor data-collection rule list`
-
-##### Example
-```
-az monitor data-collection rule list --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-
-#### Command `az monitor data-collection rule list`
-
-##### Example
-```
-az monitor data-collection rule list
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-
-#### Command `az monitor data-collection rule show`
-
-##### Example
-```
-az monitor data-collection rule show --name "myCollectionRule" --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-|**--data-collection-rule-name**|string|The name of the data collection rule. The name is case insensitive.|data_collection_rule_name|dataCollectionRuleName|
-
-#### Command `az monitor data-collection rule delete`
-
-##### Example
-```
-az monitor data-collection rule delete --name "myCollectionRule" --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-|**--data-collection-rule-name**|string|The name of the data collection rule. The name is case insensitive.|data_collection_rule_name|dataCollectionRuleName|
-
-### group `az monitor data-collection rule association`
-#### Command `az monitor data-collection rule association list`
-
-##### Example
-```
-az monitor data-collection rule association list --rule-name "myCollectionRule" --resource-group "myResourceGroup"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-group-name**|string|The name of the resource group. The name is case insensitive.|resource_group_name|resourceGroupName|
-|**--data-collection-rule-name**|string|The name of the data collection rule. The name is case insensitive.|data_collection_rule_name|dataCollectionRuleName|
-
-#### Command `az monitor data-collection rule association list`
-
-##### Example
-```
-az monitor data-collection rule association list --resource "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourc\
-eGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-uri**|string|The identifier of the resource.|resource_uri|resourceUri|
-
-#### Command `az monitor data-collection rule association show`
-
-##### Example
-```
-az monitor data-collection rule association show --name "myAssociation" --resource "subscriptions/703362b3-f278-4e4b-91\
-79-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-uri**|string|The identifier of the resource.|resource_uri|resourceUri|
-|**--association-name**|string|The name of the association. The name is case insensitive.|association_name|associationName|
-
-#### Command `az monitor data-collection rule association delete`
-
-##### Example
-```
-az monitor data-collection rule association delete --name "myAssociation" --resource "subscriptions/703362b3-f278-4e4b-\
-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"
-```
-##### Parameters
-|Option|Type|Description|Path (SDK)|Swagger name|
-|------|----|-----------|----------|------------|
-|**--resource-uri**|string|The identifier of the resource.|resource_uri|resourceUri|
-|**--association-name**|string|The name of the association. The name is case insensitive.|association_name|associationName|
diff --git a/src/monitor-control-service/setup.py b/src/monitor-control-service/setup.py
index efbff42a818..7eb3a2e0ed5 100644
--- a/src/monitor-control-service/setup.py
+++ b/src/monitor-control-service/setup.py
@@ -10,7 +10,7 @@
from setuptools import setup, find_packages
# HISTORY.rst entry.
-VERSION = '0.2.0'
+VERSION = '0.3.0'
try:
from azext_amcs.manual.version import VERSION
except ImportError: