diff --git a/src/amg/.pylintrc b/src/amg/.pylintrc new file mode 100644 index 00000000000..2716e922e21 --- /dev/null +++ b/src/amg/.pylintrc @@ -0,0 +1,2 @@ +[MASTER] +ignore=vendored_sdks \ No newline at end of file diff --git a/src/amg/azext_amg/_help.py b/src/amg/azext_amg/_help.py index 118eed94f05..4256cce4680 100644 --- a/src/amg/azext_amg/_help.py +++ b/src/amg/azext_amg/_help.py @@ -33,6 +33,11 @@ short-summary: Show details of a Azure Managed Grafana instance. """ +helps['grafana update'] = """ + type: command + short-summary: Update a Azure Managed Grafana instance. +""" + helps['grafana data-source'] = """ type: group short-summary: Commands to manage data sources of an instance. @@ -255,3 +260,23 @@ type: command short-summary: show detail of a user. """ + +helps['grafana api-key'] = """ + type: group + short-summary: Commands to manage api keys. +""" + +helps['grafana api-key create'] = """ + type: command + short-summary: create a new api key. +""" + +helps['grafana api-key list'] = """ + type: command + short-summary: list existing api keys. +""" + +helps['grafana api-key delete'] = """ + type: command + short-summary: delete an api key. +""" diff --git a/src/amg/azext_amg/_params.py b/src/amg/azext_amg/_params.py index 61f28c0e39b..2539e3e4c04 100644 --- a/src/amg/azext_amg/_params.py +++ b/src/amg/azext_amg/_params.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable=line-too-long +# pylint: disable=line-too-long, too-many-statements def load_arguments(self, _): @@ -23,6 +23,7 @@ def load_arguments(self, _): c.argument("id", help=("The identifier (id) of a dashboard/data source is an auto-incrementing " "numeric value and is only unique per Grafana install.")) c.argument("folder", help="id, uid, title which can identify a folder. CLI will search in the order of id, uid, and title, till finds a match") + c.argument("api_key", help="api key, a randomly generated string used to interact with Grafana endpoint; if missing, CLI will use logon user's credentials") with self.argument_context("grafana create") as c: c.argument("grafana_name", grafana_name_type, options_list=["--name", "-n"], validator=None) @@ -31,6 +32,12 @@ def load_arguments(self, _): c.argument("skip_role_assignments", arg_type=get_three_state_flag(), help="Do not create role assignments for managed identity and the current login user") c.argument("principal_ids", nargs="+", help="space-separated Azure AD object ids for users, groups, etc to be made as Grafana Admins. Once provided, CLI won't make the current logon user as Grafana Admin") + # api_key=None, deterministic_outbound_ip=None, public_network_access=None + with self.argument_context("grafana update") as c: + c.argument("api_key", get_enum_type(["Enabled", "Disabled"]), help="If enabled, you will be able to configur Grafana api keys") + c.argument("deterministic_outbound_ip", get_enum_type(["Enabled", "Disabled"]), options_list=["-i", "--deterministic-outbound-ip"], + help="if enabled, the Grafana workspace will have fixed egress IPs you can use them in the firewall of datasources") + with self.argument_context("grafana dashboard") as c: c.argument("uid", options_list=["--dashboard"], help="dashboard uid") c.argument("title", help="title of a dashboard") @@ -45,6 +52,17 @@ def load_arguments(self, _): with self.argument_context("grafana dashboard import") as c: c.argument("definition", help="The complete dashboard model in json string, Grafana gallery id, a path or url to a file with such content") + with self.argument_context("grafana api-key") as c: + c.argument("key_name", help="api key name") + c.argument("role", get_enum_type(["Admin", "Editor", "Viewer"]), help="Grafana role name", default="Viewer") + c.argument("time_to_live", default="1d", help="The API key life duration. For example, 1d if your key is going to last fr one day. Supported units are: s,m,h,d,w,M,y") + + with self.argument_context("grafana api-key create") as c: + c.argument("key", help="api key name") + + with self.argument_context("grafana api-key delete") as c: + c.argument("key", help="id or name that identify an api-key to delete") + with self.argument_context("grafana data-source") as c: c.argument("data_source", help="name, id, uid which can identify a data source. CLI will search in the order of name, id, and uid, till finds a match") c.argument("definition", type=validate_file_or_dict, help="json string with data source definition, or a path to a file with such content") diff --git a/src/amg/azext_amg/azext_metadata.json b/src/amg/azext_amg/azext_metadata.json index 044f0f3f3f3..b68806c77db 100644 --- a/src/amg/azext_amg/azext_metadata.json +++ b/src/amg/azext_amg/azext_metadata.json @@ -1,5 +1,5 @@ { "azext.isPreview": true, - "azext.minCliCoreVersion": "2.30.0", + "azext.minCliCoreVersion": "2.38.0", "azext.maxCliCoreVersion": "2.99.0" } \ No newline at end of file diff --git a/src/amg/azext_amg/commands.py b/src/amg/azext_amg/commands.py index bc292ffc7b7..0b729ed4bd7 100644 --- a/src/amg/azext_amg/commands.py +++ b/src/amg/azext_amg/commands.py @@ -15,6 +15,7 @@ def load_command_table(self, _): g.custom_command('delete', 'delete_grafana', confirmation=True) g.custom_command('list', 'list_grafana') g.custom_show_command('show', 'show_grafana') + g.custom_command('update', 'update_grafana') with self.command_group('grafana dashboard') as g: g.custom_command('create', 'create_dashboard') @@ -51,3 +52,8 @@ def load_command_table(self, _): g.custom_command('list', 'list_users') g.custom_show_command('show', 'show_user') g.custom_command('actual-user', 'get_actual_user') + + with self.command_group('grafana api-key') as g: + g.custom_command('create', 'create_api_key') + g.custom_command('list', 'list_api_keys') + g.custom_command('delete', 'delete_api_key') diff --git a/src/amg/azext_amg/custom.py b/src/amg/azext_amg/custom.py index 20324584e1f..4299f585a2c 100644 --- a/src/amg/azext_amg/custom.py +++ b/src/amg/azext_amg/custom.py @@ -73,28 +73,40 @@ def create_grafana(cmd, resource_group_name, grafana_name, return resource +# for injecting test seams to produce predictable role assignment id for playback +def _gen_guid(): + import uuid + return uuid.uuid4() + + def _get_login_account_principal_id(cli_ctx): - from azure.cli.core._profile import Profile + from azure.graphrbac.models import GraphErrorException + from azure.cli.core._profile import Profile, _USER_ENTITY, _USER_TYPE, _SERVICE_PRINCIPAL, _USER_NAME from azure.graphrbac import GraphRbacManagementClient profile = Profile(cli_ctx=cli_ctx) cred, _, tenant_id = profile.get_login_credentials( resource=cli_ctx.cloud.endpoints.active_directory_graph_resource_id) client = GraphRbacManagementClient(cred, tenant_id, base_url=cli_ctx.cloud.endpoints.active_directory_graph_resource_id) - assignee = profile.get_current_account_user() - result = list(client.users.list(filter=f"userPrincipalName eq '{assignee}' or mail eq '{assignee}'")) - if not result: - result = list(client.service_principals.list( - filter=f"servicePrincipalNames/any(c:c eq '{assignee}')")) + active_account = profile.get_subscription() + assignee = active_account[_USER_ENTITY][_USER_NAME] + try: + if active_account[_USER_ENTITY][_USER_TYPE] == _SERVICE_PRINCIPAL: + result = list(client.service_principals.list( + filter=f"servicePrincipalNames/any(c:c eq '{assignee}')")) + else: + result = [client.signed_in_user.get()] + except GraphErrorException as ex: + logger.warning("Graph query error %s", ex) if not result: raise CLIInternalError((f"Failed to retrieve principal id for '{assignee}', which is needed to create a " f"role assignment. Consider using '--principal-ids' to bypass the lookup")) + return result[0].object_id def _create_role_assignment(cli_ctx, principal_id, role_definition_id, scope): import time - import uuid assignments_client = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_AUTHORIZATION).role_assignments RoleAssignmentCreateParameters = get_sdk(cli_ctx, ResourceType.MGMT_AUTHORIZATION, 'RoleAssignmentCreateParameters', mod='models', @@ -103,7 +115,7 @@ def _create_role_assignment(cli_ctx, principal_id, role_definition_id, scope): logger.info("Creating an assignment with a role '%s' on the scope of '%s'", role_definition_id, scope) retry_times = 36 - assignment_name = uuid.uuid4() + assignment_name = _gen_guid() for retry_time in range(0, retry_times): try: assignments_client.create(scope=scope, role_assignment_name=assignment_name, @@ -136,6 +148,27 @@ def list_grafana(cmd, resource_group_name=None): return client.grafana.list() +def update_grafana(cmd, grafana_name, api_key=None, deterministic_outbound_ip=None, resource_group_name=None, + tags=None): + if not api_key and not deterministic_outbound_ip and not tags: + raise ArgumentUsageError("--api-key | --deterministic-outbound-ip | --public-network-access") + + client = cf_amg(cmd.cli_ctx) + instance = client.grafana.get(resource_group_name, grafana_name) + + if api_key: + instance.properties.api_key = api_key + + if deterministic_outbound_ip: + instance.properties.deterministic_outbound_ip = deterministic_outbound_ip + + if tags: + instance.tags = tags + + # "begin_create" uses PUT, which handles both Create and Update + return client.grafana.begin_create(resource_group_name, grafana_name, instance) + + def show_grafana(cmd, grafana_name, resource_group_name=None): client = cf_amg(cmd.cli_ctx) return client.grafana.get(resource_group_name, grafana_name) @@ -155,17 +188,19 @@ def delete_grafana(cmd, grafana_name, resource_group_name=None): _delete_role_assignment(cmd.cli_ctx, grafana.identity.principal_id) -def show_dashboard(cmd, grafana_name, uid, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/dashboards/uid/" + uid) +def show_dashboard(cmd, grafana_name, uid, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/dashboards/uid/" + uid, + api_key=api_key) return json.loads(response.content) -def list_dashboards(cmd, grafana_name, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/search?type=dash-db") +def list_dashboards(cmd, grafana_name, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/search?type=dash-db", api_key=api_key) return json.loads(response.content) -def create_dashboard(cmd, grafana_name, definition, title=None, folder=None, resource_group_name=None, overwrite=None): +def create_dashboard(cmd, grafana_name, definition, title=None, folder=None, resource_group_name=None, + overwrite=None, api_key=None): if "dashboard" in definition: payload = definition else: @@ -187,19 +222,21 @@ def create_dashboard(cmd, grafana_name, definition, title=None, folder=None, res del payload['dashboard']['id'] response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/dashboards/db", - payload) + payload, api_key=api_key) return json.loads(response.content) -def update_dashboard(cmd, grafana_name, definition, folder=None, resource_group_name=None, overwrite=None): +def update_dashboard(cmd, grafana_name, definition, folder=None, resource_group_name=None, overwrite=None, + api_key=None): return create_dashboard(cmd, grafana_name, definition, folder=folder, resource_group_name=resource_group_name, - overwrite=overwrite) + overwrite=overwrite, api_key=api_key) -def import_dashboard(cmd, grafana_name, definition, folder=None, resource_group_name=None, overwrite=None): +def import_dashboard(cmd, grafana_name, definition, folder=None, resource_group_name=None, overwrite=None, + api_key=None): import copy - data = _try_load_dashboard_definition(cmd, resource_group_name, grafana_name, definition) + data = _try_load_dashboard_definition(cmd, resource_group_name, grafana_name, definition, api_key=api_key) if "dashboard" in data: payload = data else: @@ -228,17 +265,17 @@ def import_dashboard(cmd, grafana_name, definition, folder=None, resource_group_ logger.warning("No data source was found matching the required parameter of %s", parameter['pluginId']) response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/dashboards/import", - payload) + payload, api_key=api_key) return json.loads(response.content) -def _try_load_dashboard_definition(cmd, resource_group_name, grafana_name, definition): +def _try_load_dashboard_definition(cmd, resource_group_name, grafana_name, definition, api_key=None): import re try: int(definition) response = _send_request(cmd, resource_group_name, grafana_name, "get", - "/api/gnet/dashboards/" + str(definition)) + "/api/gnet/dashboards/" + str(definition), api_key=api_key) definition = json.loads(response.content)["json"] return definition except ValueError: @@ -257,115 +294,128 @@ def _try_load_dashboard_definition(cmd, resource_group_name, grafana_name, defin return definition -def delete_dashboard(cmd, grafana_name, uid, resource_group_name=None): - _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/dashboards/uid/" + uid) +def delete_dashboard(cmd, grafana_name, uid, resource_group_name=None, api_key=None): + _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/dashboards/uid/" + uid, + api_key=api_key) -def create_data_source(cmd, grafana_name, definition, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/datasources", definition) +def create_data_source(cmd, grafana_name, definition, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/datasources", definition, + api_key=api_key) return json.loads(response.content) -def show_data_source(cmd, grafana_name, data_source, resource_group_name=None): - return _find_data_source(cmd, resource_group_name, grafana_name, data_source) +def show_data_source(cmd, grafana_name, data_source, resource_group_name=None, api_key=None): + return _find_data_source(cmd, resource_group_name, grafana_name, data_source, api_key=api_key) -def delete_data_source(cmd, grafana_name, data_source, resource_group_name=None): +def delete_data_source(cmd, grafana_name, data_source, resource_group_name=None, api_key=None): data = _find_data_source(cmd, resource_group_name, grafana_name, data_source) - _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/datasources/uid/" + data["uid"]) + _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/datasources/uid/" + data["uid"], + api_key=api_key) -def list_data_sources(cmd, grafana_name, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/datasources") +def list_data_sources(cmd, grafana_name, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/datasources", + api_key=api_key) return json.loads(response.content) -def update_data_source(cmd, grafana_name, data_source, definition, resource_group_name=None): - data = _find_data_source(cmd, resource_group_name, grafana_name, data_source) +def update_data_source(cmd, grafana_name, data_source, definition, resource_group_name=None, api_key=None): + data = _find_data_source(cmd, resource_group_name, grafana_name, data_source, api_key=api_key) response = _send_request(cmd, resource_group_name, grafana_name, "put", "/api/datasources/" + str(data['id']), - definition) + definition, api_key=api_key) return json.loads(response.content) -def list_notification_channels(cmd, grafana_name, resource_group_name=None, short=False): +def list_notification_channels(cmd, grafana_name, resource_group_name=None, short=False, api_key=None): if short is False: - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications") + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications", + api_key=api_key) elif short is True: - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications/lookup") + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications/lookup", + api_key=api_key) return json.loads(response.content) -def show_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None): - return _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel) +def show_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None, api_key=None): + return _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel, api_key=api_key) -def create_notification_channel(cmd, grafana_name, definition, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/alert-notifications", definition) +def create_notification_channel(cmd, grafana_name, definition, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/alert-notifications", definition, + api_key=api_key) return json.loads(response.content) -def update_notification_channel(cmd, grafana_name, notification_channel, definition, resource_group_name=None): - data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel) +def update_notification_channel(cmd, grafana_name, notification_channel, definition, resource_group_name=None, + api_key=None): + data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel, api_key=api_key) definition['id'] = data['id'] response = _send_request(cmd, resource_group_name, grafana_name, "put", "/api/alert-notifications/" + str(data['id']), - definition) + definition, api_key=api_key) return json.loads(response.content) -def delete_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None): - data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel) - _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/alert-notifications/" + str(data["id"])) +def delete_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None, api_key=None): + data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel, api_key=api_key) + _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/alert-notifications/" + str(data["id"]), + api_key=api_key) -def test_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None): - data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel) +def test_notification_channel(cmd, grafana_name, notification_channel, resource_group_name=None, api_key=None): + data = _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel, api_key=api_key) response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/alert-notifications/test", - data) - return json.loads(response.content) + data, api_key=api_key) + return response -def create_folder(cmd, grafana_name, title, resource_group_name=None): +def create_folder(cmd, grafana_name, title, resource_group_name=None, api_key=None): payload = { "title": title } - response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/folders", payload) + response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/folders", payload, + api_key=api_key) return json.loads(response.content) -def list_folders(cmd, grafana_name, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders") +def list_folders(cmd, grafana_name, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders", + api_key=api_key) return json.loads(response.content) -def update_folder(cmd, grafana_name, folder, title, resource_group_name=None): - f = show_folder(cmd, grafana_name, folder, resource_group_name) +def update_folder(cmd, grafana_name, folder, title, resource_group_name=None, api_key=None): + f = show_folder(cmd, grafana_name, folder, resource_group_name, api_key=api_key) version = f['version'] data = { "title": title, "version": int(version) } - response = _send_request(cmd, resource_group_name, grafana_name, "put", "/api/folders/" + f["uid"], data) + response = _send_request(cmd, resource_group_name, grafana_name, "put", "/api/folders/" + f["uid"], data, + api_key=api_key) return json.loads(response.content) -def show_folder(cmd, grafana_name, folder, resource_group_name=None): - return _find_folder(cmd, resource_group_name, grafana_name, folder) +def show_folder(cmd, grafana_name, folder, resource_group_name=None, api_key=None): + return _find_folder(cmd, resource_group_name, grafana_name, folder, api_key=api_key) -def delete_folder(cmd, grafana_name, folder, resource_group_name=None): +def delete_folder(cmd, grafana_name, folder, resource_group_name=None, api_key=None): data = _find_folder(cmd, resource_group_name, grafana_name, folder) - _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/folders/" + data['uid']) + _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/folders/" + data['uid'], + api_key=api_key) -def _find_folder(cmd, resource_group_name, grafana_name, folder): +def _find_folder(cmd, resource_group_name, grafana_name, folder, api_key=None): response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders/id/" + folder, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400 or not json.loads(response.content)['uid']: response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders/" + folder, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders") + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/folders", api_key=api_key) if response.status_code >= 400: raise ArgumentUsageError(f"Could't find the folder '{folder}'. Ex: {response.status_code}") result = json.loads(response.content) @@ -380,18 +430,69 @@ def _find_folder(cmd, resource_group_name, grafana_name, folder): return json.loads(response.content) -def get_actual_user(cmd, grafana_name, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/user") +def list_api_keys(cmd, grafana_name, resource_group_name=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", + "/api/auth/keys?includedExpired=false&accesscontrol=true") return json.loads(response.content) -def list_users(cmd, grafana_name, resource_group_name=None): - response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/org/users") +def delete_api_key(cmd, grafana_name, key, resource_group_name=None): + # Find the key id based on name + try: + int(key) + except ValueError: + # looks like a key name is provided, need to convert to id to delete + keys = list_api_keys(cmd, grafana_name, resource_group_name=resource_group_name) + temp = next((k for k in keys if k['name'].lower() == key.lower()), None) + if temp: + key = str(temp['id']) + _send_request(cmd, resource_group_name, grafana_name, "delete", "/api/auth/keys/" + key) + + +def create_api_key(cmd, grafana_name, key, role=None, time_to_live=None, resource_group_name=None): + unit_to_seconds = { + "s": 1, + "m": 60, + "h": 3600, + "d": 3600 * 24, + "w": 3600 * 24 * 7, + "M": 3600 * 24 * 30, + "y": 3600 * 24 * 30 * 365 + } + unit_name = time_to_live[len(time_to_live) - 1:] + try: + if unit_name in unit_to_seconds: + seconds = int(time_to_live[: len(time_to_live) - 1]) * unit_to_seconds[unit_name] + else: + seconds = int(time_to_live) + except ValueError: + raise ArgumentUsageError("Please provide valid API key life duration") from None + + data = { + "name": key, + "role": role, + "secondsToLive": seconds + } + response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/auth/keys", data) + content = json.loads(response.content) + logger.warning("You will only be able to view this key here once. Please save it in a secure place.") + return content + + +def get_actual_user(cmd, grafana_name, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/user", api_key=api_key) + result = json.loads(response.content) + result.pop('isGrafanaAdmin', None) + return result + + +def list_users(cmd, grafana_name, resource_group_name=None, api_key=None): + response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/org/users", api_key=api_key) return json.loads(response.content) -def show_user(cmd, grafana_name, user, resource_group_name=None): - users = list_users(cmd, grafana_name, resource_group_name=resource_group_name) +def show_user(cmd, grafana_name, user, resource_group_name=None, api_key=None): + users = list_users(cmd, grafana_name, resource_group_name=resource_group_name, api_key=api_key) match = next((u for u in users if u['name'].lower() == user.lower()), None) if match: @@ -401,7 +502,7 @@ def show_user(cmd, grafana_name, user, resource_group_name=None): def query_data_source(cmd, grafana_name, data_source, time_from=None, time_to=None, max_data_points=100, internal_ms=1000, query_format=None, - conditions=None, resource_group_name=None): + conditions=None, resource_group_name=None, api_key=None): import datetime import time from dateutil import parser @@ -419,7 +520,7 @@ def query_data_source(cmd, grafana_name, data_source, time_from=None, time_to=No time_to = right_now time_to_epoch = str(time.mktime(time_to.timetuple()) * 1000) - data_source_id = _find_data_source(cmd, resource_group_name, grafana_name, data_source)["id"] + data_source_id = _find_data_source(cmd, resource_group_name, grafana_name, data_source, api_key=api_key)["id"] data = { "from": time_from_epoch, @@ -438,33 +539,33 @@ def query_data_source(cmd, grafana_name, data_source, time_from=None, time_to=No k, v = c.split("=", 1) data["queries"][0][k] = v - response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/ds/query", data) + response = _send_request(cmd, resource_group_name, grafana_name, "post", "/api/ds/query", data, api_key=api_key) return json.loads(response.content) -def _find_data_source(cmd, resource_group_name, grafana_name, data_source): +def _find_data_source(cmd, resource_group_name, grafana_name, data_source, api_key=None): response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/datasources/name/" + data_source, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/datasources/" + data_source, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/datasources/uid/" + data_source, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: raise ArgumentUsageError(f"Couldn't found data source {data_source}. Ex: {response.status_code}") return json.loads(response.content) -def _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel): +def _find_notification_channel(cmd, resource_group_name, grafana_name, notification_channel, api_key=None): response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications/" + notification_channel, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: response = _send_request(cmd, resource_group_name, grafana_name, "get", "/api/alert-notifications/uid/" + notification_channel, - raise_for_error_status=False) + raise_for_error_status=False, api_key=api_key) if response.status_code >= 400: raise ArgumentUsageError( f"Couldn't found notification channel {notification_channel}. Ex: {response.status_code}") @@ -481,7 +582,8 @@ def _try_load_file_content(file_content): return file_content -def _send_request(cmd, resource_group_name, grafana_name, http_method, path, body=None, raise_for_error_status=True): +def _send_request(cmd, resource_group_name, grafana_name, http_method, path, body=None, raise_for_error_status=True, + api_key=None): endpoint = grafana_endpoints.get(grafana_name) if not endpoint: grafana = show_grafana(cmd, grafana_name, resource_group_name) @@ -495,8 +597,11 @@ def _send_request(cmd, resource_group_name, grafana_name, http_method, path, bod amg_first_party_app = ("7f525cdc-1f08-4afa-af7c-84709d42f5d3" if "-ppe." in cmd.cli_ctx.cloud.endpoints.active_directory else "ce34e7e5-485f-4d76-964f-b3d2b16d1e4f") - creds, _, _ = profile.get_raw_token(subscription=subscription, - resource=amg_first_party_app) + if api_key: + creds = [None, api_key] + else: + creds, _, _ = profile.get_raw_token(subscription=subscription, + resource=amg_first_party_app) headers = { "content-type": "application/json", diff --git a/src/amg/azext_amg/tests/latest/recordings/test_amg_base.yaml b/src/amg/azext_amg/tests/latest/recordings/test_amg_base.yaml index 132b238e9f4..11b23030e8d 100644 --- a/src/amg/azext_amg/tests/latest/recordings/test_amg_base.yaml +++ b/src/amg/azext_amg/tests/latest/recordings/test_amg_base.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"sku": {"name": "Standard"}, "properties": {}, "identity": {"type": "SystemAssigned"}, - "tags": {"foo": "doo"}, "location": "westeurope"}' + "tags": {"foo": "doo"}, "location": "westcentralus"}' headers: Accept: - application/json @@ -12,37 +12,37 @@ interactions: Connection: - keep-alive Content-Length: - - '137' + - '140' Content-Type: - application/json ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","grafanaVersion":null,"endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","grafanaVersion":null,"endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' headers: api-supported-versions: - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 cache-control: - no-cache content-length: - - '868' + - '1055' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:07:58 GMT + - Fri, 29 Jul 2022 20:30:15 GMT etag: - - '"1b0008c7-0000-0d00-0000-62d6acad0000"' + - '"4100fb76-0000-0600-0000-62e443570000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 pragma: - no-cache request-context: @@ -72,23 +72,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:08:28 GMT + - Fri, 29 Jul 2022 20:30:45 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -118,23 +118,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:08:58 GMT + - Fri, 29 Jul 2022 20:31:15 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -164,23 +164,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:09:28 GMT + - Fri, 29 Jul 2022 20:31:45 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -210,23 +210,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:09:58 GMT + - Fri, 29 Jul 2022 20:32:16 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -256,23 +256,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:10:28 GMT + - Fri, 29 Jul 2022 20:32:46 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -302,23 +302,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:10:58 GMT + - Fri, 29 Jul 2022 20:33:16 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -348,23 +348,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:11:28 GMT + - Fri, 29 Jul 2022 20:33:45 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -394,23 +394,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:11:59 GMT + - Fri, 29 Jul 2022 20:34:15 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -440,23 +440,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Accepted","startTime":"2022-07-29T20:30:15.4543192Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '508' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:12:28 GMT + - Fri, 29 Jul 2022 20:34:45 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0006d4-0000-0600-0000-62e443570000"' expires: - '-1' pragma: @@ -486,23 +486,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"2ae061b6-4c02-4f9a-b290-a4df4e4142b8*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Succeeded","startTime":"2022-07-29T20:30:15.4543192Z","endTime":"2022-07-29T20:34:50.7776956Z","error":{},"properties":null}' headers: cache-control: - no-cache content-length: - - '504' + - '579' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:12:58 GMT + - Fri, 29 Jul 2022 20:35:16 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"5c0084ed-0000-0600-0000-62e4446a0000"' expires: - '-1' pragma: @@ -532,851 +532,23 @@ interactions: ParameterSetName: - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '504' + - '1006' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:13:28 GMT + - Fri, 29 Jul 2022 20:35:17 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:13:58 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:14:47 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:15:18 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:15:48 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:16:18 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:16:48 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:17:18 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:17:48 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:18:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:18:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:19:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:19:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:20:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:20:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:21:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:21:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:22:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:22:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"4100eb8b-0000-0600-0000-62e4446a0000"' expires: - '-1' pragma: @@ -1389,6 +561,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1396,45 +570,48 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana list Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}]}' headers: cache-control: - no-cache content-length: - - '504' + - '1018' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:23:19 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - Fri, 29 Jul 2022 20:35:18 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff + x-ms-original-request-ids: + - 439a3382-3601-4edb-ac92-8a73a74f568a + - 6d48934f-6fc9-45d1-b74f-70355f9a9e18 + - fb2727bc-0b57-4c56-94b0-1b03b183be85 + - 02ebe0b2-1f8c-4669-810a-f54876287dc6 + - 6f750ca0-bf90-410e-9242-b62e211a7fcd + - 97e96b02-aeb1-4973-81f2-6248b4682333 status: code: 200 message: OK @@ -1442,45 +619,46 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana list Connection: - keep-alive - ParameterSetName: - - -g -n -l --tags --skip-role-assignments User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/yugangwwcus","name":"yugangwwcus","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"haha":"v2az"},"systemData":{"createdBy":"yugangw@microsoft.com","createdByType":"User","createdAt":"2022-06-18T15:53:09.0679646Z","lastModifiedBy":"yugangw@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-22T21:34:59.4237545Z"},"identity":{"principalId":"72f1ec37-9f30-4329-8a24-b669fa665c7d","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://yugangwwcus-b2dyaqd5eygsdfcf.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/yugangw-to-delete","name":"yugangw-to-delete","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"eastus","tags":{},"systemData":{"createdBy":"yugangw@microsoft.com","createdByType":"User","createdAt":"2022-07-20T21:39:49.9369828Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:23:15.2346511Z"},"identity":{"principalId":"a0dd0135-6681-49fa-ae8a-5b908d3ffa72","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://yugangw-to-delete-fmgyerfpg9beg2b8.eus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}]}' headers: cache-control: - no-cache content-length: - - '504' + - '3057' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:23:49 GMT - etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - Fri, 29 Jul 2022 20:35:19 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - Accept-Encoding x-content-type-options: - nosniff + x-ms-original-request-ids: + - 6372ec97-162a-41db-8069-f11cb49cf1a5 + - 5185fb3c-24f3-4f78-9e10-1948f113c3de + - 2c488df9-c729-4e2b-b0bf-6bb2664bce84 + - 9521965b-99d0-4061-b1b6-8e1a971de026 + - 2a44773a-37a7-4001-a028-f20429f4d62e + - 77d9382d-c96a-403f-855d-93501abd18b6 status: code: 200 message: OK @@ -1488,33 +666,33 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana show Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '504' + - '1006' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:24:20 GMT + - Fri, 29 Jul 2022 20:35:19 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"4100eb8b-0000-0600-0000-62e4446a0000"' expires: - '-1' pragma: @@ -1527,6 +705,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1534,33 +714,33 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana update Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n --deterministic-outbound-ip --api-key User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:30:14.2675964Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '504' + - '1006' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:24:49 GMT + - Fri, 29 Jul 2022 20:35:20 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"4100eb8b-0000-0600-0000-62e4446a0000"' expires: - '-1' pragma: @@ -1573,44 +753,57 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK - request: - body: null + body: '{"sku": {"name": "Standard"}, "properties": {"publicNetworkAccess": "Enabled", + "zoneRedundancy": "Disabled", "apiKey": "Enabled", "deterministicOutboundIP": + "Enabled", "autoGeneratedDomainNameLabelScope": "TenantReuse"}, "identity": + {"type": "SystemAssigned"}, "tags": {"foo": "doo"}, "location": "westcentralus"}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana update Connection: - keep-alive + Content-Length: + - '313' + Content-Type: + - application/json ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n --deterministic-outbound-ip --api-key User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:21.1726416Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Enabled","deterministicOutboundIP":"Enabled","outboundIPs":["20.69.42.45","20.69.42.13"]}}' headers: + api-supported-versions: + - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 cache-control: - no-cache content-length: - - '504' + - '1082' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:25:19 GMT + - Fri, 29 Jul 2022 20:35:22 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"4100068e-0000-0600-0000-62e4448a0000"' expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:54fcb76e-7bac-4b3e-96f8-8868676d3826 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1619,6 +812,10 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK @@ -1626,33 +823,33 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana show Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T13:07:57.3507365Z"}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:21.1726416Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Enabled","deterministicOutboundIP":"Enabled","outboundIPs":["20.69.42.45","20.69.42.13"]}}' headers: cache-control: - no-cache content-length: - - '504' + - '1082' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:25:49 GMT + - Fri, 29 Jul 2022 20:35:22 GMT etag: - - '"3f00ef32-0000-0d00-0000-62d6acad0000"' + - '"4100068e-0000-0600-0000-62e4448a0000"' expires: - '-1' pragma: @@ -1665,6 +862,8 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK @@ -1672,33 +871,33 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana update Connection: - keep-alive ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n --deterministic-outbound-ip --api-key User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"c8aea27a-fb87-4b65-b9cf-b4794b3d071c*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-07-19T13:07:57.3507365Z","endTime":"2022-07-19T13:26:00.2769755Z","error":{},"properties":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:21.1726416Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Enabled","deterministicOutboundIP":"Enabled","outboundIPs":["20.69.42.45","20.69.42.13"]}}' headers: cache-control: - no-cache content-length: - - '575' + - '1082' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:19 GMT + - Fri, 29 Jul 2022 20:35:22 GMT etag: - - '"3f003035-0000-0d00-0000-62d6b0e80000"' + - '"4100068e-0000-0600-0000-62e4448a0000"' expires: - '-1' pragma: @@ -1711,44 +910,57 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff + x-ms-providerhub-traffic: + - 'True' status: code: 200 message: OK - request: - body: null + body: '{"sku": {"name": "Standard"}, "properties": {"publicNetworkAccess": "Enabled", + "zoneRedundancy": "Disabled", "apiKey": "Disabled", "deterministicOutboundIP": + "Disabled", "autoGeneratedDomainNameLabelScope": "TenantReuse"}, "identity": + {"type": "SystemAssigned"}, "tags": {"foo": "doo"}, "location": "westcentralus"}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - grafana create + - grafana update Connection: - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json ParameterSetName: - - -g -n -l --tags --skip-role-assignments + - -g -n --deterministic-outbound-ip --api-key User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:24.0028Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' headers: + api-supported-versions: + - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 cache-control: - no-cache content-length: - - '872' + - '1056' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:19 GMT + - Fri, 29 Jul 2022 20:35:24 GMT etag: - - '"1b0065e6-0000-0d00-0000-62d6b0e80000"' + - '"4100348e-0000-0600-0000-62e4448c0000"' expires: - '-1' pragma: - no-cache + request-context: + - appId=cid-v1:54fcb76e-7bac-4b3e-96f8-8868676d3826 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1759,98 +971,8 @@ interactions: - nosniff x-ms-providerhub-traffic: - 'True' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana list - Connection: - - keep-alive - ParameterSetName: - - -g - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '884' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:26:21 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: - - 3a1c31f5-27f5-4df2-b191-08037c0e33ea - - 490b68bb-d622-4427-8af2-02d7ad8cab97 - - ef24c91b-8119-4e23-b72c-03bef95f6b33 - - af60d56a-f917-4106-9617-b2f2fd378cfc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana list - Connection: - - keep-alive - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amg-test/providers/Microsoft.Dashboard/grafana/amg-test-grafana","name":"amg-test-grafana","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-18T14:17:58.934605Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-18T14:17:58.934605Z"},"identity":{"principalId":"0433a85e-994f-487e-8726-10d0c079c1fa","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://amg-test-grafana-d2bbecdjddctg4hq.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '1752' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 13:26:22 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: - - dbd71c4f-9edb-408d-879c-87438b9100b3 - - fdfbcb4b-4f34-4ffb-a072-354859aa2d3a - - 5d068aef-55ef-48e8-a7d0-27ccea926802 - - 255f7df3-e321-427c-89ba-05d6e0c4c7e4 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' status: code: 200 message: OK @@ -1868,23 +990,23 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:24.0028Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' headers: cache-control: - no-cache content-length: - - '872' + - '1056' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:22 GMT + - Fri, 29 Jul 2022 20:35:24 GMT etag: - - '"1b0065e6-0000-0d00-0000-62d6b0e80000"' + - '"4100348e-0000-0600-0000-62e4448c0000"' expires: - '-1' pragma: @@ -1916,23 +1038,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T13:07:56.7126141Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T13:07:56.7126141Z"},"identity":{"principalId":"4d444b81-454f-4470-aa59-3b9a6c2602b2","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","name":"clitestamg2","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"foo":"doo"},"systemData":{"createdBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","createdByType":"Application","createdAt":"2022-07-29T20:30:14.2675964Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:35:24.0028Z"},"identity":{"principalId":"a88a8fc2-c4ac-416e-86a7-c21682d26053","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg2-avhnfvgwe8fvasek.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' headers: cache-control: - no-cache content-length: - - '872' + - '1056' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:24 GMT + - Fri, 29 Jul 2022 20:35:26 GMT etag: - - '"1b0065e6-0000-0d00-0000-62d6b0e80000"' + - '"4100348e-0000-0600-0000-62e4448c0000"' expires: - '-1' pragma: @@ -1966,9 +1088,9 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2?api-version=2022-08-01 response: body: string: 'null' @@ -1976,7 +1098,7 @@ interactions: api-supported-versions: - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 cache-control: - no-cache content-length: @@ -1984,13 +1106,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:25 GMT + - Fri, 29 Jul 2022 20:35:26 GMT etag: - - '"1b002fe7-0000-0d00-0000-62d6b1010000"' + - '"41006a8e-0000-0600-0000-62e4448e0000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 pragma: - no-cache request-context: @@ -2020,23 +1142,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:26:55 GMT + - Fri, 29 Jul 2022 20:35:56 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2062,23 +1184,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:27:25 GMT + - Fri, 29 Jul 2022 20:36:26 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2104,23 +1226,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:27:56 GMT + - Fri, 29 Jul 2022 20:36:56 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2146,23 +1268,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:28:25 GMT + - Fri, 29 Jul 2022 20:37:26 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2188,23 +1310,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:28:55 GMT + - Fri, 29 Jul 2022 20:37:57 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2230,23 +1352,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:29:25 GMT + - Fri, 29 Jul 2022 20:38:27 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2272,23 +1394,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:29:55 GMT + - Fri, 29 Jul 2022 20:38:56 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2314,23 +1436,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:30:26 GMT + - Fri, 29 Jul 2022 20:39:26 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2356,23 +1478,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T13:26:25.7298122Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Deleting","startTime":"2022-07-29T20:35:26.7028243Z","error":{}}' headers: cache-control: - no-cache content-length: - - '515' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:30:56 GMT + - Fri, 29 Jul 2022 20:39:56 GMT etag: - - '"3f004635-0000-0d00-0000-62d6b1090000"' + - '"5c00c7f1-0000-0600-0000-62e444930000"' expires: - '-1' pragma: @@ -2398,23 +1520,23 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","name":"9505bdba-c7f2-464c-aca9-5fad324c4128*7412A740E969FD3113235B7BAF34ED171117D834A6DC29FBF08FDA1120334DB2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-07-19T13:26:25.7298122Z","endTime":"2022-07-19T13:31:06.3833089Z","error":{},"properties":null}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","name":"d7541af4-af10-423d-b631-9fd86a0cb23c*79850F3117CE7C3962CD507CAB3960CD0EE9119A22E0713F826944ECF668F80E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg2","status":"Succeeded","startTime":"2022-07-29T20:35:26.7028243Z","endTime":"2022-07-29T20:40:04.600525Z","error":{},"properties":null}' headers: cache-control: - no-cache content-length: - - '575' + - '578' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:31:26 GMT + - Fri, 29 Jul 2022 20:40:27 GMT etag: - - '"3f00d035-0000-0d00-0000-62d6b21a0000"' + - '"5d00f307-0000-0600-0000-62e445a40000"' expires: - '-1' pragma: @@ -2444,12 +1566,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.37.0 (MSI) accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments?$filter=principalId%20eq%20%274d444b81-454f-4470-aa59-3b9a6c2602b2%27&api-version=2020-04-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments?$filter=principalId%20eq%20%27a88a8fc2-c4ac-416e-86a7-c21682d26053%27&api-version=2020-04-01-preview response: body: string: '{"value":[]}' @@ -2461,7 +1583,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:31:26 GMT + - Fri, 29 Jul 2022 20:40:28 GMT expires: - '-1' pragma: @@ -2491,21 +1613,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amg-test/providers/Microsoft.Dashboard/grafana/amg-test-grafana","name":"amg-test-grafana","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-18T14:17:58.934605Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-18T14:17:58.934605Z"},"identity":{"principalId":"0433a85e-994f-487e-8726-10d0c079c1fa","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://amg-test-grafana-d2bbecdjddctg4hq.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/yugangwwcus","name":"yugangwwcus","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","tags":{"haha":"v2az"},"systemData":{"createdBy":"yugangw@microsoft.com","createdByType":"User","createdAt":"2022-06-18T15:53:09.0679646Z","lastModifiedBy":"yugangw@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-22T21:34:59.4237545Z"},"identity":{"principalId":"72f1ec37-9f30-4329-8a24-b669fa665c7d","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://yugangwwcus-b2dyaqd5eygsdfcf.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/yugangw-to-delete","name":"yugangw-to-delete","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"eastus","tags":{},"systemData":{"createdBy":"yugangw@microsoft.com","createdByType":"User","createdAt":"2022-07-20T21:39:49.9369828Z","lastModifiedBy":"96a728d6-98b0-46ce-8bd7-01f677f82483","lastModifiedByType":"Application","lastModifiedAt":"2022-07-29T20:23:15.2346511Z"},"identity":{"principalId":"a0dd0135-6681-49fa-ae8a-5b908d3ffa72","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://yugangw-to-delete-fmgyerfpg9beg2b8.eus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}]}' headers: cache-control: - no-cache content-length: - - '879' + - '2050' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 13:31:27 GMT + - Fri, 29 Jul 2022 20:40:28 GMT expires: - '-1' pragma: @@ -2517,10 +1639,12 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 67c1383d-565e-478e-8248-e961da7a6198 - - 7aa37b8d-1333-4a31-9dd0-bb890950c4f2 - - 677824bf-f3aa-4994-b070-d7e8f744e4ea - - c8351fbb-6d7b-4247-a089-9f464c063227 + - 59413879-c758-492f-aca0-9a181095fb68 + - e75f5dee-f217-4dd8-8a80-80d37eff5ba1 + - 1249ba62-993f-48bb-8ab1-3b61e9a2cdeb + - 0e7aba2c-24bb-4564-9fd5-707bfba2ceb9 + - 0b9e8278-7d51-4adf-8329-b747fe161f35 + - 4c6aecb8-1461-477f-b32c-6dae29afb152 status: code: 200 message: OK diff --git a/src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml b/src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml index 3b25f19326e..6f2e5fe2559 100644 --- a/src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml +++ b/src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml @@ -18,31 +18,31 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","grafanaVersion":null,"endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","grafanaVersion":null,"endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' headers: api-supported-versions: - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 cache-control: - no-cache content-length: - - '868' + - '1000' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:35:47 GMT + - Sat, 06 Aug 2022 04:50:48 GMT etag: - - '"1b00888f-0000-0d00-0000-62d6a5230000"' + - '"0700fe99-0000-0d00-0000-62edf3270000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 pragma: - no-cache request-context: @@ -72,1095 +72,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:36:17 GMT + - Sat, 06 Aug 2022 04:51:18 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:36:47 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:37:17 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:37:47 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:38:17 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:38:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:39:17 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:39:47 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:40:17 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:40:47 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:41:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:41:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:42:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:42:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:43:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:43:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:44:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:44:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:45:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:45:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:46:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:46:49 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:47:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:47:48 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - grafana create - Connection: - - keep-alive - ParameterSetName: - - -g -n -l --tags - User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview - response: - body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' - headers: - cache-control: - - no-cache - content-length: - - '504' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Jul 2022 12:48:18 GMT - etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1190,23 +118,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:48:48 GMT + - Sat, 06 Aug 2022 04:51:49 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1236,23 +164,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:49:19 GMT + - Sat, 06 Aug 2022 04:52:19 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1282,23 +210,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:49:49 GMT + - Sat, 06 Aug 2022 04:52:49 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1328,23 +256,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:50:19 GMT + - Sat, 06 Aug 2022 04:53:19 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1374,23 +302,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:50:49 GMT + - Sat, 06 Aug 2022 04:53:49 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1420,23 +348,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:51:19 GMT + - Sat, 06 Aug 2022 04:54:19 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1466,23 +394,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-07-19T12:35:47.5244283Z"}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Accepted","startTime":"2022-08-06T04:50:46.93844Z"}' headers: cache-control: - no-cache content-length: - - '504' + - '502' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:51:49 GMT + - Sat, 06 Aug 2022 04:54:49 GMT etag: - - '"3f00f22e-0000-0d00-0000-62d6a5230000"' + - '"7a00a28e-0000-0d00-0000-62edf3270000"' expires: - '-1' pragma: @@ -1512,23 +440,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"7d072711-1f43-4196-8323-78201fdd45ce*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-07-19T12:35:47.5244283Z","endTime":"2022-07-19T12:52:12.5022404Z","error":{},"properties":null}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"def18947-1121-4b0c-9e04-01f964c15527*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-08-06T04:50:46.93844Z","endTime":"2022-08-06T04:55:06.5566598Z","error":{},"properties":null}' headers: cache-control: - no-cache content-length: - - '575' + - '573' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:19 GMT + - Sat, 06 Aug 2022 04:55:19 GMT etag: - - '"3f00dd30-0000-0d00-0000-62d6a8fc0000"' + - '"7a009798-0000-0d00-0000-62edf42a0000"' expires: - '-1' pragma: @@ -1558,23 +486,23 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '872' + - '951' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:19 GMT + - Sat, 06 Aug 2022 04:55:20 GMT etag: - - '"1b001daa-0000-0d00-0000-62d6a8fc0000"' + - '"07003b9b-0000-0d00-0000-62edf42a0000"' expires: - '-1' pragma: @@ -1602,40 +530,58 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-graphrbac/0.60.0 Azure-SDK-For-Python + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-graphrbac/0.60.0 + Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/users?$filter=userPrincipalName%20eq%20%27michelletaal%40hotmail.com%27%20or%20mail%20eq%20%27michelletaal%40hotmail.com%27&api-version=1.6 - response: - body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"ed86bea3-5154-4d06-839b-11ced3dc0557","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"consentProvidedForMinor":null,"country":null,"createdDateTime":"2022-03-04T13:39:33Z","creationType":null,"department":null,"dirSyncEnabled":null,"displayName":"michelletaal@hotmail.com","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Michelle","immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"legalAgeGroupClassification":null,"mail":"michelletaal@hotmail.com","mailNickname":"michelletaal_hotmail.com#EXT#","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":["michelletaal@hotmail.com"],"passwordPolicies":null,"passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":"en","provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":["SMTP:michelletaal@hotmail.com"],"refreshTokensValidFromDateTime":"2022-03-04T13:39:33Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":"Taal","telephoneNumber":null,"thumbnailPhoto@odata.mediaEditLink":"directoryObjects/ed86bea3-5154-4d06-839b-11ced3dc0557/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":"NL","userIdentities":[],"userPrincipalName":"michelletaal_hotmail.com#EXT#@michelletaalhotmail.onmicrosoft.com","userState":null,"userStateChangedOn":null,"userType":"Member"}]}' + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"a30db067-cde1-49be-95bb-9619a8cc8617","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[{"disabledPlans":["b76fb638-6ba6-402a-b9f9-83d28acb3d86","cd31b152-6326-4d1b-ae1b-997b625182e6","a413a9ff-720c-4822-98ef-2f37c2a21f4c","a6520331-d7d4-4276-95f5-15c0933bc757","ded3d325-1bdc-453e-8432-5bac26d7a014","afa73018-811e-46e9-988f-f75d2b1b8430","b21a6b06-1988-436e-a07b-51ec6d9f52ad","531ee2f8-b1cb-453b-9c21-d2180d014ca5","bf28f719-7844-4079-9c78-c1307898e192","28b0fa46-c39a-4188-89e2-58e979a6b014","199a5c09-e0ca-4e37-8f7c-b05d533e1ea2","65cc641f-cccd-4643-97e0-a17e3045e541","e26c2fcc-ab91-4a61-b35c-03cdc8dddf66","46129a58-a698-46f0-aa5b-17f6586297d9","6db1f1db-2b46-403f-be40-e39395f08dbb","6dc145d6-95dd-4191-b9c3-185575ee6f6b","41fcdd7d-4733-4863-9cf4-c65b83ce2df4","c4801e8a-cb58-4c35-aca6-f2dcc106f287","0898bdbb-73b0-471a-81e5-20f1fe4dd66e","617b097b-4b93-4ede-83de-5f075bb5fb2f","33c4f319-9bdd-48d6-9c4d-410b750a4a5a","4828c8ec-dc2e-4779-b502-87ac9ce28ab7","3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":["b622badb-1b45-48d5-920f-4b27a2c0996c"],"skuId":"3d957427-ecdc-4df2-aacd-01cc9d519da8"},{"disabledPlans":[],"skuId":"85aae730-b3d1-4f99-bb28-c9f81b05137c"},{"disabledPlans":[],"skuId":"9f3d9c1d-25a5-4aaa-8e59-23a1e6450a67"},{"disabledPlans":["39b5c996-467e-4e60-bd62-46066f572726"],"skuId":"90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"09015f9f-377f-4538-bbb5-f75ceb09358a"},{"disabledPlans":[],"skuId":"f30db892-07e9-47e9-837c-80727f46fd3d"},{"disabledPlans":[],"skuId":"34715a50-7d92-426f-99e9-f815e0ae1de5"},{"disabledPlans":[],"skuId":"26a18e8f-4d14-46f8-835a-ed3ba424a961"},{"disabledPlans":[],"skuId":"412ce1a7-a499-41b3-8eb6-b38f2bbc5c3f"},{"disabledPlans":[],"skuId":"488ba24a-39a9-4473-8ee5-19291e71b002"},{"disabledPlans":[],"skuId":"b05e124f-c7cc-45a0-a6aa-8cf78c946968"},{"disabledPlans":["0b03f40b-c404-40c3-8651-2aceb74365fa","b650d915-9886-424b-a08d-633cede56f57","e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72","fe71d6c3-a2ea-4499-9778-da042bf08063","fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"],"skuId":"ea126fc5-a19e-42e2-a731-da9d437bffcf"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"}],"assignedPlans":[{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WindowsUpdateforBusinessCloudExtensions","servicePlanId":"7bf960f6-2cd9-443a-8046-5dbff9558365"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"18fa3aba-b085-4105-87d7-55617b8585e6"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ERP","servicePlanId":"69f07c66-bee4-4222-b051-195095efee5b"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"0a05d977-a21a-45b2-91ce-61c240dbafa2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"7e6d7d78-73de-46ba-83b1-6d25117334ba"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WorkplaceAnalytics","servicePlanId":"f477b0f0-3bb1-4890-940c-40fcee6ce05f"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"f3d5636e-ddc2-41bf-bba6-ca6fadece269"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftPrint","servicePlanId":"795f6fe0-cc4d-4773-b050-5dde4dc704c9"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftFormsProTest","servicePlanId":"97f29a83-1a20-44ff-bf48-5e4ad11f3e51"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"DYN365AISERVICEINSIGHTS","servicePlanId":"1412cdc1-d593-4ad1-9050-40c30ad0b023"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"818523f5-016b-4355-9be8-ed6944946ea7"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"fa200448-008c-4acb-abd4-ea106ed2199d"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"50554c47-71d9-49fd-bc54-42a2765c555c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"fe47a034-ab6d-4cb4-bdb4-9551354b177e"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"018fb91e-cee3-418c-9063-d7562978bdaf"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"ca4be917-fbce-4b52-839e-6647467a1668"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WindowsDefenderATP","servicePlanId":"871d91ec-ec1a-452b-a83f-bd76c7d770ef"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Windows","servicePlanId":"e7c91390-7625-45be-94e0-e16907e03118"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AzureAdvancedThreatAnalytics","servicePlanId":"14ab5db5-e6c4-4b20-b4bc-13e36fd2227f"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"5689bec4-755d-4753-8b61-40975025187c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"2e2ddb96-6af9-4b1d-a3f0-d6ecfd22edb2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Netbreeze","servicePlanId":"03acaee3-9492-4f40-aed4-bcb6b32981b6"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"d56f3deb-50d8-465a-bedb-f079817ccac1"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"eec0eb4f-6444-4f95-aba0-50c24d67f998"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SCO","servicePlanId":"c1ec4a95-1f05-45b3-a911-aa3fa01094f5"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"2d589a15-b171-4e61-9b5f-31d15eeb2872"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"59231cdf-b40d-4534-a93e-14d0cd31d27e"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"199a5c09-e0ca-4e37-8f7c-b05d533e1ea2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b622badb-1b45-48d5-920f-4b27a2c0996c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2021-04-15T15:12:57Z","capabilityStatus":"Deleted","service":"MIPExchangeSolutions","servicePlanId":"cd31b152-6326-4d1b-ae1b-997b625182e6"},{"assignedTimestamp":"2020-12-22T01:12:21Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"2f442157-a11c-46b9-ae5b-6e39ff4e5849"},{"assignedTimestamp":"2020-11-03T16:30:18Z","capabilityStatus":"Deleted","service":"M365CommunicationCompliance","servicePlanId":"a413a9ff-720c-4822-98ef-2f37c2a21f4c"},{"assignedTimestamp":"2020-08-14T15:32:15Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2019-11-04T20:01:59Z","capabilityStatus":"Enabled","service":"WhiteboardServices","servicePlanId":"4a51bca5-1eff-43f5-878c-177680f191af"},{"assignedTimestamp":"2019-10-14T20:43:01Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"5136a095-5cf0-4aff-bec3-e84448b38ea5"},{"assignedTimestamp":"2019-10-14T20:43:01Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb0351d-3b08-4503-993d-383af8de41e3"},{"assignedTimestamp":"2019-03-27T23:17:23Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"50e68c76-46c6-4674-81f9-75456511b170"},{"assignedTimestamp":"2019-03-27T23:17:23Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"17ab22cd-a0b3-4536-910a-cb6eb12696c0"},{"assignedTimestamp":"2018-11-30T00:32:45Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b1188c4c-1b36-4018-b48b-ee07604f6feb"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"5a10155d-f5c1-411a-a8ec-e99aae125390"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"159f4cd6-e380-449f-a816-af1a9ef76344"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"2bdbaf8f-738f-4ac7-9234-3c3ee2ce7d0f"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"da792a53-cbc0-4184-a10d-e544dd34b3c1"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2018-03-20T02:14:40Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2018-01-09T10:35:29Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2017-12-31T03:27:36Z","capabilityStatus":"Deleted","service":"Adallom","servicePlanId":"932ad362-64a8-4783-9106-97849a1a30b9"},{"assignedTimestamp":"2017-12-17T18:29:20Z","capabilityStatus":"Enabled","service":"To-Do","servicePlanId":"3fb82609-8c27-4f7b-bd51-30634711ee67"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"ProcessSimple","servicePlanId":"76846ad7-7776-4c40-a281-a386362dd1b9"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"PowerAppsService","servicePlanId":"c68f8d98-5534-41c8-bf36-22fa496fa792"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"9e700747-8b1d-45e5-ab8d-ef187ceec156"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"2789c901-c14e-48ab-a76a-be334d9d793a"},{"assignedTimestamp":"2017-07-06T19:19:57Z","capabilityStatus":"Enabled","service":"OfficeForms","servicePlanId":"e212cbc7-0961-4c40-9825-01117710dcb1"},{"assignedTimestamp":"2017-06-12T08:23:48Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"6c6042f5-6f01-4d67-b8c1-eb99d36eed3e"},{"assignedTimestamp":"2017-05-12T23:33:35Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"8e0c0a52-6a6c-4d40-8370-dd62790dcd70"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-12-19T03:16:33Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-11-18T18:51:08Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-11-18T18:51:08Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2012-10-10T07:21:11Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"},{"assignedTimestamp":"2015-07-30T06:17:13Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"27216c54-caf8-4d0d-97e2-517afb5c08f6"}],"city":"REDMOND","companyName":"Microsoft","consentProvidedForMinor":null,"country":null,"createdDateTime":null,"creationType":null,"department":"Azure + Dev Exp","dirSyncEnabled":true,"displayName":"Yugang Wang","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Yugang","immutableId":"138058","isCompromised":null,"jobTitle":"PRINCIPAL + SWE MGR","lastDirSyncTime":"2022-07-30T02:00:31Z","legalAgeGroupClassification":null,"mail":"example@example.com","mailNickname":"yugangw","mobile":null,"onPremisesDistinguishedName":"CN=Yugang + Wang,OU=MSE,OU=Users,OU=CoreIdentity,DC=redmond,DC=corp,DC=microsoft,DC=com","onPremisesSecurityIdentifier":"S-1-5-21-2127521184-1604012920-1887927527-415191","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"18/3700FL","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Netbreeze"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["X500:/O=Nokia/OU=HUB/cn=Recipients/cn=yugangw","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=sdflabs.com-51490-Yugang + Wang (Volt)e3d6fb0c","X500:/o=microsoft/ou=northamerica/cn=Recipients/cn=572513","X500:/o=microsoft/ou=First + Administrative Group/cn=Recipients/cn=yugangw","X500:/o=microsoft/ou=External + (FYDIBOHF25SPDLT)/cn=Recipients/cn=0e00e165bf5842568a693fea3aa4faad","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=yugangw_microsoft.com","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=sdflabs.com-51490-Yugang + Wang","X500:/o=SDF/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=51490-yugangw_c50b13e019","X500:/o=MSNBC/ou=Servers/cn=Recipients/cn=yugangw","X500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=yugangw17d63dbbde","X500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=microsoft.onmicrosoft.com-55760-Yugang + Wang (Volt)","X500:/O=Microsoft/OU=APPS-WGA/cn=Recipients/cn=yugangw","X500:/o=MMS/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Yugang Wang5ec8094e-2aed-488b-a327-9baed3c38367","SMTP:example@example.com","smtp:a-ywang2@microsoft.com","smtp:yugangw@msg.microsoft.com","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Yugang Wang (Volt)","smtp:YUGANGW@service.microsoft.com"],"refreshTokensValidFromDateTime":"2019-08-29T00:11:39Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":"example@example.com","state":null,"streetAddress":null,"surname":"Wang","telephoneNumber":"+1 + (425) 7069936","thumbnailPhoto@odata.mediaEditLink":"directoryObjects/a30db067-cde1-49be-95bb-9619a8cc8617/Microsoft.DirectoryServices.User/thumbnailPhoto","thumbnailPhoto@odata.mediaContentType":"image/Jpeg","usageLocation":"US","userIdentities":[],"userPrincipalName":"example@example.com","userState":null,"userStateChangedOn":null,"userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Qing + Ye","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"128505","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"QINGYE","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P10040929","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"72580592","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"10040929","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1010","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"18","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"98052","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"WA","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"REDMOND","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"1 + Microsoft Way","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"17","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"138058"}' headers: access-control-allow-origin: - '*' cache-control: - no-cache content-length: - - '1707' + - '23104' content-type: - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 dataserviceversion: - 3.0; date: - - Tue, 19 Jul 2022 12:52:20 GMT + - Sat, 06 Aug 2022 04:55:21 GMT duration: - - '727151' + - '4106078' expires: - '-1' ocp-aad-diagnostics-server-name: - - wKWYwfcIoudL9/PbctyO4nmLtvMwkrOFVlx5XDA6nj8= + - 1zZD+QG4TfLMztBergYr4rMwS+maxuQmrhImOucvvj8= ocp-aad-session-key: - - bCM_DfHyKwak_NN18cn49ICKUEz7F8tS4TD--gXpdBoTHmwp24dJVk9v8mQz-hNgIRPLS1j57AWDEc8jZw3Tqxw81nX4hMqRItMNhLLR8Cn_406UfkBP4HXIe5HpzHIJ.docDDQhUP7ibTH0_L8ku1wkfE0xAXvLlaklL1hv-YOQ + - S9bIogM3Htg_Afs3YTlxUjjG_-prheKRZ-3-PFg1Uzt-olTg3BC3FVD26cmAMHXRod4xPxFqyTWQGce9q1BiKzIv0042mnxkZXgU342Wgwlv_7h6257ntdf0uGkv9JTS.utE86Uk2tZepmgIKRHQbm1RvDeBQsBR5alD2TRBJ6D8 pragma: - no-cache request-id: - - 3470a1e4-4b79-420f-b503-78d1fe248846 + - 4e80ce01-7f96-4014-ac40-cee025174ec9 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1643,7 +589,7 @@ interactions: x-ms-dirapi-data-contract-version: - '1.6' x-ms-resource-unit: - - '2' + - '1' x-powered-by: - ASP.NET status: @@ -1663,8 +609,8 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: GET @@ -1681,7 +627,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:21 GMT + - Sat, 06 Aug 2022 04:55:22 GMT expires: - '-1' pragma: @@ -1701,7 +647,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41", - "principalId": "ed86bea3-5154-4d06-839b-11ced3dc0557"}}' + "principalId": "a30db067-cde1-49be-95bb-9619a8cc8617"}}' headers: Accept: - application/json @@ -1718,15 +664,15 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg/providers/Microsoft.Authorization/roleAssignments/744de129-9c6d-49a6-b07f-b10ae3950718?api-version=2020-04-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2020-04-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41","principalId":"ed86bea3-5154-4d06-839b-11ced3dc0557","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","condition":null,"conditionVersion":null,"createdOn":"2022-07-19T12:52:22.3774071Z","updatedOn":"2022-07-19T12:52:22.6431073Z","createdBy":null,"updatedBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg/providers/Microsoft.Authorization/roleAssignments/744de129-9c6d-49a6-b07f-b10ae3950718","type":"Microsoft.Authorization/roleAssignments","name":"744de129-9c6d-49a6-b07f-b10ae3950718"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41","principalId":"a30db067-cde1-49be-95bb-9619a8cc8617","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T04:55:25.1679090Z","updatedOn":"2022-08-06T04:55:25.5116717Z","createdBy":null,"updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' headers: cache-control: - no-cache @@ -1735,7 +681,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:23 GMT + - Sat, 06 Aug 2022 04:55:29 GMT expires: - '-1' pragma: @@ -1765,8 +711,8 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: GET @@ -1783,7 +729,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:24 GMT + - Sat, 06 Aug 2022 04:55:29 GMT expires: - '-1' pragma: @@ -1803,7 +749,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05", - "principalId": "c20a5e0c-1843-4af9-986d-729f77fae43d"}}' + "principalId": "c977fab6-1d15-477a-b53c-14dc093cae36"}}' headers: Accept: - application/json @@ -1820,15 +766,15 @@ interactions: ParameterSetName: - -g -n -l --tags User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/0335db53-ccff-4091-abef-d1d8baf46a20?api-version=2020-04-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2020-04-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-07-19T12:52:24.8702792Z","updatedOn":"2022-07-19T12:52:25.1672154Z","createdBy":null,"updatedBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/0335db53-ccff-4091-abef-d1d8baf46a20","type":"Microsoft.Authorization/roleAssignments","name":"0335db53-ccff-4091-abef-d1d8baf46a20"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T04:55:30.5535438Z","updatedOn":"2022-08-06T04:55:30.8817273Z","createdBy":null,"updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' headers: cache-control: - no-cache @@ -1837,7 +783,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:25 GMT + - Sat, 06 Aug 2022 04:55:32 GMT expires: - '-1' pragma: @@ -1867,21 +813,21 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}]}' headers: cache-control: - no-cache content-length: - - '884' + - '963' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:27 GMT + - Sat, 06 Aug 2022 04:55:33 GMT expires: - '-1' pragma: @@ -1893,10 +839,12 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 10a1974e-740d-42a2-9c70-378fcb90e002 - - bb3b86cb-f355-462e-9a40-8be703ece20c - - c507d8d2-b31e-4759-8a64-128246df6f2b - - f316aeba-0eb8-4dbc-a4b5-937a670c59f9 + - e4fc81d5-204c-4366-80f6-07c20cc600e9 + - 9157d821-ef8f-462d-a4de-2dac0b3dd12e + - 648f87df-3226-4fc3-8f7a-e74f5bda84f3 + - b1f21cb7-3f5b-47ff-8976-11e7681e8d58 + - ab398cb5-63d9-48f4-aabe-e4ee46b64926 + - d0e8ae42-42a7-4c26-be0b-2bc12a4d63af status: code: 200 message: OK @@ -1912,21 +860,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amg-test/providers/Microsoft.Dashboard/grafana/amg-test-grafana","name":"amg-test-grafana","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-18T14:17:58.934605Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-18T14:17:58.934605Z"},"identity":{"principalId":"0433a85e-994f-487e-8726-10d0c079c1fa","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://amg-test-grafana-d2bbecdjddctg4hq.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peqitest/providers/Microsoft.Dashboard/grafana/peqitest0","name":"peqitest0","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"eastus","tags":{},"systemData":{"createdBy":"peqi@microsoft.com","createdByType":"User","createdAt":"2022-06-22T20:08:33.7472212Z","lastModifiedBy":"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f","lastModifiedByType":"Application","lastModifiedAt":"2022-07-22T23:22:52.1164326Z"},"identity":{"principalId":"54deaee2-407c-4aeb-9793-57f7e325ca00","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://peqitest0-bwh5d8f4hybnd6ad.eus.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse","publicNetworkAccess":"Enabled","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}]}' headers: cache-control: - no-cache content-length: - - '1752' + - '1910' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:28 GMT + - Sat, 06 Aug 2022 04:55:34 GMT expires: - '-1' pragma: @@ -1938,10 +886,12 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - db750682-8df3-4929-9232-4b7dc163475f - - 1d8f6028-2704-4654-a58c-89706457d49b - - 20094c58-25a8-418b-828b-127624b8c697 - - 5b8feccf-604d-417c-9bb5-3437366c2700 + - caad6842-577a-4e04-b9d3-3bf5ee01972b + - b963084e-071b-4734-ae9b-05d6463df515 + - 628f8822-63c8-48c4-9b64-e70883b3ce1e + - b24e9c89-8dfe-43d3-a2aa-11b39d5b85b3 + - 37715b04-7711-4940-bd58-6aea8ae612f0 + - dcb10097-8d0e-493b-b833-fe2d957c1243 status: code: 200 message: OK @@ -1959,23 +909,23 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '872' + - '951' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:28 GMT + - Sat, 06 Aug 2022 04:55:36 GMT etag: - - '"1b001daa-0000-0d00-0000-62d6a8fc0000"' + - '"07003b9b-0000-0d00-0000-62edf42a0000"' expires: - '-1' pragma: @@ -2007,23 +957,23 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '872' + - '951' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:29 GMT + - Sat, 06 Aug 2022 04:55:36 GMT etag: - - '"1b001daa-0000-0d00-0000-62d6a8fc0000"' + - '"07003b9b-0000-0d00-0000-62edf42a0000"' expires: - '-1' pragma: @@ -2051,14 +1001,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/org/users + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/org/users response: body: - string: '[{"orgId":1,"userId":2,"email":"michelletaal@hotmail.com","name":"live.com#michelletaal@hotmail.com","avatarUrl":"/avatar/317555acbf6221af100468eb95e86ea0","login":"michelletaal@hotmail.com","role":"Admin","lastSeenAt":"2022-07-19T12:52:30Z","lastSeenAtAge":"\u003c + string: '[{"orgId":1,"userId":2,"email":"example@example.com","name":"example@example.com","avatarUrl":"/avatar/3d063897fed105833776e2dba66ec90b","login":"example@example.com","role":"Admin","lastSeenAt":"2022-08-06T04:55:39Z","lastSeenAtAge":"\u003c 1 minute"}]' headers: cache-control: @@ -2066,13 +1016,13 @@ interactions: connection: - keep-alive content-length: - - '277' + - '253' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:30 GMT + - Sat, 06 Aug 2022 04:55:39 GMT expires: - '-1' pragma: @@ -2080,8 +1030,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235151.541.170.969948|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761740.168.36.663288|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2103,27 +1053,27 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/user + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/user response: body: - string: '{"id":2,"email":"michelletaal@hotmail.com","name":"live.com#michelletaal@hotmail.com","login":"michelletaal@hotmail.com","theme":"","orgId":1,"isGrafanaAdmin":false,"isDisabled":false,"isExternal":true,"authLabels":["OAuth"],"updatedAt":"2022-07-19T12:52:30Z","createdAt":"2022-07-19T12:52:30Z","avatarUrl":"/avatar/317555acbf6221af100468eb95e86ea0"}' + string: '{"id":2,"email":"example@example.com","name":"example@example.com","login":"example@example.com","theme":"","orgId":1,"isGrafanaAdmin":false,"isDisabled":false,"isExternal":true,"authLabels":["OAuth"],"updatedAt":"2022-08-06T04:55:39Z","createdAt":"2022-08-06T04:55:39Z","avatarUrl":"/avatar/3d063897fed105833776e2dba66ec90b"}' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '350' + - '326' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:31 GMT + - Sat, 06 Aug 2022 04:55:40 GMT expires: - '-1' pragma: @@ -2131,8 +1081,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235152.209.179.692202|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761741.412.34.155829|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2156,27 +1106,27 @@ interactions: Content-Length: - '24' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: POST - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders response: body: - string: '{"id":11,"uid":"aFi1RhR4z","title":"Test Folder","url":"/dashboards/f/aFi1RhR4z/test-folder","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"michelletaal@hotmail.com","created":"2022-07-19T12:52:31Z","updatedBy":"michelletaal@hotmail.com","updated":"2022-07-19T12:52:31Z","version":1}' + string: '{"id":47,"uid":"BJr5Auz4z","title":"Test Folder","url":"/dashboards/f/BJr5Auz4z/test-folder","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"example@example.com","created":"2022-08-06T04:55:41Z","updatedBy":"example@example.com","updated":"2022-08-06T04:55:41Z","version":1}' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '327' + - '317' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:31 GMT + - Sat, 06 Aug 2022 04:55:41 GMT expires: - '-1' pragma: @@ -2184,7 +1134,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235152.702.176.20674|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761742.158.34.936363|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -2207,14 +1157,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/id/Test%20Folder + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/id/Test%20Folder response: body: - string: '{"accessErrorId":"ACE6426444106","message":"You''ll need additional + string: '{"accessErrorId":"ACE7161873304","message":"You''ll need additional permissions to perform this action. Permissions needed: folders:read","title":"Access denied"} @@ -2229,7 +1179,7 @@ interactions: content-type: - application/json; charset=UTF-8 date: - - Tue, 19 Jul 2022 12:52:32 GMT + - Sat, 06 Aug 2022 04:55:42 GMT expires: - '-1' pragma: @@ -2237,8 +1187,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235153.103.170.275575|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761743.077.34.923519|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2260,11 +1210,11 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/Test%20Folder + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/Test%20Folder response: body: string: '{"message":"folder not found","status":"not-found"}' @@ -2278,7 +1228,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:32 GMT + - Sat, 06 Aug 2022 04:55:42 GMT expires: - '-1' pragma: @@ -2286,8 +1236,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235153.247.172.748123|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761743.641.34.340367|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2309,14 +1259,15 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders response: body: - string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":11,"uid":"aFi1RhR4z","title":"Test + string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":23,"uid":"PrometheusMDM","title":"Azure + Monitor Container Insights"},{"id":11,"uid":"geneva","title":"Geneva"},{"id":47,"uid":"BJr5Auz4z","title":"Test Folder"}]' headers: cache-control: @@ -2324,13 +1275,13 @@ interactions: connection: - keep-alive content-length: - - '99' + - '216' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:32 GMT + - Sat, 06 Aug 2022 04:55:43 GMT expires: - '-1' pragma: @@ -2338,8 +1289,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235153.431.178.550532|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761744.221.37.468508|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2361,14 +1312,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/id/aFi1RhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/id/BJr5Auz4z response: body: - string: '{"accessErrorId":"ACE5127566518","message":"You''ll need additional + string: '{"accessErrorId":"ACE1479386962","message":"You''ll need additional permissions to perform this action. Permissions needed: folders:read","title":"Access denied"} @@ -2383,7 +1334,7 @@ interactions: content-type: - application/json; charset=UTF-8 date: - - Tue, 19 Jul 2022 12:52:32 GMT + - Sat, 06 Aug 2022 04:55:43 GMT expires: - '-1' pragma: @@ -2391,8 +1342,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235153.767.170.269964|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761744.878.34.42288|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2414,27 +1365,27 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/aFi1RhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/BJr5Auz4z response: body: - string: '{"id":11,"uid":"aFi1RhR4z","title":"Test Folder","url":"/dashboards/f/aFi1RhR4z/test-folder","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"michelletaal@hotmail.com","created":"2022-07-19T12:52:31Z","updatedBy":"michelletaal@hotmail.com","updated":"2022-07-19T12:52:31Z","version":1}' + string: '{"id":47,"uid":"BJr5Auz4z","title":"Test Folder","url":"/dashboards/f/BJr5Auz4z/test-folder","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"example@example.com","created":"2022-08-06T04:55:41Z","updatedBy":"example@example.com","updated":"2022-08-06T04:55:41Z","version":1}' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '327' + - '317' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:33 GMT + - Sat, 06 Aug 2022 04:55:44 GMT expires: - '-1' pragma: @@ -2442,8 +1393,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235153.914.172.703160|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761745.448.37.562254|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2467,27 +1418,27 @@ interactions: Content-Length: - '45' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: PUT - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/aFi1RhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/BJr5Auz4z response: body: - string: '{"id":11,"uid":"aFi1RhR4z","title":"Test Folder Update","url":"/dashboards/f/aFi1RhR4z/test-folder-update","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"michelletaal@hotmail.com","created":"2022-07-19T12:52:31Z","updatedBy":"michelletaal@hotmail.com","updated":"2022-07-19T12:52:33Z","version":2}' + string: '{"id":47,"uid":"BJr5Auz4z","title":"Test Folder Update","url":"/dashboards/f/BJr5Auz4z/test-folder-update","hasAcl":false,"canSave":true,"canEdit":true,"canAdmin":true,"canDelete":true,"createdBy":"example@example.com","created":"2022-08-06T04:55:41Z","updatedBy":"example@example.com","updated":"2022-08-06T04:55:45Z","version":2}' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '341' + - '331' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:33 GMT + - Sat, 06 Aug 2022 04:55:45 GMT expires: - '-1' pragma: @@ -2495,8 +1446,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235154.297.170.682197|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761746.019.36.53794|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2518,14 +1469,15 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders response: body: - string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":11,"uid":"aFi1RhR4z","title":"Test + string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":23,"uid":"PrometheusMDM","title":"Azure + Monitor Container Insights"},{"id":11,"uid":"geneva","title":"Geneva"},{"id":47,"uid":"BJr5Auz4z","title":"Test Folder Update"}]' headers: cache-control: @@ -2533,13 +1485,13 @@ interactions: connection: - keep-alive content-length: - - '106' + - '223' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:33 GMT + - Sat, 06 Aug 2022 04:55:45 GMT expires: - '-1' pragma: @@ -2547,8 +1499,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235154.709.170.123139|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761746.702.37.997951|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2570,14 +1522,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/id/Test%20Folder%20Update + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/id/Test%20Folder%20Update response: body: - string: '{"accessErrorId":"ACE0816040394","message":"You''ll need additional + string: '{"accessErrorId":"ACE1545787499","message":"You''ll need additional permissions to perform this action. Permissions needed: folders:read","title":"Access denied"} @@ -2592,7 +1544,7 @@ interactions: content-type: - application/json; charset=UTF-8 date: - - Tue, 19 Jul 2022 12:52:34 GMT + - Sat, 06 Aug 2022 04:55:46 GMT expires: - '-1' pragma: @@ -2600,8 +1552,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235155.048.170.708909|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761747.353.35.822831|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2623,11 +1575,11 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/Test%20Folder%20Update + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/Test%20Folder%20Update response: body: string: '{"message":"folder not found","status":"not-found"}' @@ -2641,7 +1593,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:34 GMT + - Sat, 06 Aug 2022 04:55:46 GMT expires: - '-1' pragma: @@ -2649,8 +1601,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235155.229.171.519312|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761747.923.37.757994|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2672,14 +1624,15 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders response: body: - string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":11,"uid":"aFi1RhR4z","title":"Test + string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":23,"uid":"PrometheusMDM","title":"Azure + Monitor Container Insights"},{"id":11,"uid":"geneva","title":"Geneva"},{"id":47,"uid":"BJr5Auz4z","title":"Test Folder Update"}]' headers: cache-control: @@ -2687,13 +1640,13 @@ interactions: connection: - keep-alive content-length: - - '106' + - '223' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:34 GMT + - Sat, 06 Aug 2022 04:55:47 GMT expires: - '-1' pragma: @@ -2701,8 +1654,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235155.381.172.637285|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761748.515.36.982389|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2726,14 +1679,14 @@ interactions: Content-Length: - '0' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: DELETE - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders/aFi1RhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders/BJr5Auz4z response: body: - string: '{"id":11,"message":"Folder Test Folder Update deleted","title":"Test + string: '{"id":47,"message":"Folder Test Folder Update deleted","title":"Test Folder Update"}' headers: cache-control: @@ -2747,7 +1700,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:34 GMT + - Sat, 06 Aug 2022 04:55:48 GMT expires: - '-1' pragma: @@ -2755,8 +1708,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235155.527.170.381228|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761749.088.35.681155|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2778,27 +1731,28 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/folders + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/folders response: body: - string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"}]' + string: '[{"id":1,"uid":"az-mon","title":"Azure Monitor"},{"id":23,"uid":"PrometheusMDM","title":"Azure + Monitor Container Insights"},{"id":11,"uid":"geneva","title":"Geneva"}]' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '49' + - '166' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:34 GMT + - Sat, 06 Aug 2022 04:55:48 GMT expires: - '-1' pragma: @@ -2806,7 +1760,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235155.937.171.85648|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761749.817.34.731287|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -2832,15 +1786,15 @@ interactions: Content-Length: - '165' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: POST - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources response: body: - string: '{"datasource":{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test Azure - Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false},"id":2,"message":"Datasource + string: '{"datasource":{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure + Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false},"id":4,"message":"Datasource added","name":"Test Azure Monitor Data Source"}' headers: cache-control: @@ -2854,7 +1808,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:35 GMT + - Sat, 06 Aug 2022 04:55:49 GMT expires: - '-1' pragma: @@ -2862,8 +1816,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235156.292.171.667735|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761750.483.34.487322|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2885,14 +1839,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source response: body: - string: '{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test Azure Monitor Data + string: '{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false}' headers: cache-control: @@ -2906,7 +1860,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:35 GMT + - Sat, 06 Aug 2022 04:55:50 GMT expires: - '-1' pragma: @@ -2914,7 +1868,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235156.7.177.4872|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761751.224.37.139492|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -2937,14 +1891,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source response: body: - string: '{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test Azure Monitor Data + string: '{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false}' headers: cache-control: @@ -2958,7 +1912,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:36 GMT + - Sat, 06 Aug 2022 04:55:50 GMT expires: - '-1' pragma: @@ -2966,8 +1920,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235157.045.172.433988|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761751.877.34.764446|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -2992,15 +1946,15 @@ interactions: Content-Length: - '165' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: PUT - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources/2 + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources/4 response: body: - string: '{"datasource":{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test Azure - Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false},"id":2,"message":"Datasource + string: '{"datasource":{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure + Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false},"id":4,"message":"Datasource updated","name":"Test Azure Monitor Data Source"}' headers: cache-control: @@ -3014,7 +1968,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:36 GMT + - Sat, 06 Aug 2022 04:55:51 GMT expires: - '-1' pragma: @@ -3022,8 +1976,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235157.216.179.368167|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761752.444.36.388734|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3045,15 +1999,17 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources response: body: string: '[{"id":1,"uid":"azure-monitor-oob","orgId":1,"name":"Azure Monitor","type":"grafana-azure-monitor-datasource","typeName":"Azure - Monitor","typeLogoUrl":"public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":"26552D79-E694-44BA-A54D-5A38C2940D48"},"readOnly":false},{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test + Monitor","typeLogoUrl":"public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":"3A7EDF7D-1488-4017-A908-E50D0A1642A6"},"readOnly":false},{"id":2,"uid":"prometheus-mdm","orgId":1,"name":"Azure + Monitor Container Insights","type":"prometheus","typeName":"Prometheus","typeLogoUrl":"public/app/plugins/datasource/prometheus/img/prometheus_logo.svg","access":"proxy","url":"https://az-ncus.prod.prometheusmetrics.trafficmanager.net","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuth":true,"azureCredentials":{"authType":"msi"},"azureEndpointResourceId":"https://management.azure.com","httpHeaderName1":"mdmAccountName","httpMethod":"POST"},"readOnly":false},{"id":3,"uid":"Geneva","orgId":1,"name":"Geneva + Datasource","type":"geneva-datasource","typeName":"Geneva Datasource","typeLogoUrl":"public/plugins/geneva-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuth":true,"azureCredentials":{"authType":"msi"},"azureEndpointResourceId":"https://monitor.core.windows.net"},"readOnly":false},{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure Monitor Data Source","type":"grafana-azure-monitor-datasource","typeName":"Azure Monitor","typeLogoUrl":"public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"readOnly":false}]' headers: @@ -3062,13 +2018,13 @@ interactions: connection: - keep-alive content-length: - - '820' + - '1782' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:36 GMT + - Sat, 06 Aug 2022 04:55:52 GMT expires: - '-1' pragma: @@ -3076,8 +2032,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235157.585.177.432989|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761753.143.35.821907|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3099,14 +2055,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources/name/Test%20Azure%20Monitor%20Data%20Source response: body: - string: '{"id":2,"uid":"3Xn1R2R4z","orgId":1,"name":"Test Azure Monitor Data + string: '{"id":4,"uid":"B0MtAuz4z","orgId":1,"name":"Test Azure Monitor Data Source","type":"grafana-azure-monitor-datasource","typeLogoUrl":"","access":"proxy","url":"","user":"","database":"","basicAuth":false,"basicAuthUser":"","withCredentials":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":""},"secureJsonFields":{},"version":1,"readOnly":false}' headers: cache-control: @@ -3120,7 +2076,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:36 GMT + - Sat, 06 Aug 2022 04:55:52 GMT expires: - '-1' pragma: @@ -3128,8 +2084,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235157.918.177.780423|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761753.8.33.900683|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3153,14 +2109,14 @@ interactions: Content-Length: - '0' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: DELETE - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources/uid/3Xn1R2R4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources/uid/B0MtAuz4z response: body: - string: '{"id":2,"message":"Data source deleted"}' + string: '{"id":4,"message":"Data source deleted"}' headers: cache-control: - no-cache @@ -3173,7 +2129,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:37 GMT + - Sat, 06 Aug 2022 04:55:53 GMT expires: - '-1' pragma: @@ -3181,7 +2137,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235158.08.173.522435|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761754.372.36.458678|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3204,28 +2160,30 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/datasources + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/datasources response: body: string: '[{"id":1,"uid":"azure-monitor-oob","orgId":1,"name":"Azure Monitor","type":"grafana-azure-monitor-datasource","typeName":"Azure - Monitor","typeLogoUrl":"public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":"26552D79-E694-44BA-A54D-5A38C2940D48"},"readOnly":false}]' + Monitor","typeLogoUrl":"public/app/plugins/datasource/grafana-azure-monitor-datasource/img/logo.jpg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuthType":"msi","subscriptionId":"3A7EDF7D-1488-4017-A908-E50D0A1642A6"},"readOnly":false},{"id":2,"uid":"prometheus-mdm","orgId":1,"name":"Azure + Monitor Container Insights","type":"prometheus","typeName":"Prometheus","typeLogoUrl":"public/app/plugins/datasource/prometheus/img/prometheus_logo.svg","access":"proxy","url":"https://az-ncus.prod.prometheusmetrics.trafficmanager.net","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuth":true,"azureCredentials":{"authType":"msi"},"azureEndpointResourceId":"https://management.azure.com","httpHeaderName1":"mdmAccountName","httpMethod":"POST"},"readOnly":false},{"id":3,"uid":"Geneva","orgId":1,"name":"Geneva + Datasource","type":"geneva-datasource","typeName":"Geneva Datasource","typeLogoUrl":"public/plugins/geneva-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":false,"jsonData":{"azureAuth":true,"azureCredentials":{"authType":"msi"},"azureEndpointResourceId":"https://monitor.core.windows.net"},"readOnly":false}]' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '424' + - '1386' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:37 GMT + - Sat, 06 Aug 2022 04:55:54 GMT expires: - '-1' pragma: @@ -3233,7 +2191,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235158.443.173.26080|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761755.055.34.204592|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3259,14 +2217,14 @@ interactions: Content-Length: - '133' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: POST - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications response: body: - string: '{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37.813305102Z","updated":"2022-07-19T12:52:37.813306902Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' + string: '{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54.759974268Z","updated":"2022-08-06T04:55:54.759976268Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' headers: cache-control: - no-cache @@ -3279,7 +2237,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:37 GMT + - Sat, 06 Aug 2022 04:55:54 GMT expires: - '-1' pragma: @@ -3287,7 +2245,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235158.783.172.70475|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761755.724.33.883117|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3310,14 +2268,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/GfDtAuzVk response: body: - string: '{"message":"notificationId is invalid","traceID":"64400f60e980d01137315178ff8bbb73"}' + string: '{"message":"notificationId is invalid","traceID":"1cb8abfe09f8fbbb23ab223b84d0e250"}' headers: cache-control: - no-cache @@ -3328,7 +2286,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:38 GMT + - Sat, 06 Aug 2022 04:55:55 GMT expires: - '-1' pragma: @@ -3336,7 +2294,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235159.137.170.55449|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761756.389.35.677232|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3359,14 +2317,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/uid/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/uid/GfDtAuzVk response: body: - string: '{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37Z","updated":"2022-07-19T12:52:37Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' + string: '{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54Z","updated":"2022-08-06T04:55:54Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' headers: cache-control: - no-cache @@ -3379,7 +2337,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:38 GMT + - Sat, 06 Aug 2022 04:55:56 GMT expires: - '-1' pragma: @@ -3387,8 +2345,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235159.286.172.776146|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761756.962.37.830525|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3410,14 +2368,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/GfDtAuzVk response: body: - string: '{"message":"notificationId is invalid","traceID":"2749168fcb293de476604b66c9e2d4d4"}' + string: '{"message":"notificationId is invalid","traceID":"5264d4b8d8f151a63973a9a8f6d72eee"}' headers: cache-control: - no-cache @@ -3428,7 +2386,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:38 GMT + - Sat, 06 Aug 2022 04:55:56 GMT expires: - '-1' pragma: @@ -3436,8 +2394,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235159.628.177.326349|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761757.662.34.816004|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3459,14 +2417,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/uid/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/uid/GfDtAuzVk response: body: - string: '{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37Z","updated":"2022-07-19T12:52:37Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' + string: '{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54Z","updated":"2022-08-06T04:55:54Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' headers: cache-control: - no-cache @@ -3479,7 +2437,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:38 GMT + - Sat, 06 Aug 2022 04:55:57 GMT expires: - '-1' pragma: @@ -3487,7 +2445,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235159.788.173.20014|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761758.23.37.530272|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3513,14 +2471,14 @@ interactions: Content-Length: - '142' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: PUT - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/1 + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/1 response: body: - string: '{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37Z","updated":"2022-07-19T12:52:39Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' + string: '{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54Z","updated":"2022-08-06T04:55:57Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' headers: cache-control: - no-cache @@ -3533,7 +2491,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:39 GMT + - Sat, 06 Aug 2022 04:55:57 GMT expires: - '-1' pragma: @@ -3541,8 +2499,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235159.984.171.578622|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761758.806.35.97610|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3564,14 +2522,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications response: body: - string: '[{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37Z","updated":"2022-07-19T12:52:39Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}]' + string: '[{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54Z","updated":"2022-08-06T04:55:57Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}]' headers: cache-control: - no-cache @@ -3584,7 +2542,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:39 GMT + - Sat, 06 Aug 2022 04:55:58 GMT expires: - '-1' pragma: @@ -3592,8 +2550,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235160.352.179.698633|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761759.506.34.922163|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3615,14 +2573,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/GfDtAuzVk response: body: - string: '{"message":"notificationId is invalid","traceID":"061a7ce614c741a53d4d4e7cfa31b9c2"}' + string: '{"message":"notificationId is invalid","traceID":"4f02ee145c76e5f93975969d03f80994"}' headers: cache-control: - no-cache @@ -3633,7 +2591,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:39 GMT + - Sat, 06 Aug 2022 04:55:59 GMT expires: - '-1' pragma: @@ -3641,7 +2599,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235160.7.170.359410|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761760.187.37.441436|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3664,14 +2622,14 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/uid/bvHJRhR4z + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/uid/GfDtAuzVk response: body: - string: '{"id":1,"uid":"bvHJRhR4z","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-07-19T12:52:37Z","updated":"2022-07-19T12:52:39Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' + string: '{"id":1,"uid":"GfDtAuzVk","name":"Test Teams Notification Channel","type":"teams","isDefault":false,"sendReminder":false,"disableResolveMessage":false,"frequency":"","created":"2022-08-06T04:55:54Z","updated":"2022-08-06T04:55:57Z","settings":{"url":"https://test.webhook.office.com/IncomingWebhook/"},"secureFields":{}}' headers: cache-control: - no-cache @@ -3684,7 +2642,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:39 GMT + - Sat, 06 Aug 2022 04:55:59 GMT expires: - '-1' pragma: @@ -3692,7 +2650,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235160.9.172.605978|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761760.76.36.913423|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -3717,11 +2675,11 @@ interactions: Content-Length: - '0' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: DELETE - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications/1 + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications/1 response: body: string: '{"message":"Notification deleted"}' @@ -3737,7 +2695,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:40 GMT + - Sat, 06 Aug 2022 04:56:00 GMT expires: - '-1' pragma: @@ -3745,8 +2703,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235161.071.172.328401|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761761.358.35.748658|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3768,11 +2726,11 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/alert-notifications + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/alert-notifications response: body: string: '[]' @@ -3788,7 +2746,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:40 GMT + - Sat, 06 Aug 2022 04:56:01 GMT expires: - '-1' pragma: @@ -3796,8 +2754,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235161.454.172.611083|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761762.027.34.625437|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3821,14 +2779,14 @@ interactions: Content-Length: - '62' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: POST - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/dashboards/db + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/dashboards/db response: body: - string: '{"id":12,"slug":"test-dashboard","status":"success","uid":"jvK1R2R4k","url":"/d/jvK1R2R4k/test-dashboard","version":1}' + string: '{"id":48,"slug":"test-dashboard","status":"success","uid":"i2ApAXkVz","url":"/d/i2ApAXkVz/test-dashboard","version":1}' headers: cache-control: - no-cache @@ -3841,7 +2799,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:40 GMT + - Sat, 06 Aug 2022 04:56:01 GMT expires: - '-1' pragma: @@ -3849,8 +2807,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235161.848.170.464959|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761762.696.34.734982|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3872,28 +2830,28 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/dashboards/uid/jvK1R2R4k + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/dashboards/uid/i2ApAXkVz response: body: - string: '{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"test-dashboard","url":"/d/jvK1R2R4k/test-dashboard","expires":"0001-01-01T00:00:00Z","created":"2022-07-19T12:52:40Z","updated":"2022-07-19T12:52:40Z","updatedBy":"michelletaal@hotmail.com","createdBy":"michelletaal@hotmail.com","version":1,"hasAcl":false,"isFolder":false,"folderId":0,"folderUid":"","folderTitle":"General","folderUrl":"","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"isPublic":false},"dashboard":{"id":12,"title":"Test - Dashboard","uid":"jvK1R2R4k","version":1}}' + string: '{"meta":{"type":"db","canSave":true,"canEdit":true,"canAdmin":true,"canStar":true,"canDelete":true,"slug":"test-dashboard","url":"/d/i2ApAXkVz/test-dashboard","expires":"0001-01-01T00:00:00Z","created":"2022-08-06T04:56:01Z","updated":"2022-08-06T04:56:01Z","updatedBy":"example@example.com","createdBy":"example@example.com","version":1,"hasAcl":false,"isFolder":false,"folderId":0,"folderUid":"","folderTitle":"General","folderUrl":"","provisioned":false,"provisionedExternalId":"","annotationsPermissions":{"dashboard":{"canAdd":true,"canEdit":true,"canDelete":true},"organization":{"canAdd":true,"canEdit":true,"canDelete":true}},"isPublic":false},"dashboard":{"id":48,"title":"Test + Dashboard","uid":"i2ApAXkVz","version":1}}' headers: cache-control: - no-cache connection: - keep-alive content-length: - - '739' + - '729' content-security-policy: - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:41 GMT + - Sat, 06 Aug 2022 04:56:02 GMT expires: - '-1' pragma: @@ -3901,8 +2859,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235162.258.178.743485|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761763.404.33.905723|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3915,7 +2873,7 @@ interactions: code: 200 message: OK - request: - body: '{"dashboard": {"title": "Test Dashboard", "uid": "jvK1R2R4k", "version": + body: '{"dashboard": {"title": "Test Dashboard", "uid": "i2ApAXkVz", "version": 1}, "overwrite": true}' headers: Accept: @@ -3927,14 +2885,14 @@ interactions: Content-Length: - '95' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: POST - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/dashboards/db + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/dashboards/db response: body: - string: '{"id":12,"slug":"test-dashboard","status":"success","uid":"jvK1R2R4k","url":"/d/jvK1R2R4k/test-dashboard","version":2}' + string: '{"id":48,"slug":"test-dashboard","status":"success","uid":"i2ApAXkVz","url":"/d/i2ApAXkVz/test-dashboard","version":2}' headers: cache-control: - no-cache @@ -3947,7 +2905,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:41 GMT + - Sat, 06 Aug 2022 04:56:03 GMT expires: - '-1' pragma: @@ -3955,8 +2913,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235162.681.170.647774|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761764.068.36.540277|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains x-content-type-options: @@ -3978,32 +2936,90 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/search?type=dash-db + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/search?type=dash-db response: body: - string: '[{"id":5,"uid":"dyzn5SK7z","title":"Azure / Alert Consumption","uri":"db/azure-alert-consumption","url":"/d/dyzn5SK7z/azure-alert-consumption","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":7,"uid":"Yo38mcvnz","title":"Azure + string: '[{"id":21,"uid":"OSBzdgnnz","title":"Agent QoS","uri":"db/agent-qos","url":"/d/OSBzdgnnz/agent-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":16,"uid":"54KhiZ7nz","title":"AKS + Linux Sample Application","uri":"db/aks-linux-sample-application","url":"/d/54KhiZ7nz/aks-linux-sample-application","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":17,"uid":"6uRDjTNnz","title":"App + Detail","uri":"db/app-detail","url":"/d/6uRDjTNnz/app-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":2,"uid":"dyzn5SK7z","title":"Azure + / Alert Consumption","uri":"db/azure-alert-consumption","url":"/d/dyzn5SK7z/azure-alert-consumption","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":5,"uid":"Yo38mcvnz","title":"Azure / Insights / Applications","uri":"db/azure-insights-applications","url":"/d/Yo38mcvnz/azure-insights-applications","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":8,"uid":"INH9berMk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":6,"uid":"INH9berMk","title":"Azure / Insights / Cosmos DB","uri":"db/azure-insights-cosmos-db","url":"/d/INH9berMk/azure-insights-cosmos-db","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":2,"uid":"8UDB1s3Gk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":7,"uid":"8UDB1s3Gk","title":"Azure / Insights / Data Explorer Clusters","uri":"db/azure-insights-data-explorer-clusters","url":"/d/8UDB1s3Gk/azure-insights-data-explorer-clusters","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":3,"uid":"tQZAMYrMk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":9,"uid":"tQZAMYrMk","title":"Azure / Insights / Key Vaults","uri":"db/azure-insights-key-vaults","url":"/d/tQZAMYrMk/azure-insights-key-vaults","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":4,"uid":"3n2E8CrGk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":10,"uid":"3n2E8CrGk","title":"Azure / Insights / Storage Accounts","uri":"db/azure-insights-storage-accounts","url":"/d/3n2E8CrGk/azure-insights-storage-accounts","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":6,"uid":"AzVmInsightsByRG","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":3,"uid":"AzVmInsightsByRG","title":"Azure / Insights / Virtual Machines by Resource Group","uri":"db/azure-insights-virtual-machines-by-resource-group","url":"/d/AzVmInsightsByRG/azure-insights-virtual-machines-by-resource-group","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":9,"uid":"AzVmInsightsByWS","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":4,"uid":"AzVmInsightsByWS","title":"Azure / Insights / Virtual Machines by Workspace","uri":"db/azure-insights-virtual-machines-by-workspace","url":"/d/AzVmInsightsByWS/azure-insights-virtual-machines-by-workspace","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":10,"uid":"Mtwt2BV7k","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":8,"uid":"Mtwt2BV7k","title":"Azure / Resources Overview","uri":"db/azure-resources-overview","url":"/d/Mtwt2BV7k/azure-resources-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":12,"uid":"jvK1R2R4k","title":"Test - Dashboard","uri":"db/test-dashboard","url":"/d/jvK1R2R4k/test-dashboard","slug":"","type":"dash-db","tags":[],"isStarred":false,"sortMeta":0}]' + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":12,"uid":"xLERdASnz","title":"Cluster + Detail","uri":"db/cluster-detail","url":"/d/xLERdASnz/cluster-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":24,"uid":"vkQ0UHxiddk","title":"CoreDNS","uri":"db/coredns","url":"/d/vkQ0UHxiddk/coredns","slug":"","type":"dash-db","tags":["coredns-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":13,"uid":"QTVw7iK7z","title":"Geneva + Health","uri":"db/geneva-health","url":"/d/QTVw7iK7z/geneva-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":22,"uid":"icm-example","title":"IcM + Canned Dashboard","uri":"db/icm-canned-dashboard","url":"/d/icm-example/icm-canned-dashboard","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":18,"uid":"sVKyjvpnz","title":"Incoming + Service QoS","uri":"db/incoming-service-qos","url":"/d/sVKyjvpnz/incoming-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":25,"uid":"09ec8aa1e996d6ffcd6817bbaff4db1b","title":"Kubernetes + / API server","uri":"db/kubernetes-api-server","url":"/d/09ec8aa1e996d6ffcd6817bbaff4db1b/kubernetes-api-server","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":26,"uid":"efa86fd1d0c121a26444b636a3f509a8","title":"Kubernetes + / Compute Resources / Cluster","uri":"db/kubernetes-compute-resources-cluster","url":"/d/efa86fd1d0c121a26444b636a3f509a8/kubernetes-compute-resources-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":27,"uid":"85a562078cdf77779eaa1add43ccec1e","title":"Kubernetes + / Compute Resources / Namespace (Pods)","uri":"db/kubernetes-compute-resources-namespace-pods","url":"/d/85a562078cdf77779eaa1add43ccec1e/kubernetes-compute-resources-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":28,"uid":"a87fb0d919ec0ea5f6543124e16c42a5","title":"Kubernetes + / Compute Resources / Namespace (Workloads)","uri":"db/kubernetes-compute-resources-namespace-workloads","url":"/d/a87fb0d919ec0ea5f6543124e16c42a5/kubernetes-compute-resources-namespace-workloads","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":29,"uid":"200ac8fdbfbb74b39aff88118e4d1c2c","title":"Kubernetes + / Compute Resources / Node (Pods)","uri":"db/kubernetes-compute-resources-node-pods","url":"/d/200ac8fdbfbb74b39aff88118e4d1c2c/kubernetes-compute-resources-node-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":30,"uid":"6581e46e4e5c7ba40a07646395ef7b23","title":"Kubernetes + / Compute Resources / Pod","uri":"db/kubernetes-compute-resources-pod","url":"/d/6581e46e4e5c7ba40a07646395ef7b23/kubernetes-compute-resources-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":31,"uid":"a164a7f0339f99e89cea5cb47e9be617","title":"Kubernetes + / Compute Resources / Workload","uri":"db/kubernetes-compute-resources-workload","url":"/d/a164a7f0339f99e89cea5cb47e9be617/kubernetes-compute-resources-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":32,"uid":"3138fa155d5915769fbded898ac09ff9","title":"Kubernetes + / Kubelet","uri":"db/kubernetes-kubelet","url":"/d/3138fa155d5915769fbded898ac09ff9/kubernetes-kubelet","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":33,"uid":"ff635a025bcfea7bc3dd4f508990a3e9","title":"Kubernetes + / Networking / Cluster","uri":"db/kubernetes-networking-cluster","url":"/d/ff635a025bcfea7bc3dd4f508990a3e9/kubernetes-networking-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":34,"uid":"8b7a8b326d7a6f1f04244066368c67af","title":"Kubernetes + / Networking / Namespace (Pods)","uri":"db/kubernetes-networking-namespace-pods","url":"/d/8b7a8b326d7a6f1f04244066368c67af/kubernetes-networking-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":35,"uid":"bbb2a765a623ae38130206c7d94a160f","title":"Kubernetes + / Networking / Namespace (Workload)","uri":"db/kubernetes-networking-namespace-workload","url":"/d/bbb2a765a623ae38130206c7d94a160f/kubernetes-networking-namespace-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":36,"uid":"7a18067ce943a40ae25454675c19ff5c","title":"Kubernetes + / Networking / Pod","uri":"db/kubernetes-networking-pod","url":"/d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":37,"uid":"728bf77cc1166d2f3133bf25846876cc","title":"Kubernetes + / Networking / Workload","uri":"db/kubernetes-networking-workload","url":"/d/728bf77cc1166d2f3133bf25846876cc/kubernetes-networking-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":38,"uid":"919b92a8e8041bd567af9edab12c840c","title":"Kubernetes + / Persistent Volumes","uri":"db/kubernetes-persistent-volumes","url":"/d/919b92a8e8041bd567af9edab12c840c/kubernetes-persistent-volumes","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":39,"uid":"632e265de029684c40b21cb76bca4f94","title":"Kubernetes + / Proxy","uri":"db/kubernetes-proxy","url":"/d/632e265de029684c40b21cb76bca4f94/kubernetes-proxy","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":40,"uid":"F4bizNZ7k","title":"Kubernetes + / StatefulSets","uri":"db/kubernetes-statefulsets","url":"/d/F4bizNZ7k/kubernetes-statefulsets","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":44,"uid":"VESDBJS7k","title":"Kubernetes + / USE Method / Cluster(Windows)","uri":"db/kubernetes-use-method-cluster-windows","url":"/d/VESDBJS7k/kubernetes-use-method-cluster-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":45,"uid":"YCBDf1I7k","title":"Kubernetes + / USE Method / Node(Windows)","uri":"db/kubernetes-use-method-node-windows","url":"/d/YCBDf1I7k/kubernetes-use-method-node-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":19,"uid":"_sKhXTH7z","title":"Node + Detail","uri":"db/node-detail","url":"/d/_sKhXTH7z/node-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":41,"uid":"D4pVsnCGz","title":"Nodes + (Node exporter)","uri":"db/nodes-node-exporter","url":"/d/D4pVsnCGz/nodes-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":20,"uid":"6naEwcp7z","title":"Outgoing + Service QoS","uri":"db/outgoing-service-qos","url":"/d/6naEwcp7z/outgoing-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":46,"uid":"UskST-Snz","title":"Prometheus-Collector + Health","uri":"db/prometheus-collector-health","url":"/d/UskST-Snz/prometheus-collector-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":14,"uid":"GIgvhSV7z","title":"Service + Fabric Application Overview","uri":"db/service-fabric-application-overview","url":"/d/GIgvhSV7z/service-fabric-application-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":48,"uid":"i2ApAXkVz","title":"Test + Dashboard","uri":"db/test-dashboard","url":"/d/i2ApAXkVz/test-dashboard","slug":"","type":"dash-db","tags":[],"isStarred":false,"sortMeta":0},{"id":42,"uid":"VdrOA7jGz","title":"USE + Method / Cluster (Node exporter)","uri":"db/use-method-cluster-node-exporter","url":"/d/VdrOA7jGz/use-method-cluster-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":43,"uid":"t5ajanjMk","title":"USE + Method / Node (Node exporter)","uri":"db/use-method-node-node-exporter","url":"/d/t5ajanjMk/use-method-node-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":15,"uid":"duj3tR77k","title":"WarmPathQoS","uri":"db/warmpathqos","url":"/d/duj3tR77k/warmpathqos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0}]' headers: cache-control: - no-cache @@ -4014,7 +3030,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:42 GMT + - Sat, 06 Aug 2022 04:56:03 GMT expires: - '-1' pragma: @@ -4022,8 +3038,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235163.046.170.308301|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761764.762.35.573555|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: @@ -4049,14 +3065,14 @@ interactions: Content-Length: - '0' User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: DELETE - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/dashboards/uid/jvK1R2R4k + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/dashboards/uid/i2ApAXkVz response: body: - string: '{"id":12,"message":"Dashboard Test Dashboard deleted","title":"Test + string: '{"id":48,"message":"Dashboard Test Dashboard deleted","title":"Test Dashboard"}' headers: cache-control: @@ -4070,7 +3086,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:42 GMT + - Sat, 06 Aug 2022 04:56:04 GMT expires: - '-1' pragma: @@ -4078,7 +3094,7 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235163.42.177.268539|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + - INGRESSCOOKIE=1659761765.606.33.60884|536a49a9056dcf5427f82e0e17c1daf3; Path=/; Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains @@ -4101,31 +3117,89 @@ interactions: Connection: - keep-alive User-Agent: - - python-requests/2.27.1 + - python-requests/2.26.0 content-type: - application/json method: GET - uri: https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com/api/search?type=dash-db + uri: https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com/api/search?type=dash-db response: body: - string: '[{"id":5,"uid":"dyzn5SK7z","title":"Azure / Alert Consumption","uri":"db/azure-alert-consumption","url":"/d/dyzn5SK7z/azure-alert-consumption","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":7,"uid":"Yo38mcvnz","title":"Azure + string: '[{"id":21,"uid":"OSBzdgnnz","title":"Agent QoS","uri":"db/agent-qos","url":"/d/OSBzdgnnz/agent-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":16,"uid":"54KhiZ7nz","title":"AKS + Linux Sample Application","uri":"db/aks-linux-sample-application","url":"/d/54KhiZ7nz/aks-linux-sample-application","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":17,"uid":"6uRDjTNnz","title":"App + Detail","uri":"db/app-detail","url":"/d/6uRDjTNnz/app-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":2,"uid":"dyzn5SK7z","title":"Azure + / Alert Consumption","uri":"db/azure-alert-consumption","url":"/d/dyzn5SK7z/azure-alert-consumption","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":5,"uid":"Yo38mcvnz","title":"Azure / Insights / Applications","uri":"db/azure-insights-applications","url":"/d/Yo38mcvnz/azure-insights-applications","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":8,"uid":"INH9berMk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":6,"uid":"INH9berMk","title":"Azure / Insights / Cosmos DB","uri":"db/azure-insights-cosmos-db","url":"/d/INH9berMk/azure-insights-cosmos-db","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":2,"uid":"8UDB1s3Gk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":7,"uid":"8UDB1s3Gk","title":"Azure / Insights / Data Explorer Clusters","uri":"db/azure-insights-data-explorer-clusters","url":"/d/8UDB1s3Gk/azure-insights-data-explorer-clusters","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":3,"uid":"tQZAMYrMk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":9,"uid":"tQZAMYrMk","title":"Azure / Insights / Key Vaults","uri":"db/azure-insights-key-vaults","url":"/d/tQZAMYrMk/azure-insights-key-vaults","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":4,"uid":"3n2E8CrGk","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":10,"uid":"3n2E8CrGk","title":"Azure / Insights / Storage Accounts","uri":"db/azure-insights-storage-accounts","url":"/d/3n2E8CrGk/azure-insights-storage-accounts","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":6,"uid":"AzVmInsightsByRG","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":3,"uid":"AzVmInsightsByRG","title":"Azure / Insights / Virtual Machines by Resource Group","uri":"db/azure-insights-virtual-machines-by-resource-group","url":"/d/AzVmInsightsByRG/azure-insights-virtual-machines-by-resource-group","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":9,"uid":"AzVmInsightsByWS","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":4,"uid":"AzVmInsightsByWS","title":"Azure / Insights / Virtual Machines by Workspace","uri":"db/azure-insights-virtual-machines-by-workspace","url":"/d/AzVmInsightsByWS/azure-insights-virtual-machines-by-workspace","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":10,"uid":"Mtwt2BV7k","title":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":8,"uid":"Mtwt2BV7k","title":"Azure / Resources Overview","uri":"db/azure-resources-overview","url":"/d/Mtwt2BV7k/azure-resources-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure - Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0}]' + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":12,"uid":"xLERdASnz","title":"Cluster + Detail","uri":"db/cluster-detail","url":"/d/xLERdASnz/cluster-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":24,"uid":"vkQ0UHxiddk","title":"CoreDNS","uri":"db/coredns","url":"/d/vkQ0UHxiddk/coredns","slug":"","type":"dash-db","tags":["coredns-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":13,"uid":"QTVw7iK7z","title":"Geneva + Health","uri":"db/geneva-health","url":"/d/QTVw7iK7z/geneva-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":22,"uid":"icm-example","title":"IcM + Canned Dashboard","uri":"db/icm-canned-dashboard","url":"/d/icm-example/icm-canned-dashboard","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":18,"uid":"sVKyjvpnz","title":"Incoming + Service QoS","uri":"db/incoming-service-qos","url":"/d/sVKyjvpnz/incoming-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":25,"uid":"09ec8aa1e996d6ffcd6817bbaff4db1b","title":"Kubernetes + / API server","uri":"db/kubernetes-api-server","url":"/d/09ec8aa1e996d6ffcd6817bbaff4db1b/kubernetes-api-server","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":26,"uid":"efa86fd1d0c121a26444b636a3f509a8","title":"Kubernetes + / Compute Resources / Cluster","uri":"db/kubernetes-compute-resources-cluster","url":"/d/efa86fd1d0c121a26444b636a3f509a8/kubernetes-compute-resources-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":27,"uid":"85a562078cdf77779eaa1add43ccec1e","title":"Kubernetes + / Compute Resources / Namespace (Pods)","uri":"db/kubernetes-compute-resources-namespace-pods","url":"/d/85a562078cdf77779eaa1add43ccec1e/kubernetes-compute-resources-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":28,"uid":"a87fb0d919ec0ea5f6543124e16c42a5","title":"Kubernetes + / Compute Resources / Namespace (Workloads)","uri":"db/kubernetes-compute-resources-namespace-workloads","url":"/d/a87fb0d919ec0ea5f6543124e16c42a5/kubernetes-compute-resources-namespace-workloads","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":29,"uid":"200ac8fdbfbb74b39aff88118e4d1c2c","title":"Kubernetes + / Compute Resources / Node (Pods)","uri":"db/kubernetes-compute-resources-node-pods","url":"/d/200ac8fdbfbb74b39aff88118e4d1c2c/kubernetes-compute-resources-node-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":30,"uid":"6581e46e4e5c7ba40a07646395ef7b23","title":"Kubernetes + / Compute Resources / Pod","uri":"db/kubernetes-compute-resources-pod","url":"/d/6581e46e4e5c7ba40a07646395ef7b23/kubernetes-compute-resources-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":31,"uid":"a164a7f0339f99e89cea5cb47e9be617","title":"Kubernetes + / Compute Resources / Workload","uri":"db/kubernetes-compute-resources-workload","url":"/d/a164a7f0339f99e89cea5cb47e9be617/kubernetes-compute-resources-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":32,"uid":"3138fa155d5915769fbded898ac09ff9","title":"Kubernetes + / Kubelet","uri":"db/kubernetes-kubelet","url":"/d/3138fa155d5915769fbded898ac09ff9/kubernetes-kubelet","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":33,"uid":"ff635a025bcfea7bc3dd4f508990a3e9","title":"Kubernetes + / Networking / Cluster","uri":"db/kubernetes-networking-cluster","url":"/d/ff635a025bcfea7bc3dd4f508990a3e9/kubernetes-networking-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":34,"uid":"8b7a8b326d7a6f1f04244066368c67af","title":"Kubernetes + / Networking / Namespace (Pods)","uri":"db/kubernetes-networking-namespace-pods","url":"/d/8b7a8b326d7a6f1f04244066368c67af/kubernetes-networking-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":35,"uid":"bbb2a765a623ae38130206c7d94a160f","title":"Kubernetes + / Networking / Namespace (Workload)","uri":"db/kubernetes-networking-namespace-workload","url":"/d/bbb2a765a623ae38130206c7d94a160f/kubernetes-networking-namespace-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":36,"uid":"7a18067ce943a40ae25454675c19ff5c","title":"Kubernetes + / Networking / Pod","uri":"db/kubernetes-networking-pod","url":"/d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":37,"uid":"728bf77cc1166d2f3133bf25846876cc","title":"Kubernetes + / Networking / Workload","uri":"db/kubernetes-networking-workload","url":"/d/728bf77cc1166d2f3133bf25846876cc/kubernetes-networking-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":38,"uid":"919b92a8e8041bd567af9edab12c840c","title":"Kubernetes + / Persistent Volumes","uri":"db/kubernetes-persistent-volumes","url":"/d/919b92a8e8041bd567af9edab12c840c/kubernetes-persistent-volumes","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":39,"uid":"632e265de029684c40b21cb76bca4f94","title":"Kubernetes + / Proxy","uri":"db/kubernetes-proxy","url":"/d/632e265de029684c40b21cb76bca4f94/kubernetes-proxy","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":40,"uid":"F4bizNZ7k","title":"Kubernetes + / StatefulSets","uri":"db/kubernetes-statefulsets","url":"/d/F4bizNZ7k/kubernetes-statefulsets","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":44,"uid":"VESDBJS7k","title":"Kubernetes + / USE Method / Cluster(Windows)","uri":"db/kubernetes-use-method-cluster-windows","url":"/d/VESDBJS7k/kubernetes-use-method-cluster-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":45,"uid":"YCBDf1I7k","title":"Kubernetes + / USE Method / Node(Windows)","uri":"db/kubernetes-use-method-node-windows","url":"/d/YCBDf1I7k/kubernetes-use-method-node-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":19,"uid":"_sKhXTH7z","title":"Node + Detail","uri":"db/node-detail","url":"/d/_sKhXTH7z/node-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":41,"uid":"D4pVsnCGz","title":"Nodes + (Node exporter)","uri":"db/nodes-node-exporter","url":"/d/D4pVsnCGz/nodes-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":20,"uid":"6naEwcp7z","title":"Outgoing + Service QoS","uri":"db/outgoing-service-qos","url":"/d/6naEwcp7z/outgoing-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":46,"uid":"UskST-Snz","title":"Prometheus-Collector + Health","uri":"db/prometheus-collector-health","url":"/d/UskST-Snz/prometheus-collector-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":14,"uid":"GIgvhSV7z","title":"Service + Fabric Application Overview","uri":"db/service-fabric-application-overview","url":"/d/GIgvhSV7z/service-fabric-application-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":42,"uid":"VdrOA7jGz","title":"USE + Method / Cluster (Node exporter)","uri":"db/use-method-cluster-node-exporter","url":"/d/VdrOA7jGz/use-method-cluster-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":43,"uid":"t5ajanjMk","title":"USE + Method / Node (Node exporter)","uri":"db/use-method-node-node-exporter","url":"/d/t5ajanjMk/use-method-node-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":15,"uid":"duj3tR77k","title":"WarmPathQoS","uri":"db/warmpathqos","url":"/d/duj3tR77k/warmpathqos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0}]' headers: cache-control: - no-cache @@ -4136,7 +3210,7 @@ interactions: content-type: - application/json date: - - Tue, 19 Jul 2022 12:52:42 GMT + - Sat, 06 Aug 2022 04:56:05 GMT expires: - '-1' pragma: @@ -4144,8 +3218,8 @@ interactions: request-context: - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 set-cookie: - - INGRESSCOOKIE=1658235163.802.173.929746|536a49a9056dcf5427f82e0e17c1daf3; - Path=/; Secure; HttpOnly + - INGRESSCOOKIE=1659761766.294.36.544848|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: @@ -4173,29 +3247,33 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-19T12:35:47.0398186Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-19T12:35:47.0398186Z"},"identity":{"principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-ftcwecbbe7hyhrhk.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","name":"clitestamg","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{"foo":"doo"},"systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T04:50:44.9413885Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T04:50:44.9413885Z"},"identity":{"principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamg-cchsamfze0fahxeu.weu.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' headers: cache-control: - no-cache content-length: - - '872' + - '951' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:46 GMT + - Sat, 06 Aug 2022 04:56:05 GMT etag: - - '"1b001daa-0000-0d00-0000-62d6a8fc0000"' + - '"07003b9b-0000-0d00-0000-62edf42a0000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -4219,9 +3297,9 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg?api-version=2022-08-01 response: body: string: 'null' @@ -4229,7 +3307,7 @@ interactions: api-supported-versions: - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 azure-asyncoperation: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 cache-control: - no-cache content-length: @@ -4237,13 +3315,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:52:46 GMT + - Sat, 06 Aug 2022 04:56:08 GMT etag: - - '"1b00f3aa-0000-0d00-0000-62d6a91e0000"' + - '"0700899b-0000-0d00-0000-62edf4680000"' expires: - '-1' location: - - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 pragma: - no-cache request-context: @@ -4273,12 +3351,54 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' + headers: + cache-control: + - no-cache + content-length: + - '515' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 04:56:38 GMT + etag: + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana delete + Connection: + - keep-alive + ParameterSetName: + - -g -n --yes + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4287,9 +3407,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:53:16 GMT + - Sat, 06 Aug 2022 04:57:08 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4315,12 +3435,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4329,9 +3449,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:53:46 GMT + - Sat, 06 Aug 2022 04:57:39 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4357,12 +3477,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4371,9 +3491,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:54:16 GMT + - Sat, 06 Aug 2022 04:58:09 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4399,12 +3519,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4413,9 +3533,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:54:46 GMT + - Sat, 06 Aug 2022 04:58:39 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4441,12 +3561,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4455,9 +3575,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:55:18 GMT + - Sat, 06 Aug 2022 04:59:09 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4483,12 +3603,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4497,9 +3617,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:55:47 GMT + - Sat, 06 Aug 2022 04:59:39 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4525,12 +3645,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4539,9 +3659,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:56:17 GMT + - Sat, 06 Aug 2022 05:00:10 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4567,12 +3687,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4581,9 +3701,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:56:48 GMT + - Sat, 06 Aug 2022 05:00:40 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4609,12 +3729,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4623,9 +3743,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:57:18 GMT + - Sat, 06 Aug 2022 05:01:11 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4651,12 +3771,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4665,9 +3785,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:57:48 GMT + - Sat, 06 Aug 2022 05:01:41 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4693,12 +3813,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4707,9 +3827,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:58:18 GMT + - Sat, 06 Aug 2022 05:02:11 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4735,12 +3855,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-07-19T12:52:46.5012498Z","error":{}}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Deleting","startTime":"2022-08-06T04:56:08.2396776Z","error":{}}' headers: cache-control: - no-cache @@ -4749,9 +3869,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:58:48 GMT + - Sat, 06 Aug 2022 05:02:41 GMT etag: - - '"3f00ee30-0000-0d00-0000-62d6a9220000"' + - '"7a004d9b-0000-0d00-0000-62edf46f0000"' expires: - '-1' pragma: @@ -4777,12 +3897,12 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA?api-version=2021-09-01-preview + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963?api-version=2022-08-01 response: body: - string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","name":"1f4aa73e-2d04-4689-a370-1f157ed0ec0e*221E2AACC353877A6BE2C3D375FE51BABC8A8DC3792536145A6C16507B526AEA","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-07-19T12:52:46.5012498Z","endTime":"2022-07-19T12:59:09.0890676Z","error":{},"properties":null}' + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTEUROPE/operationStatuses/c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","name":"c9ff3b58-4aee-44b5-9190-1728aaf50d84*5A2B7E18CED510E64B8E022686CD2387EAD6A56C4AD9360B3404D836A7277963","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamg","status":"Succeeded","startTime":"2022-08-06T04:56:08.2396776Z","endTime":"2022-08-06T05:02:50.6379553Z","error":{},"properties":null}' headers: cache-control: - no-cache @@ -4791,15 +3911,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:59:18 GMT + - Sat, 06 Aug 2022 05:03:11 GMT etag: - - '"3f00a031-0000-0d00-0000-62d6aa9d0000"' + - '"7a002dab-0000-0d00-0000-62edf5fa0000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff status: @@ -4819,15 +3943,15 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments?$filter=principalId%20eq%20%27c20a5e0c-1843-4af9-986d-729f77fae43d%27&api-version=2020-04-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments?$filter=principalId%20eq%20%27c977fab6-1d15-477a-b53c-14dc093cae36%27&api-version=2020-04-01-preview response: body: - string: '{"value":[{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-07-19T12:52:25.7296970Z","updatedOn":"2022-07-19T12:52:25.7296970Z","createdBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","updatedBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/0335db53-ccff-4091-abef-d1d8baf46a20","type":"Microsoft.Authorization/roleAssignments","name":"0335db53-ccff-4091-abef-d1d8baf46a20"}]}' + string: '{"value":[{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T04:55:31.2879909Z","updatedOn":"2022-08-06T04:55:31.2879909Z","createdBy":"a30db067-cde1-49be-95bb-9619a8cc8617","updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}]}' headers: cache-control: - no-cache @@ -4836,7 +3960,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:59:19 GMT + - Sat, 06 Aug 2022 05:03:12 GMT expires: - '-1' pragma: @@ -4872,15 +3996,15 @@ interactions: ParameterSetName: - -g -n --yes User-Agent: - - python/3.9.13 (Windows-10-10.0.19044-SP0) msrest/0.7.1 msrest_azure/0.6.4 - azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/0335db53-ccff-4091-abef-d1d8baf46a20?api-version=2020-04-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2020-04-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c20a5e0c-1843-4af9-986d-729f77fae43d","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-07-19T12:52:25.7296970Z","updatedOn":"2022-07-19T12:52:25.7296970Z","createdBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","updatedBy":"ed86bea3-5154-4d06-839b-11ced3dc0557","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/0335db53-ccff-4091-abef-d1d8baf46a20","type":"Microsoft.Authorization/roleAssignments","name":"0335db53-ccff-4091-abef-d1d8baf46a20"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"c977fab6-1d15-477a-b53c-14dc093cae36","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T04:55:31.2879909Z","updatedOn":"2022-08-06T04:55:31.2879909Z","createdBy":"a30db067-cde1-49be-95bb-9619a8cc8617","updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' headers: cache-control: - no-cache @@ -4889,7 +4013,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:59:21 GMT + - Sat, 06 Aug 2022 05:03:14 GMT expires: - '-1' pragma: @@ -4921,21 +4045,21 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.37.0 azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.9.13 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2021-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Dashboard/grafana?api-version=2022-08-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amg-test/providers/Microsoft.Dashboard/grafana/amg-test-grafana","name":"amg-test-grafana","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westeurope","tags":{},"systemData":{"createdBy":"michelletaal@hotmail.com","createdByType":"User","createdAt":"2022-07-18T14:17:58.934605Z","lastModifiedBy":"michelletaal@hotmail.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-18T14:17:58.934605Z"},"identity":{"principalId":"0433a85e-994f-487e-8726-10d0c079c1fa","tenantId":"2de11026-d33d-44dd-95de-6261863da22e","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://amg-test-grafana-d2bbecdjddctg4hq.weu.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/peqitest/providers/Microsoft.Dashboard/grafana/peqitest0","name":"peqitest0","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"eastus","tags":{},"systemData":{"createdBy":"peqi@microsoft.com","createdByType":"User","createdAt":"2022-06-22T20:08:33.7472212Z","lastModifiedBy":"ce34e7e5-485f-4d76-964f-b3d2b16d1e4f","lastModifiedByType":"Application","lastModifiedAt":"2022-07-22T23:22:52.1164326Z"},"identity":{"principalId":"54deaee2-407c-4aeb-9793-57f7e325ca00","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://peqitest0-bwh5d8f4hybnd6ad.eus.grafana.azure.com","zoneRedundancy":"Disabled","autoGeneratedDomainNameLabelScope":"TenantReuse","publicNetworkAccess":"Enabled","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}]}' headers: cache-control: - no-cache content-length: - - '879' + - '958' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Jul 2022 12:59:22 GMT + - Sat, 06 Aug 2022 05:03:15 GMT expires: - '-1' pragma: @@ -4947,10 +4071,12 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 6f8b7ae1-c78b-4b2b-b33f-257c4ed4edb5 - - 8d368e4e-4d7a-4d9f-b796-66383388a2d1 - - fcc3c6fa-ecfa-4fbc-b05f-05bbd1429e3d - - d73ea77f-898c-4db1-930d-432375c2102b + - 9ad67305-788b-4bdb-866e-83140121c306 + - e9ccf07d-8f78-49ee-84e5-2542ad4e6980 + - 06dc780e-7fd5-4838-9ec0-3423f801a905 + - a082214b-d218-4b81-bfa8-267d1f121492 + - c1a25ed1-d6b1-4d58-b202-ce1fbf463a40 + - ccd0bdf0-bb0e-4c34-9c32-2ea514379bb7 status: code: 200 message: OK diff --git a/src/amg/azext_amg/tests/latest/recordings/test_api_key_e2e.yaml b/src/amg/azext_amg/tests/latest/recordings/test_api_key_e2e.yaml new file mode 100644 index 00000000000..e4901b97c67 --- /dev/null +++ b/src/amg/azext_amg/tests/latest/recordings/test_api_key_e2e.yaml @@ -0,0 +1,1535 @@ +interactions: +- request: + body: '{"sku": {"name": "Standard"}, "properties": {}, "identity": {"type": "SystemAssigned"}, + "location": "westcentralus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + Content-Length: + - '116' + Content-Type: + - application/json + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey?api-version=2022-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","name":"clitestamgapikey","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T05:09:17.8073666Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T05:09:17.8073666Z"},"identity":{"principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted","grafanaVersion":null,"endpoint":"https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' + headers: + api-supported-versions: + - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 + azure-asyncoperation: + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + cache-control: + - no-cache + content-length: + - '1001' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:09:18 GMT + etag: + - '"fd00a878-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + location: + - https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + pragma: + - no-cache + request-context: + - appId=cid-v1:54fcb76e-7bac-4b3e-96f8-8868676d3826 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:09:48 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:10:19 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:10:49 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:11:19 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:11:49 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:12:19 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:12:49 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:13:19 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:13:49 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:14:19 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Accepted","startTime":"2022-08-06T05:09:19.1046067Z"}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:14:50 GMT + etag: + - '"3101e8b2-0000-0600-0000-62edf77f0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E?api-version=2022-08-01 + response: + body: + string: '{"id":"/providers/Microsoft.Dashboard/locations/WESTCENTRALUS/operationStatuses/bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","name":"bebbddbb-2ffc-4e24-b5fc-20423ebd18af*F124049389373494518BBBEE1EB3898440B80F531DE5FD18CBBEF38304E1DF9E","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","status":"Succeeded","startTime":"2022-08-06T05:09:19.1046067Z","endTime":"2022-08-06T05:14:55.5876249Z","error":{},"properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '584' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:20 GMT + etag: + - '"310174d5-0000-0600-0000-62edf8cf0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey?api-version=2022-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","name":"clitestamgapikey","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T05:09:17.8073666Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T05:09:17.8073666Z"},"identity":{"principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '952' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:20 GMT + etag: + - '"fd00ef85-0000-0600-0000-62edf8cf0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-graphrbac/0.60.0 + Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"a30db067-cde1-49be-95bb-9619a8cc8617","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[{"disabledPlans":["b76fb638-6ba6-402a-b9f9-83d28acb3d86","cd31b152-6326-4d1b-ae1b-997b625182e6","a413a9ff-720c-4822-98ef-2f37c2a21f4c","a6520331-d7d4-4276-95f5-15c0933bc757","ded3d325-1bdc-453e-8432-5bac26d7a014","afa73018-811e-46e9-988f-f75d2b1b8430","b21a6b06-1988-436e-a07b-51ec6d9f52ad","531ee2f8-b1cb-453b-9c21-d2180d014ca5","bf28f719-7844-4079-9c78-c1307898e192","28b0fa46-c39a-4188-89e2-58e979a6b014","199a5c09-e0ca-4e37-8f7c-b05d533e1ea2","65cc641f-cccd-4643-97e0-a17e3045e541","e26c2fcc-ab91-4a61-b35c-03cdc8dddf66","46129a58-a698-46f0-aa5b-17f6586297d9","6db1f1db-2b46-403f-be40-e39395f08dbb","6dc145d6-95dd-4191-b9c3-185575ee6f6b","41fcdd7d-4733-4863-9cf4-c65b83ce2df4","c4801e8a-cb58-4c35-aca6-f2dcc106f287","0898bdbb-73b0-471a-81e5-20f1fe4dd66e","617b097b-4b93-4ede-83de-5f075bb5fb2f","33c4f319-9bdd-48d6-9c4d-410b750a4a5a","4828c8ec-dc2e-4779-b502-87ac9ce28ab7","3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"],"skuId":"c7df2760-2c81-4ef7-b578-5b5392b571df"},{"disabledPlans":["b622badb-1b45-48d5-920f-4b27a2c0996c"],"skuId":"3d957427-ecdc-4df2-aacd-01cc9d519da8"},{"disabledPlans":[],"skuId":"85aae730-b3d1-4f99-bb28-c9f81b05137c"},{"disabledPlans":[],"skuId":"9f3d9c1d-25a5-4aaa-8e59-23a1e6450a67"},{"disabledPlans":["39b5c996-467e-4e60-bd62-46066f572726"],"skuId":"90d8b3f8-712e-4f7b-aa1e-62e7ae6cbe96"},{"disabledPlans":["e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72"],"skuId":"09015f9f-377f-4538-bbb5-f75ceb09358a"},{"disabledPlans":[],"skuId":"f30db892-07e9-47e9-837c-80727f46fd3d"},{"disabledPlans":[],"skuId":"34715a50-7d92-426f-99e9-f815e0ae1de5"},{"disabledPlans":[],"skuId":"26a18e8f-4d14-46f8-835a-ed3ba424a961"},{"disabledPlans":[],"skuId":"412ce1a7-a499-41b3-8eb6-b38f2bbc5c3f"},{"disabledPlans":[],"skuId":"488ba24a-39a9-4473-8ee5-19291e71b002"},{"disabledPlans":[],"skuId":"b05e124f-c7cc-45a0-a6aa-8cf78c946968"},{"disabledPlans":["0b03f40b-c404-40c3-8651-2aceb74365fa","b650d915-9886-424b-a08d-633cede56f57","e95bec33-7c88-4a70-8e19-b10bd9d0c014","5dbe027f-2339-4123-9542-606e4d348a72","fe71d6c3-a2ea-4499-9778-da042bf08063","fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"],"skuId":"ea126fc5-a19e-42e2-a731-da9d437bffcf"},{"disabledPlans":[],"skuId":"c5928f49-12ba-48f7-ada3-0d743a3601d5"}],"assignedPlans":[{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WindowsUpdateforBusinessCloudExtensions","servicePlanId":"7bf960f6-2cd9-443a-8046-5dbff9558365"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"18fa3aba-b085-4105-87d7-55617b8585e6"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ERP","servicePlanId":"69f07c66-bee4-4222-b051-195095efee5b"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"0a05d977-a21a-45b2-91ce-61c240dbafa2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"7e6d7d78-73de-46ba-83b1-6d25117334ba"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WorkplaceAnalytics","servicePlanId":"f477b0f0-3bb1-4890-940c-40fcee6ce05f"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"f3d5636e-ddc2-41bf-bba6-ca6fadece269"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftPrint","servicePlanId":"795f6fe0-cc4d-4773-b050-5dde4dc704c9"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftFormsProTest","servicePlanId":"97f29a83-1a20-44ff-bf48-5e4ad11f3e51"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"DYN365AISERVICEINSIGHTS","servicePlanId":"1412cdc1-d593-4ad1-9050-40c30ad0b023"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProjectProgramsAndPortfolios","servicePlanId":"818523f5-016b-4355-9be8-ed6944946ea7"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"fa200448-008c-4acb-abd4-ea106ed2199d"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"50554c47-71d9-49fd-bc54-42a2765c555c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"fe47a034-ab6d-4cb4-bdb4-9551354b177e"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"018fb91e-cee3-418c-9063-d7562978bdaf"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"ca4be917-fbce-4b52-839e-6647467a1668"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"6c57d4b6-3b23-47a5-9bc9-69f17b4947b3"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"WindowsDefenderATP","servicePlanId":"871d91ec-ec1a-452b-a83f-bd76c7d770ef"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Windows","servicePlanId":"e7c91390-7625-45be-94e0-e16907e03118"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AzureAdvancedThreatAnalytics","servicePlanId":"14ab5db5-e6c4-4b20-b4bc-13e36fd2227f"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"41781fb2-bc02-4b7c-bd55-b576c07bb09d"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MultiFactorService","servicePlanId":"8a256a2b-b617-496d-b51b-e76466e88db0"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"5689bec4-755d-4753-8b61-40975025187c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"2e2ddb96-6af9-4b1d-a3f0-d6ecfd22edb2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"Netbreeze","servicePlanId":"03acaee3-9492-4f40-aed4-bcb6b32981b6"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"d56f3deb-50d8-465a-bedb-f079817ccac1"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"AADPremiumService","servicePlanId":"eec0eb4f-6444-4f95-aba0-50c24d67f998"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SCO","servicePlanId":"c1ec4a95-1f05-45b3-a911-aa3fa01094f5"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"2d589a15-b171-4e61-9b5f-31d15eeb2872"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"59231cdf-b40d-4534-a93e-14d0cd31d27e"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"199a5c09-e0ca-4e37-8f7c-b05d533e1ea2"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b622badb-1b45-48d5-920f-4b27a2c0996c"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"fafd7243-e5c1-4a3a-9e40-495efcb1d3c3"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"e95bec33-7c88-4a70-8e19-b10bd9d0c014"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"5dbe027f-2339-4123-9542-606e4d348a72"},{"assignedTimestamp":"2022-03-06T07:12:31Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"fe71d6c3-a2ea-4499-9778-da042bf08063"},{"assignedTimestamp":"2021-04-15T15:12:57Z","capabilityStatus":"Deleted","service":"MIPExchangeSolutions","servicePlanId":"cd31b152-6326-4d1b-ae1b-997b625182e6"},{"assignedTimestamp":"2020-12-22T01:12:21Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"2f442157-a11c-46b9-ae5b-6e39ff4e5849"},{"assignedTimestamp":"2020-11-03T16:30:18Z","capabilityStatus":"Deleted","service":"M365CommunicationCompliance","servicePlanId":"a413a9ff-720c-4822-98ef-2f37c2a21f4c"},{"assignedTimestamp":"2020-08-14T15:32:15Z","capabilityStatus":"Enabled","service":"YammerEnterprise","servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653"},{"assignedTimestamp":"2019-11-04T20:01:59Z","capabilityStatus":"Enabled","service":"WhiteboardServices","servicePlanId":"4a51bca5-1eff-43f5-878c-177680f191af"},{"assignedTimestamp":"2019-10-14T20:43:01Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"5136a095-5cf0-4aff-bec3-e84448b38ea5"},{"assignedTimestamp":"2019-10-14T20:43:01Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb0351d-3b08-4503-993d-383af8de41e3"},{"assignedTimestamp":"2019-03-27T23:17:23Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"50e68c76-46c6-4674-81f9-75456511b170"},{"assignedTimestamp":"2019-03-27T23:17:23Z","capabilityStatus":"Enabled","service":"CRM","servicePlanId":"17ab22cd-a0b3-4536-910a-cb6eb12696c0"},{"assignedTimestamp":"2018-11-30T00:32:45Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"b1188c4c-1b36-4018-b48b-ee07604f6feb"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"3e26ee1f-8a5f-4d52-aee2-b81ce45c8f40"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"4828c8ec-dc2e-4779-b502-87ac9ce28ab7"},{"assignedTimestamp":"2018-09-21T00:27:48Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"5a10155d-f5c1-411a-a8ec-e99aae125390"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Enabled","service":"Sway","servicePlanId":"a23b959c-7ce8-4e57-9140-b90eb88a9e97"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Enabled","service":"RMSOnline","servicePlanId":"bea4c11e-220a-4e6d-8eb8-8ea15d019f90"},{"assignedTimestamp":"2018-08-28T18:54:42Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"159f4cd6-e380-449f-a816-af1a9ef76344"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"2bdbaf8f-738f-4ac7-9234-3c3ee2ce7d0f"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"2125cfd7-2110-4567-83c4-c1cd5275163d"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Enabled","service":"SharePoint","servicePlanId":"da792a53-cbc0-4184-a10d-e544dd34b3c1"},{"assignedTimestamp":"2018-04-24T01:47:06Z","capabilityStatus":"Deleted","service":"SharePoint","servicePlanId":"c4048e79-4474-4c74-ba9b-c31ff225e511"},{"assignedTimestamp":"2018-03-20T02:14:40Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"acffdce6-c30f-4dc2-81c0-372e33c515ec"},{"assignedTimestamp":"2018-01-09T10:35:29Z","capabilityStatus":"Enabled","service":"ProjectWorkManagement","servicePlanId":"b737dad2-2f6c-4c65-90e3-ca563267e8b9"},{"assignedTimestamp":"2017-12-31T03:27:36Z","capabilityStatus":"Deleted","service":"Adallom","servicePlanId":"932ad362-64a8-4783-9106-97849a1a30b9"},{"assignedTimestamp":"2017-12-17T18:29:20Z","capabilityStatus":"Enabled","service":"To-Do","servicePlanId":"3fb82609-8c27-4f7b-bd51-30634711ee67"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"Adallom","servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"TeamspaceAPI","servicePlanId":"57ff2da0-773e-42df-b2af-ffb7a2317929"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"ProcessSimple","servicePlanId":"76846ad7-7776-4c40-a281-a386362dd1b9"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"PowerAppsService","servicePlanId":"c68f8d98-5534-41c8-bf36-22fa496fa792"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"MicrosoftCommunicationsOnline","servicePlanId":"0feaeb32-d00e-4d66-bd5a-43b5b83db82c"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"Deskless","servicePlanId":"8c7d2df8-86f0-4902-b2ed-a0458298f3b3"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"MicrosoftStream","servicePlanId":"9e700747-8b1d-45e5-ab8d-ef187ceec156"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"efb87545-963c-4e0d-99df-69c6916d9eb0"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"43de0ff5-c92c-492b-9116-175376d08c38"},{"assignedTimestamp":"2017-07-06T19:19:58Z","capabilityStatus":"Deleted","service":"OfficeForms","servicePlanId":"2789c901-c14e-48ab-a76a-be334d9d793a"},{"assignedTimestamp":"2017-07-06T19:19:57Z","capabilityStatus":"Enabled","service":"OfficeForms","servicePlanId":"e212cbc7-0961-4c40-9825-01117710dcb1"},{"assignedTimestamp":"2017-06-12T08:23:48Z","capabilityStatus":"Enabled","service":"MicrosoftStream","servicePlanId":"6c6042f5-6f01-4d67-b8c1-eb99d36eed3e"},{"assignedTimestamp":"2017-05-12T23:33:35Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"8e0c0a52-6a6c-4d40-8370-dd62790dcd70"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"9f431833-0334-42de-a7dc-70aa40db46db"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"PowerBI","servicePlanId":"70d33638-9c74-4d01-bfd3-562de28bd4ba"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"4de31727-a228-4ec3-a5bf-8e45b5ca48cc"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Deleted","service":"AzureAnalysis","servicePlanId":"2049e525-b859-401b-b2a0-e0a31c4b1fe4"},{"assignedTimestamp":"2017-01-26T08:02:47Z","capabilityStatus":"Enabled","service":"exchange","servicePlanId":"34c0d7a0-a70f-4668-9238-47f9fc208882"},{"assignedTimestamp":"2016-12-19T03:16:33Z","capabilityStatus":"Deleted","service":"PowerBI","servicePlanId":"fc0a60aa-feee-4746-a0e3-aecfe81a38dd"},{"assignedTimestamp":"2016-11-18T18:51:08Z","capabilityStatus":"Enabled","service":"PowerAppsService","servicePlanId":"9c0dab89-a30c-4117-86e7-97bda240acd2"},{"assignedTimestamp":"2016-11-18T18:51:08Z","capabilityStatus":"Enabled","service":"ProcessSimple","servicePlanId":"07699545-9485-468e-95b6-2fca3738be01"},{"assignedTimestamp":"2012-10-10T07:21:11Z","capabilityStatus":"Enabled","service":"MicrosoftOffice","servicePlanId":"663a804f-1c30-4ff0-9915-9db84f0d1cea"},{"assignedTimestamp":"2015-07-30T06:17:13Z","capabilityStatus":"Deleted","service":"MicrosoftCommunicationsOnline","servicePlanId":"27216c54-caf8-4d0d-97e2-517afb5c08f6"}],"city":"REDMOND","companyName":"Microsoft","consentProvidedForMinor":null,"country":null,"createdDateTime":null,"creationType":null,"department":"Azure + Dev Exp","dirSyncEnabled":true,"displayName":"Yugang Wang","employeeId":null,"facsimileTelephoneNumber":null,"givenName":"Yugang","immutableId":"138058","isCompromised":null,"jobTitle":"PRINCIPAL + SWE MGR","lastDirSyncTime":"2022-07-30T02:00:31Z","legalAgeGroupClassification":null,"mail":"example@example.com","mailNickname":"yugangw","mobile":null,"onPremisesDistinguishedName":"CN=Yugang + Wang,OU=MSE,OU=Users,OU=CoreIdentity,DC=redmond,DC=corp,DC=microsoft,DC=com","onPremisesSecurityIdentifier":"S-1-5-21-2127521184-1604012920-1887927527-415191","otherMails":[],"passwordPolicies":"DisablePasswordExpiration","passwordProfile":null,"physicalDeliveryOfficeName":"18/3700FL","postalCode":null,"preferredLanguage":null,"provisionedPlans":[{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"SharePoint"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"Netbreeze"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"CRM"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"exchange"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"},{"capabilityStatus":"Deleted","provisioningStatus":"Success","service":"MicrosoftCommunicationsOnline"},{"capabilityStatus":"Enabled","provisioningStatus":"Success","service":"MicrosoftOffice"}],"provisioningErrors":[],"proxyAddresses":["X500:/O=Nokia/OU=HUB/cn=Recipients/cn=yugangw","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=sdflabs.com-51490-Yugang + Wang (Volt)e3d6fb0c","X500:/o=microsoft/ou=northamerica/cn=Recipients/cn=572513","X500:/o=microsoft/ou=First + Administrative Group/cn=Recipients/cn=yugangw","X500:/o=microsoft/ou=External + (FYDIBOHF25SPDLT)/cn=Recipients/cn=0e00e165bf5842568a693fea3aa4faad","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=yugangw_microsoft.com","X500:/o=SDF/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=sdflabs.com-51490-Yugang + Wang","X500:/o=SDF/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=51490-yugangw_c50b13e019","X500:/o=MSNBC/ou=Servers/cn=Recipients/cn=yugangw","X500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=yugangw17d63dbbde","X500:/o=ExchangeLabs/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=microsoft.onmicrosoft.com-55760-Yugang + Wang (Volt)","X500:/O=Microsoft/OU=APPS-WGA/cn=Recipients/cn=yugangw","X500:/o=MMS/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Yugang Wang5ec8094e-2aed-488b-a327-9baed3c38367","SMTP:example@example.com","smtp:a-ywang2@microsoft.com","smtp:yugangw@msg.microsoft.com","x500:/o=microsoft/ou=Exchange + Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Yugang Wang (Volt)","smtp:YUGANGW@service.microsoft.com"],"refreshTokensValidFromDateTime":"2019-08-29T00:11:39Z","showInAddressList":null,"signInNames":[],"sipProxyAddress":"example@example.com","state":null,"streetAddress":null,"surname":"Wang","telephoneNumber":"+1 + (425) 7069936","thumbnailPhoto@odata.mediaEditLink":"directoryObjects/a30db067-cde1-49be-95bb-9619a8cc8617/Microsoft.DirectoryServices.User/thumbnailPhoto","thumbnailPhoto@odata.mediaContentType":"image/Jpeg","usageLocation":"US","userIdentities":[],"userPrincipalName":"example@example.com","userState":null,"userStateChangedOn":null,"userType":"Member","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToFullName":"Qing + Ye","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToPersonnelNbr":"128505","extension_18e31482d3fb4a8ea958aa96b662f508_ReportsToEmailName":"QINGYE","extension_18e31482d3fb4a8ea958aa96b662f508_ProfitCenterCode":"P10040929","extension_18e31482d3fb4a8ea958aa96b662f508_PositionNumber":"72580592","extension_18e31482d3fb4a8ea958aa96b662f508_CostCenterCode":"10040929","extension_18e31482d3fb4a8ea958aa96b662f508_CompanyCode":"1010","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingName":"18","extension_18e31482d3fb4a8ea958aa96b662f508_ZipCode":"98052","extension_18e31482d3fb4a8ea958aa96b662f508_StateProvinceCode":"WA","extension_18e31482d3fb4a8ea958aa96b662f508_CountryShortCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_CityName":"REDMOND","extension_18e31482d3fb4a8ea958aa96b662f508_AddressLine1":"1 + Microsoft Way","extension_18e31482d3fb4a8ea958aa96b662f508_LocationAreaCode":"US","extension_18e31482d3fb4a8ea958aa96b662f508_BuildingID":"17","extension_18e31482d3fb4a8ea958aa96b662f508_PersonnelNumber":"138058"}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '23104' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Sat, 06 Aug 2022 05:15:20 GMT + duration: + - '4538492' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - yyuJ/12Nv6hG1eilgn+xNPmvhFCAufkz5XdpfLtVshc= + ocp-aad-session-key: + - QzlrksXUmO2tuNUMcoEbHl-mE-HT-1i8-iDGP8G--42QW1r6GgDxKtaP1WIuAoH62GpY1zXHKFBkCBE1GMTSBic-QcpqEeAD7M0Y37wQdzPs3A9URG8u7OJMkDHbP0Hn.C9xwRooouDfZpMCYIQ5eOZAjy3nkg_1NvUzbJqkLjMY + pragma: + - no-cache + request-id: + - 94c63643-3b1e-4dd6-9c85-74edb0f54dbd + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Grafana%20Admin%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Grafana Admin","type":"BuiltInRole","description":"Built-in + Grafana admin role","assignableScopes":["/"],"permissions":[{"actions":[],"notActions":[],"dataActions":["Microsoft.Dashboard/grafana/ActAsGrafanaAdmin/action"],"notDataActions":[]}],"createdOn":"2021-07-15T21:32:35.3802340Z","updatedOn":"2021-11-11T20:15:14.8104670Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41","type":"Microsoft.Authorization/roleDefinitions","name":"22926164-76b3-42b3-bc55-97df8dab3e41"}]}' + headers: + cache-control: + - no-cache + content-length: + - '644' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:21 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41", + "principalId": "a30db067-cde1-49be-95bb-9619a8cc8617"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -l + User-Agent: + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/22926164-76b3-42b3-bc55-97df8dab3e41","principalId":"a30db067-cde1-49be-95bb-9619a8cc8617","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T05:15:22.4304708Z","updatedOn":"2022-08-06T05:15:22.7429837Z","createdBy":null,"updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + headers: + cache-control: + - no-cache + content-length: + - '989' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:24 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + ParameterSetName: + - -g -n -l + User-Agent: + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Monitoring%20Reader%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Monitoring Reader","type":"BuiltInRole","description":"Can + read all monitoring data.","assignableScopes":["/"],"permissions":[{"actions":["*/read","Microsoft.OperationalInsights/workspaces/search/action","Microsoft.Support/*"],"notActions":[],"dataActions":["Microsoft.Monitor/accounts/data/metrics/read"],"notDataActions":[]}],"createdOn":"2016-09-21T19:19:52.4939376Z","updatedOn":"2022-07-07T00:23:17.8373589Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","type":"Microsoft.Authorization/roleDefinitions","name":"43d0d8ad-25c7-4714-9337-8ba259a9fe05"}]}' + headers: + cache-control: + - no-cache + content-length: + - '729' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:24 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05", + "principalId": "cb0d1bae-d01a-4697-9121-f7ab63036aea"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n -l + User-Agent: + - python/3.8.8 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 + Azure-SDK-For-Python AZURECLI/2.39.0 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05","principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000","condition":null,"conditionVersion":null,"createdOn":"2022-08-06T05:15:25.7382063Z","updatedOn":"2022-08-06T05:15:26.0506367Z","createdBy":null,"updatedBy":"a30db067-cde1-49be-95bb-9619a8cc8617","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' + headers: + cache-control: + - no-cache + content-length: + - '823' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:27 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana update + Connection: + - keep-alive + ParameterSetName: + - -g -n --api-key + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey?api-version=2022-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","name":"clitestamgapikey","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T05:09:17.8073666Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T05:09:17.8073666Z"},"identity":{"principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Disabled","deterministicOutboundIP":"Disabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '952' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:28 GMT + etag: + - '"fd00ef85-0000-0600-0000-62edf8cf0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"sku": {"name": "Standard"}, "properties": {"publicNetworkAccess": "Enabled", + "zoneRedundancy": "Disabled", "apiKey": "Enabled", "deterministicOutboundIP": + "Disabled", "autoGeneratedDomainNameLabelScope": "TenantReuse"}, "identity": + {"type": "SystemAssigned"}, "location": "westcentralus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana update + Connection: + - keep-alive + Content-Length: + - '290' + Content-Type: + - application/json + ParameterSetName: + - -g -n --api-key + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey?api-version=2022-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","name":"clitestamgapikey","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T05:09:17.8073666Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T05:15:29.6271775Z"},"identity":{"principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Enabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' + headers: + api-supported-versions: + - 2021-09-01-preview, 2022-05-01-preview, 2022-08-01 + cache-control: + - no-cache + content-length: + - '1004' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:29 GMT + etag: + - '"fd003587-0000-0600-0000-62edf8f20000"' + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:54fcb76e-7bac-4b3e-96f8-8868676d3826 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - grafana api-key list + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.39.0 (MSI) azsdk-python-mgmt-dashboard/1.0.0b1 Python/3.8.8 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey?api-version=2022-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_amg000001/providers/Microsoft.Dashboard/grafana/clitestamgapikey","name":"clitestamgapikey","type":"microsoft.dashboard/grafana","sku":{"name":"Standard"},"location":"westcentralus","systemData":{"createdBy":"example@example.com","createdByType":"User","createdAt":"2022-08-06T05:09:17.8073666Z","lastModifiedBy":"example@example.com","lastModifiedByType":"User","lastModifiedAt":"2022-08-06T05:15:29.6271775Z"},"identity":{"principalId":"cb0d1bae-d01a-4697-9121-f7ab63036aea","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","grafanaVersion":"9.0.1","endpoint":"https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com","zoneRedundancy":"Disabled","publicNetworkAccess":"Enabled","privateEndpointConnections":null,"autoGeneratedDomainNameLabelScope":"TenantReuse","apiKey":"Enabled","deterministicOutboundIP":"Disabled","outboundIPs":null}}' + headers: + cache-control: + - no-cache + content-length: + - '1004' + content-type: + - application/json; charset=utf-8 + date: + - Sat, 06 Aug 2022 05:15:30 GMT + etag: + - '"fd003587-0000-0600-0000-62edf8f20000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: GET + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys?includedExpired=false&accesscontrol=true + response: + body: + string: '[]' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '2' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:33 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762932.711.35.962692|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "apikey1", "role": "Admin", "secondsToLive": 259200}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: POST + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys + response: + body: + string: '{"id":1,"name":"apikey1","key":"eyJrIjoiVFBzM2hQZENtTWRpc2g3MGZYUDE0T29xVVh4RFFxaXciLCJuIjoiYXBpa2V5MSIsImlkIjoxfQ=="}' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '118' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:34 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762934.833.35.705058|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "apikey2", "role": "Viewer", "secondsToLive": 86400}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: POST + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys + response: + body: + string: '{"id":2,"name":"apikey2","key":"eyJrIjoiSGFSVFVBVWthMkRTMHlVUkNWa1Y3M0YxdmlhRzFQa3EiLCJuIjoiYXBpa2V5MiIsImlkIjoxfQ=="}' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '118' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762935.57.36.688564|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: GET + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys?includedExpired=false&accesscontrol=true + response: + body: + string: '[{"id":1,"name":"apikey1","role":"Admin","expiration":"2022-08-09T05:15:34Z","accessControl":{"apikeys:delete":true,"apikeys:read":true}},{"id":2,"name":"apikey2","role":"Viewer","expiration":"2022-08-07T05:15:35Z","accessControl":{"apikeys:delete":true,"apikeys:read":true}}]' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '276' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762936.281.36.218540|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: GET + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys?includedExpired=false&accesscontrol=true + response: + body: + string: '[{"id":1,"name":"apikey1","role":"Admin","expiration":"2022-08-09T05:15:34Z","accessControl":{"apikeys:delete":true,"apikeys:read":true}},{"id":2,"name":"apikey2","role":"Viewer","expiration":"2022-08-07T05:15:35Z","accessControl":{"apikeys:delete":true,"apikeys:read":true}}]' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '276' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762936.56.36.459470|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: DELETE + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/auth/keys/2 + response: + body: + string: '{"message":"API key deleted"}' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-length: + - '29' + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:35 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762936.748.34.11301|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + content-type: + - application/json + method: GET + uri: https://clitestamgapikey-etcge6b7emaecdaa.wcus.grafana.azure.com/api/search?type=dash-db + response: + body: + string: '[{"id":21,"uid":"OSBzdgnnz","title":"Agent QoS","uri":"db/agent-qos","url":"/d/OSBzdgnnz/agent-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":15,"uid":"54KhiZ7nz","title":"AKS + Linux Sample Application","uri":"db/aks-linux-sample-application","url":"/d/54KhiZ7nz/aks-linux-sample-application","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":16,"uid":"6uRDjTNnz","title":"App + Detail","uri":"db/app-detail","url":"/d/6uRDjTNnz/app-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":2,"uid":"dyzn5SK7z","title":"Azure + / Alert Consumption","uri":"db/azure-alert-consumption","url":"/d/dyzn5SK7z/azure-alert-consumption","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":4,"uid":"Yo38mcvnz","title":"Azure + / Insights / Applications","uri":"db/azure-insights-applications","url":"/d/Yo38mcvnz/azure-insights-applications","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":8,"uid":"INH9berMk","title":"Azure + / Insights / Cosmos DB","uri":"db/azure-insights-cosmos-db","url":"/d/INH9berMk/azure-insights-cosmos-db","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":9,"uid":"8UDB1s3Gk","title":"Azure + / Insights / Data Explorer Clusters","uri":"db/azure-insights-data-explorer-clusters","url":"/d/8UDB1s3Gk/azure-insights-data-explorer-clusters","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":10,"uid":"tQZAMYrMk","title":"Azure + / Insights / Key Vaults","uri":"db/azure-insights-key-vaults","url":"/d/tQZAMYrMk/azure-insights-key-vaults","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":6,"uid":"3n2E8CrGk","title":"Azure + / Insights / Storage Accounts","uri":"db/azure-insights-storage-accounts","url":"/d/3n2E8CrGk/azure-insights-storage-accounts","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":3,"uid":"AzVmInsightsByRG","title":"Azure + / Insights / Virtual Machines by Resource Group","uri":"db/azure-insights-virtual-machines-by-resource-group","url":"/d/AzVmInsightsByRG/azure-insights-virtual-machines-by-resource-group","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":7,"uid":"AzVmInsightsByWS","title":"Azure + / Insights / Virtual Machines by Workspace","uri":"db/azure-insights-virtual-machines-by-workspace","url":"/d/AzVmInsightsByWS/azure-insights-virtual-machines-by-workspace","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":5,"uid":"Mtwt2BV7k","title":"Azure + / Resources Overview","uri":"db/azure-resources-overview","url":"/d/Mtwt2BV7k/azure-resources-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":1,"folderUid":"az-mon","folderTitle":"Azure + Monitor","folderUrl":"/dashboards/f/az-mon/azure-monitor","sortMeta":0},{"id":17,"uid":"xLERdASnz","title":"Cluster + Detail","uri":"db/cluster-detail","url":"/d/xLERdASnz/cluster-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":24,"uid":"vkQ0UHxiddk","title":"CoreDNS","uri":"db/coredns","url":"/d/vkQ0UHxiddk/coredns","slug":"","type":"dash-db","tags":["coredns-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":18,"uid":"QTVw7iK7z","title":"Geneva + Health","uri":"db/geneva-health","url":"/d/QTVw7iK7z/geneva-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":22,"uid":"icm-example","title":"IcM + Canned Dashboard","uri":"db/icm-canned-dashboard","url":"/d/icm-example/icm-canned-dashboard","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":19,"uid":"sVKyjvpnz","title":"Incoming + Service QoS","uri":"db/incoming-service-qos","url":"/d/sVKyjvpnz/incoming-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":25,"uid":"09ec8aa1e996d6ffcd6817bbaff4db1b","title":"Kubernetes + / API server","uri":"db/kubernetes-api-server","url":"/d/09ec8aa1e996d6ffcd6817bbaff4db1b/kubernetes-api-server","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":26,"uid":"efa86fd1d0c121a26444b636a3f509a8","title":"Kubernetes + / Compute Resources / Cluster","uri":"db/kubernetes-compute-resources-cluster","url":"/d/efa86fd1d0c121a26444b636a3f509a8/kubernetes-compute-resources-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":27,"uid":"85a562078cdf77779eaa1add43ccec1e","title":"Kubernetes + / Compute Resources / Namespace (Pods)","uri":"db/kubernetes-compute-resources-namespace-pods","url":"/d/85a562078cdf77779eaa1add43ccec1e/kubernetes-compute-resources-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":28,"uid":"a87fb0d919ec0ea5f6543124e16c42a5","title":"Kubernetes + / Compute Resources / Namespace (Workloads)","uri":"db/kubernetes-compute-resources-namespace-workloads","url":"/d/a87fb0d919ec0ea5f6543124e16c42a5/kubernetes-compute-resources-namespace-workloads","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":29,"uid":"200ac8fdbfbb74b39aff88118e4d1c2c","title":"Kubernetes + / Compute Resources / Node (Pods)","uri":"db/kubernetes-compute-resources-node-pods","url":"/d/200ac8fdbfbb74b39aff88118e4d1c2c/kubernetes-compute-resources-node-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":30,"uid":"6581e46e4e5c7ba40a07646395ef7b23","title":"Kubernetes + / Compute Resources / Pod","uri":"db/kubernetes-compute-resources-pod","url":"/d/6581e46e4e5c7ba40a07646395ef7b23/kubernetes-compute-resources-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":31,"uid":"a164a7f0339f99e89cea5cb47e9be617","title":"Kubernetes + / Compute Resources / Workload","uri":"db/kubernetes-compute-resources-workload","url":"/d/a164a7f0339f99e89cea5cb47e9be617/kubernetes-compute-resources-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":32,"uid":"3138fa155d5915769fbded898ac09ff9","title":"Kubernetes + / Kubelet","uri":"db/kubernetes-kubelet","url":"/d/3138fa155d5915769fbded898ac09ff9/kubernetes-kubelet","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":33,"uid":"ff635a025bcfea7bc3dd4f508990a3e9","title":"Kubernetes + / Networking / Cluster","uri":"db/kubernetes-networking-cluster","url":"/d/ff635a025bcfea7bc3dd4f508990a3e9/kubernetes-networking-cluster","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":34,"uid":"8b7a8b326d7a6f1f04244066368c67af","title":"Kubernetes + / Networking / Namespace (Pods)","uri":"db/kubernetes-networking-namespace-pods","url":"/d/8b7a8b326d7a6f1f04244066368c67af/kubernetes-networking-namespace-pods","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":35,"uid":"bbb2a765a623ae38130206c7d94a160f","title":"Kubernetes + / Networking / Namespace (Workload)","uri":"db/kubernetes-networking-namespace-workload","url":"/d/bbb2a765a623ae38130206c7d94a160f/kubernetes-networking-namespace-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":36,"uid":"7a18067ce943a40ae25454675c19ff5c","title":"Kubernetes + / Networking / Pod","uri":"db/kubernetes-networking-pod","url":"/d/7a18067ce943a40ae25454675c19ff5c/kubernetes-networking-pod","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":37,"uid":"728bf77cc1166d2f3133bf25846876cc","title":"Kubernetes + / Networking / Workload","uri":"db/kubernetes-networking-workload","url":"/d/728bf77cc1166d2f3133bf25846876cc/kubernetes-networking-workload","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":38,"uid":"919b92a8e8041bd567af9edab12c840c","title":"Kubernetes + / Persistent Volumes","uri":"db/kubernetes-persistent-volumes","url":"/d/919b92a8e8041bd567af9edab12c840c/kubernetes-persistent-volumes","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":39,"uid":"632e265de029684c40b21cb76bca4f94","title":"Kubernetes + / Proxy","uri":"db/kubernetes-proxy","url":"/d/632e265de029684c40b21cb76bca4f94/kubernetes-proxy","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":40,"uid":"F4bizNZ7k","title":"Kubernetes + / StatefulSets","uri":"db/kubernetes-statefulsets","url":"/d/F4bizNZ7k/kubernetes-statefulsets","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":44,"uid":"VESDBJS7k","title":"Kubernetes + / USE Method / Cluster(Windows)","uri":"db/kubernetes-use-method-cluster-windows","url":"/d/VESDBJS7k/kubernetes-use-method-cluster-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":45,"uid":"YCBDf1I7k","title":"Kubernetes + / USE Method / Node(Windows)","uri":"db/kubernetes-use-method-node-windows","url":"/d/YCBDf1I7k/kubernetes-use-method-node-windows","slug":"","type":"dash-db","tags":["kubernetes-mixin"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":20,"uid":"_sKhXTH7z","title":"Node + Detail","uri":"db/node-detail","url":"/d/_sKhXTH7z/node-detail","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":41,"uid":"D4pVsnCGz","title":"Nodes + (Node exporter)","uri":"db/nodes-node-exporter","url":"/d/D4pVsnCGz/nodes-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":12,"uid":"6naEwcp7z","title":"Outgoing + Service QoS","uri":"db/outgoing-service-qos","url":"/d/6naEwcp7z/outgoing-service-qos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":46,"uid":"UskST-Snz","title":"Prometheus-Collector + Health","uri":"db/prometheus-collector-health","url":"/d/UskST-Snz/prometheus-collector-health","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":13,"uid":"GIgvhSV7z","title":"Service + Fabric Application Overview","uri":"db/service-fabric-application-overview","url":"/d/GIgvhSV7z/service-fabric-application-overview","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0},{"id":42,"uid":"VdrOA7jGz","title":"USE + Method / Cluster (Node exporter)","uri":"db/use-method-cluster-node-exporter","url":"/d/VdrOA7jGz/use-method-cluster-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":43,"uid":"t5ajanjMk","title":"USE + Method / Node (Node exporter)","uri":"db/use-method-node-node-exporter","url":"/d/t5ajanjMk/use-method-node-node-exporter","slug":"","type":"dash-db","tags":["node + exporter"],"isStarred":false,"folderId":23,"folderUid":"PrometheusMDM","folderTitle":"Azure + Monitor Container Insights","folderUrl":"/dashboards/f/PrometheusMDM/azure-monitor-container-insights","sortMeta":0},{"id":14,"uid":"duj3tR77k","title":"WarmPathQoS","uri":"db/warmpathqos","url":"/d/duj3tR77k/warmpathqos","slug":"","type":"dash-db","tags":[],"isStarred":false,"folderId":11,"folderUid":"geneva","folderTitle":"Geneva","folderUrl":"/dashboards/f/geneva/geneva","sortMeta":0}]' + headers: + cache-control: + - no-cache + connection: + - keep-alive + content-security-policy: + - 'script-src: ''unsafe-eval'' ''unsafe-inline'';' + content-type: + - application/json + date: + - Sat, 06 Aug 2022 05:15:36 GMT + expires: + - '-1' + pragma: + - no-cache + request-context: + - appId=cid-v1:9ec01a72-f829-441f-8754-21b0c7a10162 + set-cookie: + - INGRESSCOOKIE=1659762937.03.33.585126|536a49a9056dcf5427f82e0e17c1daf3; Path=/; + Secure; HttpOnly + strict-transport-security: + - max-age=15724800; includeSubDomains + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-frame-options: + - deny + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/src/amg/azext_amg/tests/latest/test_amg_livescenario.py b/src/amg/azext_amg/tests/latest/test_amg_livescenario.py deleted file mode 100644 index 13e44af95e1..00000000000 --- a/src/amg/azext_amg/tests/latest/test_amg_livescenario.py +++ /dev/null @@ -1,167 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -import os -import unittest - -from azure.cli.testsdk import (ResourceGroupPreparer, LiveScenarioTest) -from azure.cli.testsdk .scenario_tests import AllowLargeResponse -from .test_definitions import (test_data_source, test_notification_channel, test_dashboard) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -class AmgLiveScenarioTest(LiveScenarioTest): - - @AllowLargeResponse(size_kb=3072) - @ResourceGroupPreparer(name_prefix='cli_test_amg', location='westeurope') - def test_amg_e2e(self, resource_group): - - # Test Instance - self.kwargs.update({ - 'name': 'clitestamg', - 'location': 'westeurope' - }) - - self.cmd('grafana create -g {rg} -n {name} -l {location} --tags foo=doo', checks=[ - self.check('tags.foo', 'doo'), - self.check('name', '{name}') - ]) - - self.cmd('grafana list -g {rg}') - count = len(self.cmd('grafana list').get_output_in_json()) - - self.cmd('grafana show -g {rg} -n {name}', checks=[ - self.check('name', '{name}'), - self.check('resourceGroup', '{rg}'), - self.check('tags.foo', 'doo') - ]) - - # Test User - response_list = self.cmd('grafana user list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_list) > 0) - - response_actual_user = self.cmd('grafana user actual-user -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_actual_user) > 0) - - # Test Folder - self.kwargs.update({ - 'title': 'Test Folder', - 'update_title': 'Test Folder Update' - }) - - response_create = self.cmd('grafana folder create -g {rg} -n {name} --title "{title}"', checks=[ - self.check("[title]", "['{title}']")]).get_output_in_json() - - self.kwargs.update({ - 'folder_uid': response_create["uid"] - }) - - self.cmd('grafana folder show -g {rg} -n {name} --folder "{title}"', checks=[ - self.check("[title]", "['{title}']")]) - - self.cmd('grafana folder update -g {rg} -n {name} --folder "{folder_uid}" --title "{update_title}"', checks=[ - self.check("[title]", "['{update_title}']")]) - - response_list = self.cmd('grafana folder list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_list) > 0) - - self.cmd('grafana folder delete -g {rg} -n {name} --folder "{update_title}"') - response_delete = self.cmd('grafana folder list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_delete) == len(response_list) - 1) - - - # Test Data Source - self.kwargs.update({ - 'definition': test_data_source, - 'definition_name': test_data_source["name"] - }) - - self.cmd('grafana data-source create -g {rg} -n {name} --definition "{definition}"', checks=[ - self.check("[name]", "['{definition_name}']")]) - - self.cmd('grafana data-source show -g {rg} -n {name} --data-source "{definition_name}"', checks=[ - self.check("[name]", "['{definition_name}']")]) - - self.cmd('grafana data-source update -g {rg} -n {name} --data-source "{definition_name}" --definition "{definition}"', checks=[ - self.check("[name]", "['{definition_name}']")]) - - response_list = self.cmd('grafana data-source list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_list) > 0) - - self.cmd('grafana data-source delete -g {rg} -n {name} --data-source "{definition_name}"') - response_delete = self.cmd('grafana data-source list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_delete) == len(response_list) - 1) - - - # Test Notification Channel - self.kwargs.update({ - 'definition': test_notification_channel, - 'definition_name': test_notification_channel["name"] - }) - - response_create = self.cmd('grafana notification-channel create -g {rg} -n {name} --definition "{definition}"', checks=[ - self.check("[name]", "['{definition_name}']")]).get_output_in_json() - - self.kwargs.update({ - 'notification_channel_uid': response_create["uid"] - }) - - self.cmd('grafana notification-channel show -g {rg} -n {name} --notification-channel "{notification_channel_uid}"', checks=[ - self.check("[name]", "['{definition_name}']")]) - - self.cmd('grafana notification-channel update -g {rg} -n {name} --notification-channel "{notification_channel_uid}" --definition "{definition}"', checks=[ - self.check("[name]", "['{definition_name}']")]) - - response_list = self.cmd('grafana notification-channel list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_list) > 0) - - self.cmd('grafana notification-channel delete -g {rg} -n {name} --notification-channel "{notification_channel_uid}"') - response_delete = self.cmd('grafana notification-channel list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_delete) == len(response_list) - 1) - - - # Test Dashboard - definition_name = test_dashboard["dashboard"]["title"] - slug = definition_name.lower().replace(' ', '-') - - self.kwargs.update({ - 'definition': test_dashboard, - 'definition_name': definition_name, - 'definition_slug': slug, - }) - - response_create = self.cmd('grafana dashboard create -g {rg} -n {name} --definition "{definition}" --title "{definition_name}"', checks=[ - self.check("[slug]", "['{definition_slug}']")]).get_output_in_json() - - test_definition_update = test_dashboard - test_definition_update["dashboard"]["uid"] = response_create["uid"] - test_definition_update["dashboard"]["id"] = response_create["id"] - test_definition_update["dashboard"]["version"] = response_create["version"] - - self.kwargs.update({ - 'dashboard_uid': response_create["uid"], - 'test_definition_update': test_definition_update - }) - - self.cmd('grafana dashboard show -g {rg} -n {name} --dashboard "{dashboard_uid}"', checks=[ - self.check("[dashboard.title]", "['{definition_name}']")]) - - response_update = self.cmd('grafana dashboard update -g {rg} -n {name} --definition "{test_definition_update}" --overwrite true', checks=[ - self.check("[slug]", "['{definition_slug}']")]).get_output_in_json() - self.assertTrue(response_update["version"] == response_create["version"] + 1) - - response_list = self.cmd('grafana dashboard list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_list) > 0) - - self.cmd('grafana dashboard delete -g {rg} -n {name} --dashboard "{dashboard_uid}"') - response_delete = self.cmd('grafana dashboard list -g {rg} -n {name}').get_output_in_json() - self.assertTrue(len(response_delete) == len(response_list) - 1) - - # Close-out Instance - self.cmd('grafana delete -g {rg} -n {name} --yes') - final_count = len(self.cmd('grafana list').get_output_in_json()) - self.assertTrue(final_count, count - 1) diff --git a/src/amg/azext_amg/tests/latest/test_amg_scenario.py b/src/amg/azext_amg/tests/latest/test_amg_scenario.py index 9cef8158370..b7c5679a138 100644 --- a/src/amg/azext_amg/tests/latest/test_amg_scenario.py +++ b/src/amg/azext_amg/tests/latest/test_amg_scenario.py @@ -6,8 +6,9 @@ import os import unittest -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) - +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, MSGraphNameReplacer, MOCKED_USER_NAME) +from azure.cli.testsdk .scenario_tests import AllowLargeResponse +from .test_definitions import (test_data_source, test_notification_channel, test_dashboard) TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) @@ -18,8 +19,8 @@ class AmgScenarioTest(ScenarioTest): def test_amg_base(self, resource_group): self.kwargs.update({ - 'name': 'clitestamg', - 'location': 'westeurope' + 'name': 'clitestamg2', + 'location': 'westcentralus' }) self.cmd('grafana create -g {rg} -n {name} -l {location} --tags foo=doo --skip-role-assignments', checks=[ @@ -34,6 +35,218 @@ def test_amg_base(self, resource_group): self.check('tags.foo', 'doo') ]) + self.cmd('grafana update -g {rg} -n {name} --deterministic-outbound-ip Enabled --api-key Enabled', checks=[ + self.check('properties.deterministicOutboundIp', 'Enabled'), + self.check('properties.apiKey', 'Enabled'), + self.check('length(properties.outboundIPs)', 2) + ]) + + self.cmd('grafana show -g {rg} -n {name}', checks=[ + self.check('properties.deterministicOutboundIp', 'Enabled'), + self.check('properties.apiKey', 'Enabled'), + self.check('length(properties.outboundIPs)', 2) + ]) + + self.cmd('grafana update -g {rg} -n {name} --deterministic-outbound-ip Disabled --api-key Disabled') + self.cmd('grafana show -g {rg} -n {name}', checks=[ + self.check('properties.deterministicOutboundIp', 'Disabled'), + self.check('properties.apiKey', 'Disabled'), + self.check('properties.outboundIPs', None) + ]) + self.cmd('grafana delete -g {rg} -n {name} --yes') final_count = len(self.cmd('grafana list').get_output_in_json()) - self.assertTrue(final_count, count - 1) \ No newline at end of file + self.assertTrue(final_count, count - 1) + + + @ResourceGroupPreparer(name_prefix='cli_test_amg') + def test_api_key_e2e(self, resource_group): + + self.kwargs.update({ + 'name': 'clitestamgapikey', + 'location': 'westcentralus', + "key": "apikey1", + "key2": "apikey2" + }) + + owner = self._get_signed_in_user() + self.recording_processors.append(MSGraphNameReplacer(owner, MOCKED_USER_NAME)) + + with unittest.mock.patch('azext_amg.custom._gen_guid', side_effect=self.create_guid): + self.cmd('grafana create -g {rg} -n {name} -l {location}') + self.cmd('grafana update -g {rg} -n {name} --api-key Enabled') + self.cmd('grafana api-key list -g {rg} -n {name}', checks=[ + self.check('length([])', 0) + ]) + result = self.cmd('grafana api-key create -g {rg} -n {name} --key {key} --role Admin --time-to-live 3d').get_output_in_json() + api_key = result["key"] + self.cmd('grafana api-key create -g {rg} -n {name} --key {key2}') + self.cmd('grafana api-key list -g {rg} -n {name}', checks=[ + self.check('length([])', 2) + ]) + self.cmd('grafana api-key delete -g {rg} -n {name} --key {key2}') + number = len(self.cmd('grafana dashboard list -g {rg} -n {name} --api-key ' + api_key).get_output_in_json()) + self.assertTrue(number > 0) + + + @AllowLargeResponse(size_kb=3072) + @ResourceGroupPreparer(name_prefix='cli_test_amg', location='westeurope') + def test_amg_e2e(self, resource_group): + + # Test Instance + self.kwargs.update({ + 'name': 'clitestamg', + 'location': 'westeurope' + }) + + owner = self._get_signed_in_user() + self.recording_processors.append(MSGraphNameReplacer(owner, MOCKED_USER_NAME)) + + with unittest.mock.patch('azext_amg.custom._gen_guid', side_effect=self.create_guid): + + self.cmd('grafana create -g {rg} -n {name} -l {location} --tags foo=doo', checks=[ + self.check('tags.foo', 'doo'), + self.check('name', '{name}') + ]) + + self.cmd('grafana list -g {rg}') + count = len(self.cmd('grafana list').get_output_in_json()) + + self.cmd('grafana show -g {rg} -n {name}', checks=[ + self.check('name', '{name}'), + self.check('resourceGroup', '{rg}'), + self.check('tags.foo', 'doo') + ]) + + # Test User + response_list = self.cmd('grafana user list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_list) > 0) + + response_actual_user = self.cmd('grafana user actual-user -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_actual_user) > 0) + + # Test Folder + self.kwargs.update({ + 'title': 'Test Folder', + 'update_title': 'Test Folder Update' + }) + + response_create = self.cmd('grafana folder create -g {rg} -n {name} --title "{title}"', checks=[ + self.check("[title]", "['{title}']")]).get_output_in_json() + + self.kwargs.update({ + 'folder_uid': response_create["uid"] + }) + + self.cmd('grafana folder show -g {rg} -n {name} --folder "{title}"', checks=[ + self.check("[title]", "['{title}']")]) + + self.cmd('grafana folder update -g {rg} -n {name} --folder "{folder_uid}" --title "{update_title}"', checks=[ + self.check("[title]", "['{update_title}']")]) + + response_list = self.cmd('grafana folder list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_list) > 0) + + self.cmd('grafana folder delete -g {rg} -n {name} --folder "{update_title}"') + response_delete = self.cmd('grafana folder list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_delete) == len(response_list) - 1) + + + # Test Data Source + self.kwargs.update({ + 'definition': test_data_source, + 'definition_name': test_data_source["name"] + }) + + self.cmd('grafana data-source create -g {rg} -n {name} --definition "{definition}"', checks=[ + self.check("[name]", "['{definition_name}']")]) + + self.cmd('grafana data-source show -g {rg} -n {name} --data-source "{definition_name}"', checks=[ + self.check("[name]", "['{definition_name}']")]) + + self.cmd('grafana data-source update -g {rg} -n {name} --data-source "{definition_name}" --definition "{definition}"', checks=[ + self.check("[name]", "['{definition_name}']")]) + + response_list = self.cmd('grafana data-source list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_list) > 0) + + self.cmd('grafana data-source delete -g {rg} -n {name} --data-source "{definition_name}"') + response_delete = self.cmd('grafana data-source list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_delete) == len(response_list) - 1) + + + # Test Notification Channel + self.kwargs.update({ + 'definition': test_notification_channel, + 'definition_name': test_notification_channel["name"] + }) + + response_create = self.cmd('grafana notification-channel create -g {rg} -n {name} --definition "{definition}"', checks=[ + self.check("[name]", "['{definition_name}']")]).get_output_in_json() + + self.kwargs.update({ + 'notification_channel_uid': response_create["uid"] + }) + + self.cmd('grafana notification-channel show -g {rg} -n {name} --notification-channel "{notification_channel_uid}"', checks=[ + self.check("[name]", "['{definition_name}']")]) + + self.cmd('grafana notification-channel update -g {rg} -n {name} --notification-channel "{notification_channel_uid}" --definition "{definition}"', checks=[ + self.check("[name]", "['{definition_name}']")]) + + response_list = self.cmd('grafana notification-channel list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_list) > 0) + + self.cmd('grafana notification-channel delete -g {rg} -n {name} --notification-channel "{notification_channel_uid}"') + response_delete = self.cmd('grafana notification-channel list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_delete) == len(response_list) - 1) + + + # Test Dashboard + definition_name = test_dashboard["dashboard"]["title"] + slug = definition_name.lower().replace(' ', '-') + + self.kwargs.update({ + 'definition': test_dashboard, + 'definition_name': definition_name, + 'definition_slug': slug, + }) + + response_create = self.cmd('grafana dashboard create -g {rg} -n {name} --definition "{definition}" --title "{definition_name}"', checks=[ + self.check("[slug]", "['{definition_slug}']")]).get_output_in_json() + + test_definition_update = test_dashboard + test_definition_update["dashboard"]["uid"] = response_create["uid"] + test_definition_update["dashboard"]["id"] = response_create["id"] + test_definition_update["dashboard"]["version"] = response_create["version"] + + self.kwargs.update({ + 'dashboard_uid': response_create["uid"], + 'test_definition_update': test_definition_update + }) + + self.cmd('grafana dashboard show -g {rg} -n {name} --dashboard "{dashboard_uid}"', checks=[ + self.check("[dashboard.title]", "['{definition_name}']")]) + + response_update = self.cmd('grafana dashboard update -g {rg} -n {name} --definition "{test_definition_update}" --overwrite true', checks=[ + self.check("[slug]", "['{definition_slug}']")]).get_output_in_json() + self.assertTrue(response_update["version"] == response_create["version"] + 1) + + response_list = self.cmd('grafana dashboard list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_list) > 0) + + self.cmd('grafana dashboard delete -g {rg} -n {name} --dashboard "{dashboard_uid}"') + response_delete = self.cmd('grafana dashboard list -g {rg} -n {name}').get_output_in_json() + self.assertTrue(len(response_delete) == len(response_list) - 1) + + # Close-out Instance + self.cmd('grafana delete -g {rg} -n {name} --yes') + final_count = len(self.cmd('grafana list').get_output_in_json()) + self.assertTrue(final_count, count - 1) + + + def _get_signed_in_user(self): + account_info = self.cmd('account show').get_output_in_json() + if account_info['user']['type'] == 'user': + return account_info['user']['name'] + return None \ No newline at end of file diff --git a/src/amg/azext_amg/vendored_sdks/__init__.py b/src/amg/azext_amg/vendored_sdks/__init__.py index df8a6cb70ab..1cdb782a669 100644 --- a/src/amg/azext_amg/vendored_sdks/__init__.py +++ b/src/amg/azext_amg/vendored_sdks/__init__.py @@ -10,9 +10,14 @@ from ._version import VERSION __version__ = VERSION + +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk __all__ = ['DashboardManagementClient'] +__all__.extend([p for p in _patch_all if p not in __all__]) -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +_patch_sdk() diff --git a/src/amg/azext_amg/vendored_sdks/_configuration.py b/src/amg/azext_amg/vendored_sdks/_configuration.py index 08abd2ffed1..2b30d439329 100644 --- a/src/amg/azext_amg/vendored_sdks/_configuration.py +++ b/src/amg/azext_amg/vendored_sdks/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials import TokenCredential -class DashboardManagementClientConfiguration(Configuration): +class DashboardManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for DashboardManagementClient. Note that all parameters used to create this instance are saved as instance @@ -27,8 +27,11 @@ class DashboardManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -38,6 +41,8 @@ def __init__( **kwargs: Any ) -> None: super(DashboardManagementClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-08-01") # type: str + if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -45,7 +50,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-09-01-preview" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-dashboard/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/src/amg/azext_amg/vendored_sdks/_dashboard_management_client.py b/src/amg/azext_amg/vendored_sdks/_dashboard_management_client.py index 4401d7f476b..90fa07ca39d 100644 --- a/src/amg/azext_amg/vendored_sdks/_dashboard_management_client.py +++ b/src/amg/azext_amg/vendored_sdks/_dashboard_management_client.py @@ -7,15 +7,16 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Optional, TYPE_CHECKING +from typing import Any, TYPE_CHECKING + +from msrest import Deserializer, Serializer from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer from . import models from ._configuration import DashboardManagementClientConfiguration -from .operations import GrafanaOperations, Operations +from .operations import GrafanaOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -25,16 +26,23 @@ class DashboardManagementClient: """The Microsoft.Dashboard Rest API spec. :ivar operations: Operations operations - :vartype operations: dashboard_management_client.operations.Operations + :vartype operations: azure.mgmt.dashboard.operations.Operations :ivar grafana: GrafanaOperations operations - :vartype grafana: dashboard_management_client.operations.GrafanaOperations + :vartype grafana: azure.mgmt.dashboard.operations.GrafanaOperations + :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations + :vartype private_endpoint_connections: + azure.mgmt.dashboard.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: azure.mgmt.dashboard.operations.PrivateLinkResourcesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: The ID of the target subscription. :type subscription_id: str - :param base_url: Service URL. Default value is ''. + :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str + :keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ @@ -43,7 +51,7 @@ def __init__( self, credential: "TokenCredential", subscription_id: str, - base_url: str = "", + base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: self._config = DashboardManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs) @@ -53,13 +61,23 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.grafana = GrafanaOperations(self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize + ) + self.grafana = GrafanaOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) def _send_request( self, - request, # type: HttpRequest + request: HttpRequest, **kwargs: Any ) -> HttpResponse: """Runs the network request through the client's chained policies. diff --git a/src/amg/azext_amg/vendored_sdks/aio/__init__.py b/src/amg/azext_amg/vendored_sdks/aio/__init__.py index 30cf3e032d9..567e0d55d57 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/__init__.py +++ b/src/amg/azext_amg/vendored_sdks/aio/__init__.py @@ -7,9 +7,14 @@ # -------------------------------------------------------------------------- from ._dashboard_management_client import DashboardManagementClient + +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk __all__ = ['DashboardManagementClient'] +__all__.extend([p for p in _patch_all if p not in __all__]) -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +_patch_sdk() diff --git a/src/amg/azext_amg/vendored_sdks/aio/_configuration.py b/src/amg/azext_amg/vendored_sdks/aio/_configuration.py index c8c1228bcc4..ac8bc6ad3e8 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/_configuration.py +++ b/src/amg/azext_amg/vendored_sdks/aio/_configuration.py @@ -19,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class DashboardManagementClientConfiguration(Configuration): +class DashboardManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for DashboardManagementClient. Note that all parameters used to create this instance are saved as instance @@ -27,8 +27,11 @@ class DashboardManagementClientConfiguration(Configuration): :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: The ID of the target subscription. :type subscription_id: str + :keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str """ def __init__( @@ -38,6 +41,8 @@ def __init__( **kwargs: Any ) -> None: super(DashboardManagementClientConfiguration, self).__init__(**kwargs) + api_version = kwargs.pop('api_version', "2022-08-01") # type: str + if credential is None: raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: @@ -45,7 +50,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-09-01-preview" + self.api_version = api_version self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-dashboard/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/src/amg/azext_amg/vendored_sdks/aio/_dashboard_management_client.py b/src/amg/azext_amg/vendored_sdks/aio/_dashboard_management_client.py index 63d918012b1..1d59ec7ad1d 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/_dashboard_management_client.py +++ b/src/amg/azext_amg/vendored_sdks/aio/_dashboard_management_client.py @@ -7,15 +7,16 @@ # -------------------------------------------------------------------------- from copy import deepcopy -from typing import Any, Awaitable, Optional, TYPE_CHECKING +from typing import Any, Awaitable, TYPE_CHECKING + +from msrest import Deserializer, Serializer from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer from .. import models from ._configuration import DashboardManagementClientConfiguration -from .operations import GrafanaOperations, Operations +from .operations import GrafanaOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -25,16 +26,24 @@ class DashboardManagementClient: """The Microsoft.Dashboard Rest API spec. :ivar operations: Operations operations - :vartype operations: dashboard_management_client.aio.operations.Operations + :vartype operations: azure.mgmt.dashboard.aio.operations.Operations :ivar grafana: GrafanaOperations operations - :vartype grafana: dashboard_management_client.aio.operations.GrafanaOperations + :vartype grafana: azure.mgmt.dashboard.aio.operations.GrafanaOperations + :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations + :vartype private_endpoint_connections: + azure.mgmt.dashboard.aio.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: + azure.mgmt.dashboard.aio.operations.PrivateLinkResourcesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure - subscription. The subscription ID forms part of the URI for every service call. + :param subscription_id: The ID of the target subscription. :type subscription_id: str - :param base_url: Service URL. Default value is ''. + :param base_url: Service URL. Default value is "https://management.azure.com". :type base_url: str + :keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ @@ -43,7 +52,7 @@ def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, - base_url: str = "", + base_url: str = "https://management.azure.com", **kwargs: Any ) -> None: self._config = DashboardManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs) @@ -53,8 +62,18 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self._serialize.client_side_validation = False - self.operations = Operations(self._client, self._config, self._serialize, self._deserialize) - self.grafana = GrafanaOperations(self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize + ) + self.grafana = GrafanaOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize + ) + self.private_link_resources = PrivateLinkResourcesOperations( + self._client, self._config, self._serialize, self._deserialize + ) def _send_request( diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/__init__.py b/src/amg/azext_amg/vendored_sdks/aio/operations/__init__.py index 81c85b3399f..84f1e6551d9 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/operations/__init__.py +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/__init__.py @@ -8,8 +8,17 @@ from ._operations import Operations from ._grafana_operations import GrafanaOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'Operations', 'GrafanaOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/_grafana_operations.py b/src/amg/azext_amg/vendored_sdks/aio/operations/_grafana_operations.py index e6f4512da87..a96ea35a5a4 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/operations/_grafana_operations.py +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/_grafana_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -17,6 +16,7 @@ from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling @@ -27,71 +27,80 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class GrafanaOperations: - """GrafanaOperations async 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~dashboard_management_client.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. + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.aio.DashboardManagementClient`'s + :attr:`grafana` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def list( self, **kwargs: Any - ) -> AsyncIterable["_models.GrafanaResourceListResponse"]: + ) -> AsyncIterable[_models.ManagedGrafanaListResponse]: """List all resources of workspaces for Grafana under the specified subscription. List all resources of workspaces for Grafana under 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 GrafanaResourceListResponse or the result of + :return: An iterator like instance of either ManagedGrafanaListResponse or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~dashboard_management_client.models.GrafanaResourceListResponse] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.dashboard.models.ManagedGrafanaListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResourceListResponse"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafanaListResponse] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize("GrafanaResourceListResponse", pipeline_response) + deserialized = self._deserialize("ManagedGrafanaListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -100,7 +109,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -114,14 +127,14 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana"} # type: ignore @distributed_trace def list_by_resource_group( self, resource_group_name: str, **kwargs: Any - ) -> AsyncIterable["_models.GrafanaResourceListResponse"]: + ) -> AsyncIterable[_models.ManagedGrafanaListResponse]: """List all resources of workspaces for Grafana under the specified resource group. List all resources of workspaces for Grafana under the specified resource group. @@ -129,42 +142,53 @@ def list_by_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 GrafanaResourceListResponse or the result of + :return: An iterator like instance of either ManagedGrafanaListResponse or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~dashboard_management_client.models.GrafanaResourceListResponse] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.dashboard.models.ManagedGrafanaListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResourceListResponse"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafanaListResponse] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_by_resource_group_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, + api_version=api_version, template_url=self.list_by_resource_group.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_by_resource_group_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request async def extract_data(pipeline_response): - deserialized = self._deserialize("GrafanaResourceListResponse", pipeline_response) + deserialized = self._deserialize("ManagedGrafanaListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -173,7 +197,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -187,7 +215,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"} # type: ignore @distributed_trace_async async def get( @@ -195,37 +223,49 @@ async def get( resource_group_name: str, workspace_name: str, **kwargs: Any - ) -> "_models.GrafanaResource": + ) -> _models.ManagedGrafana: """Get the properties of a specific workspace for Grafana resource. Get the properties of a specific workspace for Grafana resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: GrafanaResource, or the result of cls(response) - :rtype: ~dashboard_management_client.models.GrafanaResource + :return: ManagedGrafana, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.ManagedGrafana :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, template_url=self.get.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -233,48 +273,56 @@ async def get( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore async def _create_initial( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResource"] = None, + request_body_parameters: _models.ManagedGrafana, **kwargs: Any - ) -> "_models.GrafanaResource": - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] + ) -> _models.ManagedGrafana: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] - if body is not None: - _json = self._serialize.body(body, 'GrafanaResource') - else: - _json = None + _json = self._serialize.body(request_body_parameters, 'ManagedGrafana') request = build_create_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, content_type=content_type, json=_json, template_url=self._create_initial.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -282,17 +330,17 @@ async def _create_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if response.status_code == 201: - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + _create_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace_async @@ -300,9 +348,9 @@ async def begin_create( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResource"] = None, + request_body_parameters: _models.ManagedGrafana, **kwargs: Any - ) -> AsyncLROPoller["_models.GrafanaResource"]: + ) -> AsyncLROPoller[_models.ManagedGrafana]: """Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana. @@ -311,10 +359,10 @@ async def begin_create( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str - :param body: - :type body: ~dashboard_management_client.models.GrafanaResource + :param request_body_parameters: + :type request_body_parameters: ~azure.mgmt.dashboard.models.ManagedGrafana :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for @@ -323,40 +371,52 @@ async def begin_create( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either GrafanaResource or the result of + :return: An instance of AsyncLROPoller that returns either ManagedGrafana or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~dashboard_management_client.models.GrafanaResource] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.dashboard.models.ManagedGrafana] :raises: ~azure.core.exceptions.HttpResponseError """ - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._create_initial( + raw_result = await self._create_initial( # type: ignore resource_group_name=resource_group_name, workspace_name=workspace_name, - body=body, + request_body_parameters=request_body_parameters, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, + headers=_headers, + params=_params, **kwargs ) kwargs.pop('error_map', None) def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() + if polling is True: + polling_method = cast(AsyncPollingMethod, AsyncARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: AsyncPollingMethod + elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( @@ -365,99 +425,122 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + begin_create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace_async async def update( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResourceUpdateParameters"] = None, + request_body_parameters: _models.ManagedGrafanaUpdateParameters, **kwargs: Any - ) -> "_models.GrafanaResource": + ) -> _models.ManagedGrafana: """Update a workspace for Grafana resource. Update a workspace for Grafana resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str - :param body: - :type body: ~dashboard_management_client.models.GrafanaResourceUpdateParameters + :param request_body_parameters: + :type request_body_parameters: ~azure.mgmt.dashboard.models.ManagedGrafanaUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response - :return: GrafanaResource, or the result of cls(response) - :rtype: ~dashboard_management_client.models.GrafanaResource + :return: ManagedGrafana, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.ManagedGrafana :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] - if body is not None: - _json = self._serialize.body(body, 'GrafanaResourceUpdateParameters') - else: - _json = None + _json = self._serialize.body(request_body_parameters, 'ManagedGrafanaUpdateParameters') request = build_update_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('GrafanaResource', pipeline_response) + if response.status_code == 200: + deserialized = self._deserialize('ManagedGrafana', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore - async def _delete_initial( + async def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, workspace_name: str, **kwargs: Any ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, template_url=self._delete_initial.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -467,11 +550,11 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace_async - async def begin_delete( + async def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, workspace_name: str, @@ -483,7 +566,7 @@ async def begin_delete( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -497,18 +580,25 @@ async def begin_delete( :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.AsyncPollingMethod] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str cls = kwargs.pop('cls', None) # type: ClsType[None] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._delete_initial( + raw_result = await self._delete_initial( # type: ignore resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, cls=lambda x,y,z: x, + headers=_headers, + params=_params, **kwargs ) kwargs.pop('error_map', None) @@ -518,8 +608,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() + if polling is True: + polling_method = cast(AsyncPollingMethod, AsyncARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: AsyncPollingMethod + elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) else: polling_method = polling if cont_token: return AsyncLROPoller.from_continuation_token( @@ -528,7 +624,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/_operations.py b/src/amg/azext_amg/vendored_sdks/aio/operations/_operations.py index 91559e425d8..74d119b9cf8 100644 --- a/src/amg/azext_amg/vendored_sdks/aio/operations/_operations.py +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings +from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -15,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from ... import models as _models @@ -25,32 +24,30 @@ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] class Operations: - """Operations async 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. + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~dashboard_management_client.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. + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.aio.DashboardManagementClient`'s + :attr:`operations` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def list( self, **kwargs: Any - ) -> AsyncIterable["_models.OperationListResult"]: + ) -> AsyncIterable[_models.OperationListResult]: """List all available API operations provided by Microsoft.Dashboard. List all available API operations provided by Microsoft.Dashboard. @@ -58,30 +55,41 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationListResult or the result of cls(response) :rtype: - ~azure.core.async_paging.AsyncItemPaged[~dashboard_management_client.models.OperationListResult] + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.dashboard.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.OperationListResult] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_request( + api_version=api_version, template_url=self.list.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_request( + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request @@ -95,7 +103,11 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = await self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -109,4 +121,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.Dashboard/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.Dashboard/operations"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/_patch.py b/src/amg/azext_amg/vendored_sdks/aio/operations/_patch.py new file mode 100644 index 00000000000..0ad201a8c58 --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/_patch.py @@ -0,0 +1,19 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/_private_endpoint_connections_operations.py b/src/amg/azext_amg/vendored_sdks/aio/operations/_private_endpoint_connections_operations.py new file mode 100644 index 00000000000..fd82b463527 --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/_private_endpoint_connections_operations.py @@ -0,0 +1,491 @@ +# pylint: disable=too-many-lines +# 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 Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._private_endpoint_connections_operations import build_approve_request_initial, build_delete_request_initial, build_get_request, build_list_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class PrivateEndpointConnectionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.aio.DashboardManagementClient`'s + :attr:`private_endpoint_connections` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> _models.PrivateEndpointConnection: + """Get private endpoint connections. + + Get private endpoint connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateEndpointConnection, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.PrivateEndpointConnection + :raises: ~azure.core.exceptions.HttpResponseError + """ + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self.get.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + async def _approve_initial( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + body: Optional[_models.PrivateEndpointConnection] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnection: + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + + if body is not None: + _json = self._serialize.body(body, 'PrivateEndpointConnection') + else: + _json = None + + request = build_approve_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._approve_initial.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _approve_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace_async + async def begin_approve( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + body: Optional[_models.PrivateEndpointConnection] = None, + **kwargs: Any + ) -> AsyncLROPoller[_models.PrivateEndpointConnection]: + """Manual approve private endpoint connection. + + Manual approve private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :param body: Default value is None. + :type body: ~azure.mgmt.dashboard.models.PrivateEndpointConnection + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the + result of cls(response) + :rtype: + ~azure.core.polling.AsyncLROPoller[~azure.mgmt.dashboard.models.PrivateEndpointConnection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._approve_initial( # type: ignore + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + headers=_headers, + params=_params, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: + polling_method = cast(AsyncPollingMethod, AsyncARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: AsyncPollingMethod + elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_approve.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + async def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> None: + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace_async + async def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete private endpoint connection. + + Delete private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. Pass in False for + this operation to not poll, or pass in your own initialized polling object for a personal + polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( # type: ignore + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + cls=lambda x,y,z: x, + headers=_headers, + params=_params, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: + polling_method = cast(AsyncPollingMethod, AsyncARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: AsyncPollingMethod + elif polling is False: polling_method = cast(AsyncPollingMethod, AsyncNoPolling()) + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + @distributed_trace + def list( + self, + resource_group_name: str, + workspace_name: str, + **kwargs: Any + ) -> AsyncIterable[_models.PrivateEndpointConnectionListResult]: + """Get private endpoint connection. + + Get private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateEndpointConnectionListResult or the result + of cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.dashboard.models.PrivateEndpointConnectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnectionListResult] + + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=self.list.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=next_link, + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("PrivateEndpointConnectionListResult", 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( # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/aio/operations/_private_link_resources_operations.py b/src/amg/azext_amg/vendored_sdks/aio/operations/_private_link_resources_operations.py new file mode 100644 index 00000000000..92a3dc7e65c --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/aio/operations/_private_link_resources_operations.py @@ -0,0 +1,208 @@ +# pylint: disable=too-many-lines +# 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 Any, AsyncIterable, Callable, Dict, Optional, TypeVar + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models +from ..._vendor import _convert_request +from ...operations._private_link_resources_operations import build_get_request, build_list_request +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class PrivateLinkResourcesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.aio.DashboardManagementClient`'s + :attr:`private_link_resources` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + + @distributed_trace + def list( + self, + resource_group_name: str, + workspace_name: str, + **kwargs: Any + ) -> AsyncIterable[_models.PrivateLinkResourceListResult]: + """List all private link resources information for this grafana resource. + + List all private link resources information for this grafana resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateLinkResourceListResult or the result of + cls(response) + :rtype: + ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.dashboard.models.PrivateLinkResourceListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateLinkResourceListResult] + + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=self.list.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=next_link, + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + request.method = "GET" + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize("PrivateLinkResourceListResult", 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( # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources"} # type: ignore + + @distributed_trace_async + async def get( + self, + resource_group_name: str, + workspace_name: str, + private_link_resource_name: str, + **kwargs: Any + ) -> _models.PrivateLinkResource: + """Get specific private link resource information for this grafana resource. + + Get specific private link resource information for this grafana resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_link_resource_name: + :type private_link_resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateLinkResource, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.PrivateLinkResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateLinkResource] + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_link_resource_name=private_link_resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateLinkResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}"} # type: ignore + diff --git a/src/amg/azext_amg/vendored_sdks/models/__init__.py b/src/amg/azext_amg/vendored_sdks/models/__init__.py index f79c863e098..be1dc20fd25 100644 --- a/src/amg/azext_amg/vendored_sdks/models/__init__.py +++ b/src/amg/azext_amg/vendored_sdks/models/__init__.py @@ -9,14 +9,22 @@ from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse -from ._models_py3 import GrafanaResource -from ._models_py3 import GrafanaResourceListResponse -from ._models_py3 import GrafanaResourceProperties -from ._models_py3 import GrafanaResourceUpdateParameters -from ._models_py3 import ManagedIdentity +from ._models_py3 import ManagedGrafana +from ._models_py3 import ManagedGrafanaListResponse +from ._models_py3 import ManagedGrafanaProperties +from ._models_py3 import ManagedGrafanaPropertiesUpdateParameters +from ._models_py3 import ManagedGrafanaUpdateParameters +from ._models_py3 import ManagedServiceIdentity +from ._models_py3 import Operation from ._models_py3 import OperationDisplay from ._models_py3 import OperationListResult -from ._models_py3 import OperationResult +from ._models_py3 import PrivateEndpoint +from ._models_py3 import PrivateEndpointConnection +from ._models_py3 import PrivateEndpointConnectionListResult +from ._models_py3 import PrivateLinkResource +from ._models_py3 import PrivateLinkResourceListResult +from ._models_py3 import PrivateLinkServiceConnectionState +from ._models_py3 import Resource from ._models_py3 import ResourceSku from ._models_py3 import SystemData from ._models_py3 import UserAssignedIdentity @@ -24,34 +32,56 @@ from ._dashboard_management_client_enums import ( ActionType, + ApiKey, + AutoGeneratedDomainNameLabelScope, CreatedByType, - IdentityType, - LastModifiedByType, + DeterministicOutboundIP, + ManagedServiceIdentityType, Origin, + PrivateEndpointConnectionProvisioningState, + PrivateEndpointServiceConnectionStatus, ProvisioningState, + PublicNetworkAccess, ZoneRedundancy, ) - +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'ErrorAdditionalInfo', 'ErrorDetail', 'ErrorResponse', - 'GrafanaResource', - 'GrafanaResourceListResponse', - 'GrafanaResourceProperties', - 'GrafanaResourceUpdateParameters', - 'ManagedIdentity', + 'ManagedGrafana', + 'ManagedGrafanaListResponse', + 'ManagedGrafanaProperties', + 'ManagedGrafanaPropertiesUpdateParameters', + 'ManagedGrafanaUpdateParameters', + 'ManagedServiceIdentity', + 'Operation', 'OperationDisplay', 'OperationListResult', - 'OperationResult', + 'PrivateEndpoint', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionListResult', + 'PrivateLinkResource', + 'PrivateLinkResourceListResult', + 'PrivateLinkServiceConnectionState', + 'Resource', 'ResourceSku', 'SystemData', 'UserAssignedIdentity', 'ActionType', + 'ApiKey', + 'AutoGeneratedDomainNameLabelScope', 'CreatedByType', - 'IdentityType', - 'LastModifiedByType', + 'DeterministicOutboundIP', + 'ManagedServiceIdentityType', 'Origin', + 'PrivateEndpointConnectionProvisioningState', + 'PrivateEndpointServiceConnectionStatus', 'ProvisioningState', + 'PublicNetworkAccess', 'ZoneRedundancy', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/src/amg/azext_amg/vendored_sdks/models/_dashboard_management_client_enums.py b/src/amg/azext_amg/vendored_sdks/models/_dashboard_management_client_enums.py index bd3a3641b2d..393f74c8ba3 100644 --- a/src/amg/azext_amg/vendored_sdks/models/_dashboard_management_client_enums.py +++ b/src/amg/azext_amg/vendored_sdks/models/_dashboard_management_client_enums.py @@ -7,17 +7,27 @@ # -------------------------------------------------------------------------- from enum import Enum -from six import with_metaclass from azure.core import CaseInsensitiveEnumMeta -class ActionType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """Indicates the action type. "Internal" refers to actions that are for internal only APIs. +class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. """ INTERNAL = "Internal" -class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class ApiKey(str, Enum, metaclass=CaseInsensitiveEnumMeta): + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class AutoGeneratedDomainNameLabelScope(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Scope for dns deterministic name hash calculation + """ + + TENANT_REUSE = "TenantReuse" + +class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The type of identity that created the resource. """ @@ -26,30 +36,48 @@ class CreatedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" -class IdentityType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set - of user assigned identities. The type 'None' will remove any identities from the resource. +class DeterministicOutboundIP(str, Enum, metaclass=CaseInsensitiveEnumMeta): + + DISABLED = "Disabled" + ENABLED = "Enabled" + +class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of managed service identity (where both SystemAssigned and UserAssigned types are + allowed). """ NONE = "None" SYSTEM_ASSIGNED = "SystemAssigned" + USER_ASSIGNED = "UserAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" -class LastModifiedByType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - - USER = "User" - APPLICATION = "Application" - MANAGED_IDENTITY = "ManagedIdentity" - KEY = "Key" - -class Origin(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): - """The intended executor of the operation. +class Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit + logs UX. Default value is "user,system" """ USER = "user" SYSTEM = "system" USER_SYSTEM = "user,system" -class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class PrivateEndpointConnectionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The current provisioning state. + """ + + SUCCEEDED = "Succeeded" + CREATING = "Creating" + DELETING = "Deleting" + FAILED = "Failed" + +class PrivateEndpointServiceConnectionStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The private endpoint connection status. + """ + + PENDING = "Pending" + APPROVED = "Approved" + REJECTED = "Rejected" + +class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): ACCEPTED = "Accepted" CREATING = "Creating" @@ -61,7 +89,14 @@ class ProvisioningState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): DELETED = "Deleted" NOT_SPECIFIED = "NotSpecified" -class ZoneRedundancy(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): +class PublicNetworkAccess(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Indicate the state for enable or disable traffic over the public interface. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class ZoneRedundancy(str, Enum, metaclass=CaseInsensitiveEnumMeta): DISABLED = "Disabled" ENABLED = "Enabled" diff --git a/src/amg/azext_amg/vendored_sdks/models/_models_py3.py b/src/amg/azext_amg/vendored_sdks/models/_models_py3.py index 0b72d973be7..d6240c8e140 100644 --- a/src/amg/azext_amg/vendored_sdks/models/_models_py3.py +++ b/src/amg/azext_amg/vendored_sdks/models/_models_py3.py @@ -7,12 +7,14 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Dict, List, Optional, TYPE_CHECKING, Union from azure.core.exceptions import HttpResponseError import msrest.serialization -from ._dashboard_management_client_enums import * +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + import __init__ as _models class ErrorAdditionalInfo(msrest.serialization.Model): @@ -59,9 +61,9 @@ class ErrorDetail(msrest.serialization.Model): :ivar target: The error target. :vartype target: str :ivar details: The error details. - :vartype details: list[~dashboard_management_client.models.ErrorDetail] + :vartype details: list[~azure.mgmt.dashboard.models.ErrorDetail] :ivar additional_info: The error additional info. - :vartype additional_info: list[~dashboard_management_client.models.ErrorAdditionalInfo] + :vartype additional_info: list[~azure.mgmt.dashboard.models.ErrorAdditionalInfo] """ _validation = { @@ -98,7 +100,7 @@ class ErrorResponse(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.). :ivar error: The error object. - :vartype error: ~dashboard_management_client.models.ErrorDetail + :vartype error: ~azure.mgmt.dashboard.models.ErrorDetail """ _attribute_map = { @@ -108,18 +110,18 @@ class ErrorResponse(msrest.serialization.Model): def __init__( self, *, - error: Optional["ErrorDetail"] = None, + error: Optional["_models.ErrorDetail"] = None, **kwargs ): """ :keyword error: The error object. - :paramtype error: ~dashboard_management_client.models.ErrorDetail + :paramtype error: ~azure.mgmt.dashboard.models.ErrorDetail """ super(ErrorResponse, self).__init__(**kwargs) self.error = error -class GrafanaResource(msrest.serialization.Model): +class ManagedGrafana(msrest.serialization.Model): """The grafana resource type. Variables are only populated by the server, and will be ignored when sending a request. @@ -131,13 +133,13 @@ class GrafanaResource(msrest.serialization.Model): :ivar type: The type of the grafana resource. :vartype type: str :ivar sku: The Sku of the grafana resource. - :vartype sku: ~dashboard_management_client.models.ResourceSku + :vartype sku: ~azure.mgmt.dashboard.models.ResourceSku :ivar properties: Properties specific to the grafana resource. - :vartype properties: ~dashboard_management_client.models.GrafanaResourceProperties + :vartype properties: ~azure.mgmt.dashboard.models.ManagedGrafanaProperties :ivar identity: The managed identity of the grafana resource. - :vartype identity: ~dashboard_management_client.models.ManagedIdentity + :vartype identity: ~azure.mgmt.dashboard.models.ManagedServiceIdentity :ivar system_data: The system meta data relating to this grafana resource. - :vartype system_data: ~dashboard_management_client.models.SystemData + :vartype system_data: ~azure.mgmt.dashboard.models.SystemData :ivar tags: A set of tags. The tags for grafana resource. :vartype tags: dict[str, str] :ivar location: The geo-location where the grafana resource lives. @@ -156,8 +158,8 @@ class GrafanaResource(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'ResourceSku'}, - 'properties': {'key': 'properties', 'type': 'GrafanaResourceProperties'}, - 'identity': {'key': 'identity', 'type': 'ManagedIdentity'}, + 'properties': {'key': 'properties', 'type': 'ManagedGrafanaProperties'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, @@ -166,26 +168,26 @@ class GrafanaResource(msrest.serialization.Model): def __init__( self, *, - sku: Optional["ResourceSku"] = None, - properties: Optional["GrafanaResourceProperties"] = None, - identity: Optional["ManagedIdentity"] = None, + sku: Optional["_models.ResourceSku"] = None, + properties: Optional["_models.ManagedGrafanaProperties"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, tags: Optional[Dict[str, str]] = None, location: Optional[str] = None, **kwargs ): """ :keyword sku: The Sku of the grafana resource. - :paramtype sku: ~dashboard_management_client.models.ResourceSku + :paramtype sku: ~azure.mgmt.dashboard.models.ResourceSku :keyword properties: Properties specific to the grafana resource. - :paramtype properties: ~dashboard_management_client.models.GrafanaResourceProperties + :paramtype properties: ~azure.mgmt.dashboard.models.ManagedGrafanaProperties :keyword identity: The managed identity of the grafana resource. - :paramtype identity: ~dashboard_management_client.models.ManagedIdentity + :paramtype identity: ~azure.mgmt.dashboard.models.ManagedServiceIdentity :keyword tags: A set of tags. The tags for grafana resource. :paramtype tags: dict[str, str] :keyword location: The geo-location where the grafana resource lives. :paramtype location: str """ - super(GrafanaResource, self).__init__(**kwargs) + super(ManagedGrafana, self).__init__(**kwargs) self.id = None self.name = None self.type = None @@ -197,190 +199,365 @@ def __init__( self.location = location -class GrafanaResourceListResponse(msrest.serialization.Model): - """GrafanaResourceListResponse. +class ManagedGrafanaListResponse(msrest.serialization.Model): + """ManagedGrafanaListResponse. :ivar value: - :vartype value: list[~dashboard_management_client.models.GrafanaResource] + :vartype value: list[~azure.mgmt.dashboard.models.ManagedGrafana] :ivar next_link: :vartype next_link: str """ _attribute_map = { - 'value': {'key': 'value', 'type': '[GrafanaResource]'}, + 'value': {'key': 'value', 'type': '[ManagedGrafana]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - value: Optional[List["GrafanaResource"]] = None, + value: Optional[List["_models.ManagedGrafana"]] = None, next_link: Optional[str] = None, **kwargs ): """ :keyword value: - :paramtype value: list[~dashboard_management_client.models.GrafanaResource] + :paramtype value: list[~azure.mgmt.dashboard.models.ManagedGrafana] :keyword next_link: :paramtype next_link: str """ - super(GrafanaResourceListResponse, self).__init__(**kwargs) + super(ManagedGrafanaListResponse, self).__init__(**kwargs) self.value = value self.next_link = next_link -class GrafanaResourceProperties(msrest.serialization.Model): +class ManagedGrafanaProperties(msrest.serialization.Model): """Properties specific to the grafana resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar provisioning_state: Provisioning state of the resource. Possible values include: - "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", + :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", + "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", "NotSpecified". - :vartype provisioning_state: str or ~dashboard_management_client.models.ProvisioningState + :vartype provisioning_state: str or ~azure.mgmt.dashboard.models.ProvisioningState :ivar grafana_version: The Grafana software version. :vartype grafana_version: str :ivar endpoint: The endpoint of the Grafana instance. :vartype endpoint: str - :ivar zone_redundancy: Possible values include: "Disabled", "Enabled". Default value: - "Disabled". - :vartype zone_redundancy: str or ~dashboard_management_client.models.ZoneRedundancy + :ivar public_network_access: Indicate the state for enable or disable traffic over the public + interface. Known values are: "Enabled", "Disabled". + :vartype public_network_access: str or ~azure.mgmt.dashboard.models.PublicNetworkAccess + :ivar zone_redundancy: The zone redundancy setting of the Grafana instance. Known values are: + "Disabled", "Enabled". Default value: "Disabled". + :vartype zone_redundancy: str or ~azure.mgmt.dashboard.models.ZoneRedundancy + :ivar api_key: The api key setting of the Grafana instance. Known values are: "Disabled", + "Enabled". Default value: "Disabled". + :vartype api_key: str or ~azure.mgmt.dashboard.models.ApiKey + :ivar deterministic_outbound_ip: Whether a Grafana instance uses deterministic outbound IPs. + Known values are: "Disabled", "Enabled". Default value: "Disabled". + :vartype deterministic_outbound_ip: str or ~azure.mgmt.dashboard.models.DeterministicOutboundIP + :ivar outbound_i_ps: List of outbound IPs if deterministicOutboundIP is enabled. + :vartype outbound_i_ps: list[str] + :ivar private_endpoint_connections: The private endpoint connections of the Grafana instance. + :vartype private_endpoint_connections: + list[~azure.mgmt.dashboard.models.PrivateEndpointConnection] + :ivar auto_generated_domain_name_label_scope: Scope for dns deterministic name hash + calculation. Known values are: "TenantReuse". + :vartype auto_generated_domain_name_label_scope: str or + ~azure.mgmt.dashboard.models.AutoGeneratedDomainNameLabelScope """ _validation = { + 'provisioning_state': {'readonly': True}, 'grafana_version': {'readonly': True}, 'endpoint': {'readonly': True}, + 'outbound_i_ps': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, } _attribute_map = { 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'grafana_version': {'key': 'grafanaVersion', 'type': 'str'}, 'endpoint': {'key': 'endpoint', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'zone_redundancy': {'key': 'zoneRedundancy', 'type': 'str'}, + 'api_key': {'key': 'apiKey', 'type': 'str'}, + 'deterministic_outbound_ip': {'key': 'deterministicOutboundIP', 'type': 'str'}, + 'outbound_i_ps': {'key': 'outboundIPs', 'type': '[str]'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'auto_generated_domain_name_label_scope': {'key': 'autoGeneratedDomainNameLabelScope', 'type': 'str'}, } def __init__( self, *, - provisioning_state: Optional[Union[str, "ProvisioningState"]] = None, - zone_redundancy: Optional[Union[str, "ZoneRedundancy"]] = "Disabled", + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, + zone_redundancy: Optional[Union[str, "_models.ZoneRedundancy"]] = "Disabled", + api_key: Optional[Union[str, "_models.ApiKey"]] = "Disabled", + deterministic_outbound_ip: Optional[Union[str, "_models.DeterministicOutboundIP"]] = "Disabled", + auto_generated_domain_name_label_scope: Optional[Union[str, "_models.AutoGeneratedDomainNameLabelScope"]] = None, **kwargs ): """ - :keyword provisioning_state: Provisioning state of the resource. Possible values include: - "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", - "NotSpecified". - :paramtype provisioning_state: str or ~dashboard_management_client.models.ProvisioningState - :keyword zone_redundancy: Possible values include: "Disabled", "Enabled". Default value: - "Disabled". - :paramtype zone_redundancy: str or ~dashboard_management_client.models.ZoneRedundancy + :keyword public_network_access: Indicate the state for enable or disable traffic over the + public interface. Known values are: "Enabled", "Disabled". + :paramtype public_network_access: str or ~azure.mgmt.dashboard.models.PublicNetworkAccess + :keyword zone_redundancy: The zone redundancy setting of the Grafana instance. Known values + are: "Disabled", "Enabled". Default value: "Disabled". + :paramtype zone_redundancy: str or ~azure.mgmt.dashboard.models.ZoneRedundancy + :keyword api_key: The api key setting of the Grafana instance. Known values are: "Disabled", + "Enabled". Default value: "Disabled". + :paramtype api_key: str or ~azure.mgmt.dashboard.models.ApiKey + :keyword deterministic_outbound_ip: Whether a Grafana instance uses deterministic outbound IPs. + Known values are: "Disabled", "Enabled". Default value: "Disabled". + :paramtype deterministic_outbound_ip: str or + ~azure.mgmt.dashboard.models.DeterministicOutboundIP + :keyword auto_generated_domain_name_label_scope: Scope for dns deterministic name hash + calculation. Known values are: "TenantReuse". + :paramtype auto_generated_domain_name_label_scope: str or + ~azure.mgmt.dashboard.models.AutoGeneratedDomainNameLabelScope """ - super(GrafanaResourceProperties, self).__init__(**kwargs) - self.provisioning_state = provisioning_state + super(ManagedGrafanaProperties, self).__init__(**kwargs) + self.provisioning_state = None self.grafana_version = None self.endpoint = None + self.public_network_access = public_network_access self.zone_redundancy = zone_redundancy + self.api_key = api_key + self.deterministic_outbound_ip = deterministic_outbound_ip + self.outbound_i_ps = None + self.private_endpoint_connections = None + self.auto_generated_domain_name_label_scope = auto_generated_domain_name_label_scope + + +class ManagedGrafanaPropertiesUpdateParameters(msrest.serialization.Model): + """The properties parameters for a PATCH request to a grafana resource. + + :ivar zone_redundancy: The zone redundancy setting of the Grafana instance. Known values are: + "Disabled", "Enabled". Default value: "Disabled". + :vartype zone_redundancy: str or ~azure.mgmt.dashboard.models.ZoneRedundancy + :ivar api_key: The api key setting of the Grafana instance. Known values are: "Disabled", + "Enabled". Default value: "Disabled". + :vartype api_key: str or ~azure.mgmt.dashboard.models.ApiKey + :ivar deterministic_outbound_ip: Whether a Grafana instance uses deterministic outbound IPs. + Known values are: "Disabled", "Enabled". Default value: "Disabled". + :vartype deterministic_outbound_ip: str or ~azure.mgmt.dashboard.models.DeterministicOutboundIP + :ivar public_network_access: Indicate the state for enable or disable traffic over the public + interface. Known values are: "Enabled", "Disabled". + :vartype public_network_access: str or ~azure.mgmt.dashboard.models.PublicNetworkAccess + """ + _attribute_map = { + 'zone_redundancy': {'key': 'zoneRedundancy', 'type': 'str'}, + 'api_key': {'key': 'apiKey', 'type': 'str'}, + 'deterministic_outbound_ip': {'key': 'deterministicOutboundIP', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + } -class GrafanaResourceUpdateParameters(msrest.serialization.Model): + def __init__( + self, + *, + zone_redundancy: Optional[Union[str, "_models.ZoneRedundancy"]] = "Disabled", + api_key: Optional[Union[str, "_models.ApiKey"]] = "Disabled", + deterministic_outbound_ip: Optional[Union[str, "_models.DeterministicOutboundIP"]] = "Disabled", + public_network_access: Optional[Union[str, "_models.PublicNetworkAccess"]] = None, + **kwargs + ): + """ + :keyword zone_redundancy: The zone redundancy setting of the Grafana instance. Known values + are: "Disabled", "Enabled". Default value: "Disabled". + :paramtype zone_redundancy: str or ~azure.mgmt.dashboard.models.ZoneRedundancy + :keyword api_key: The api key setting of the Grafana instance. Known values are: "Disabled", + "Enabled". Default value: "Disabled". + :paramtype api_key: str or ~azure.mgmt.dashboard.models.ApiKey + :keyword deterministic_outbound_ip: Whether a Grafana instance uses deterministic outbound IPs. + Known values are: "Disabled", "Enabled". Default value: "Disabled". + :paramtype deterministic_outbound_ip: str or + ~azure.mgmt.dashboard.models.DeterministicOutboundIP + :keyword public_network_access: Indicate the state for enable or disable traffic over the + public interface. Known values are: "Enabled", "Disabled". + :paramtype public_network_access: str or ~azure.mgmt.dashboard.models.PublicNetworkAccess + """ + super(ManagedGrafanaPropertiesUpdateParameters, self).__init__(**kwargs) + self.zone_redundancy = zone_redundancy + self.api_key = api_key + self.deterministic_outbound_ip = deterministic_outbound_ip + self.public_network_access = public_network_access + + +class ManagedGrafanaUpdateParameters(msrest.serialization.Model): """The parameters for a PATCH request to a grafana resource. :ivar identity: The managed identity of the grafana resource. - :vartype identity: ~dashboard_management_client.models.ManagedIdentity + :vartype identity: ~azure.mgmt.dashboard.models.ManagedServiceIdentity :ivar tags: A set of tags. The new tags of the grafana resource. :vartype tags: dict[str, str] + :ivar properties: Properties specific to the managed grafana resource. + :vartype properties: ~azure.mgmt.dashboard.models.ManagedGrafanaPropertiesUpdateParameters """ _attribute_map = { - 'identity': {'key': 'identity', 'type': 'ManagedIdentity'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'ManagedGrafanaPropertiesUpdateParameters'}, } def __init__( self, *, - identity: Optional["ManagedIdentity"] = None, + identity: Optional["_models.ManagedServiceIdentity"] = None, tags: Optional[Dict[str, str]] = None, + properties: Optional["_models.ManagedGrafanaPropertiesUpdateParameters"] = None, **kwargs ): """ :keyword identity: The managed identity of the grafana resource. - :paramtype identity: ~dashboard_management_client.models.ManagedIdentity + :paramtype identity: ~azure.mgmt.dashboard.models.ManagedServiceIdentity :keyword tags: A set of tags. The new tags of the grafana resource. :paramtype tags: dict[str, str] + :keyword properties: Properties specific to the managed grafana resource. + :paramtype properties: ~azure.mgmt.dashboard.models.ManagedGrafanaPropertiesUpdateParameters """ - super(GrafanaResourceUpdateParameters, self).__init__(**kwargs) + super(ManagedGrafanaUpdateParameters, self).__init__(**kwargs) self.identity = identity self.tags = tags + self.properties = properties -class ManagedIdentity(msrest.serialization.Model): - """The managed identity of a resource. +class ManagedServiceIdentity(msrest.serialization.Model): + """Managed service identity (system assigned and/or user assigned identities). Variables are only populated by the server, and will be ignored when sending a request. - :ivar type: The type 'SystemAssigned, UserAssigned' includes both an implicitly created - identity and a set of user assigned identities. The type 'None' will remove any identities from - the resource. Possible values include: "None", "SystemAssigned". - :vartype type: str or ~dashboard_management_client.models.IdentityType - :ivar principal_id: The principal id of the system assigned identity. + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. :vartype principal_id: str - :ivar tenant_id: The tenant id of the system assigned identity. + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. :vartype tenant_id: str - :ivar user_assigned_identities: Dictionary of user assigned identities. - :vartype user_assigned_identities: dict[str, - ~dashboard_management_client.models.UserAssignedIdentity] + :ivar type: Required. Type of managed service identity (where both SystemAssigned and + UserAssigned types are allowed). Known values are: "None", "SystemAssigned", "UserAssigned", + "SystemAssigned,UserAssigned". + :vartype type: str or ~azure.mgmt.dashboard.models.ManagedServiceIdentityType + :ivar user_assigned_identities: The set of user assigned identities associated with the + resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + The dictionary values can be empty objects ({}) in requests. + :vartype user_assigned_identities: dict[str, ~azure.mgmt.dashboard.models.UserAssignedIdentity] """ _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, + 'type': {'required': True}, } _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'}, } def __init__( self, *, - type: Optional[Union[str, "IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "UserAssignedIdentity"]] = None, + type: Union[str, "_models.ManagedServiceIdentityType"], + user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = None, **kwargs ): """ - :keyword type: The type 'SystemAssigned, UserAssigned' includes both an implicitly created - identity and a set of user assigned identities. The type 'None' will remove any identities from - the resource. Possible values include: "None", "SystemAssigned". - :paramtype type: str or ~dashboard_management_client.models.IdentityType - :keyword user_assigned_identities: Dictionary of user assigned identities. + :keyword type: Required. Type of managed service identity (where both SystemAssigned and + UserAssigned types are allowed). Known values are: "None", "SystemAssigned", "UserAssigned", + "SystemAssigned,UserAssigned". + :paramtype type: str or ~azure.mgmt.dashboard.models.ManagedServiceIdentityType + :keyword user_assigned_identities: The set of user assigned identities associated with the + resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + The dictionary values can be empty objects ({}) in requests. :paramtype user_assigned_identities: dict[str, - ~dashboard_management_client.models.UserAssignedIdentity] + ~azure.mgmt.dashboard.models.UserAssignedIdentity] """ - super(ManagedIdentity, self).__init__(**kwargs) - self.type = type + super(ManagedServiceIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None + self.type = type self.user_assigned_identities = user_assigned_identities +class Operation(msrest.serialization.Model): + """Details of a REST API operation, returned from the Resource Provider Operations API. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + :vartype name: str + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for + data-plane operations and "false" for ARM/control-plane operations. + :vartype is_data_action: bool + :ivar display: Localized display information for this particular operation. + :vartype display: ~azure.mgmt.dashboard.models.OperationDisplay + :ivar origin: The intended executor of the operation; as in Resource Based Access Control + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + "user,system". + :vartype origin: str or ~azure.mgmt.dashboard.models.Origin + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. Known values are: "Internal". + :vartype action_type: str or ~azure.mgmt.dashboard.models.ActionType + """ + + _validation = { + 'name': {'readonly': True}, + 'is_data_action': {'readonly': True}, + 'origin': {'readonly': True}, + 'action_type': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + } + + def __init__( + self, + *, + display: Optional["_models.OperationDisplay"] = None, + **kwargs + ): + """ + :keyword display: Localized display information for this particular operation. + :paramtype display: ~azure.mgmt.dashboard.models.OperationDisplay + """ + super(Operation, self).__init__(**kwargs) + self.name = None + self.is_data_action = None + self.display = display + self.origin = None + self.action_type = None + + class OperationDisplay(msrest.serialization.Model): """Localized display information for this particular operation. Variables are only populated by the server, and will be ignored when sending a request. - :ivar provider: The localized friendly form of the resource provider name, i.e., - Microsoft.Dashboard. + :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft + Monitoring Insights" or "Microsoft Compute". :vartype provider: str - :ivar resource: The localized friendly name of the resource type related to this operation, - e.g., 'grafana'. + :ivar resource: The localized friendly name of the resource type related to this operation. + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str - :ivar operation: Operation type, e.g., read, write, delete, etc. + :ivar operation: The concise, localized friendly name for the operation; suitable for + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". :vartype operation: str - :ivar description: Description of the operation, e.g., 'Read grafana'. + :ivar description: The short, localized friendly description of the operation; suitable for + tool tips and detailed views. :vartype description: str """ @@ -412,13 +589,13 @@ def __init__( class OperationListResult(msrest.serialization.Model): - """A list of REST API operations supported by Microsoft.Dashboard provider. It contains an URL link to get the next set of results. + """A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: List of operations supported by the Microsoft.Dashboard provider. - :vartype value: list[~dashboard_management_client.models.OperationResult] - :ivar next_link: URL to get the next set of operation list results if there are any. + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure.mgmt.dashboard.models.Operation] + :ivar next_link: URL to get the next set of operation list results (if there are any). :vartype next_link: str """ @@ -428,7 +605,7 @@ class OperationListResult(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[OperationResult]'}, + 'value': {'key': 'value', 'type': '[Operation]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -443,57 +620,329 @@ def __init__( self.next_link = None -class OperationResult(msrest.serialization.Model): - """A Microsoft.Dashboard REST API operation. +class PrivateEndpoint(msrest.serialization.Model): + """The Private Endpoint resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: Operation name, i.e., {provider}/{resource}/{operation}. + :ivar id: The ARM identifier for Private Endpoint. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + """ + """ + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None + + +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar is_data_action: Indicates whether the operation applies to data-plane. Set "true" for - data-plane operations and "false" for ARM/control-plane operations. - :vartype is_data_action: bool - :ivar display: Localized display information for this particular operation. - :vartype display: ~dashboard_management_client.models.OperationDisplay - :ivar origin: The intended executor of the operation. Possible values include: "user", - "system", "user,system". - :vartype origin: str or ~dashboard_management_client.models.Origin - :ivar action_type: Indicates the action type. "Internal" refers to actions that are for - internal only APIs. Possible values include: "Internal". - :vartype action_type: str or ~dashboard_management_client.models.ActionType + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.dashboard.models.SystemData """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'is_data_action': {'readonly': True}, - 'origin': {'readonly': True}, - 'action_type': {'readonly': True}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'action_type': {'key': 'actionType', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } def __init__( self, - *, - display: Optional["OperationDisplay"] = None, **kwargs ): """ - :keyword display: Localized display information for this particular operation. - :paramtype display: ~dashboard_management_client.models.OperationDisplay """ - super(OperationResult, self).__init__(**kwargs) + super(Resource, self).__init__(**kwargs) + self.id = None self.name = None - self.is_data_action = None - self.display = display - self.origin = None - self.action_type = None + self.type = None + self.system_data = None + + +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.dashboard.models.SystemData + :ivar private_endpoint: The resource of private end point. + :vartype private_endpoint: ~azure.mgmt.dashboard.models.PrivateEndpoint + :ivar private_link_service_connection_state: A collection of information about the state of the + connection between service consumer and provider. + :vartype private_link_service_connection_state: + ~azure.mgmt.dashboard.models.PrivateLinkServiceConnectionState + :ivar group_ids: The private endpoint connection group ids. + :vartype group_ids: list[str] + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Known values are: "Succeeded", "Creating", "Deleting", "Failed". + :vartype provisioning_state: str or + ~azure.mgmt.dashboard.models.PrivateEndpointConnectionProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpoint'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionState'}, + 'group_ids': {'key': 'properties.groupIds', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + private_endpoint: Optional["_models.PrivateEndpoint"] = None, + private_link_service_connection_state: Optional["_models.PrivateLinkServiceConnectionState"] = None, + group_ids: Optional[List[str]] = None, + **kwargs + ): + """ + :keyword private_endpoint: The resource of private end point. + :paramtype private_endpoint: ~azure.mgmt.dashboard.models.PrivateEndpoint + :keyword private_link_service_connection_state: A collection of information about the state of + the connection between service consumer and provider. + :paramtype private_link_service_connection_state: + ~azure.mgmt.dashboard.models.PrivateLinkServiceConnectionState + :keyword group_ids: The private endpoint connection group ids. + :paramtype group_ids: list[str] + """ + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.group_ids = group_ids + self.provisioning_state = None + + +class PrivateEndpointConnectionListResult(msrest.serialization.Model): + """List of private endpoint connection associated with the specified storage account. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of private endpoint connections. + :vartype value: list[~azure.mgmt.dashboard.models.PrivateEndpointConnection] + :ivar next_link: URL to get the next set of operation list results (if there are any). + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["_models.PrivateEndpointConnection"]] = None, + **kwargs + ): + """ + :keyword value: Array of private endpoint connections. + :paramtype value: list[~azure.mgmt.dashboard.models.PrivateEndpointConnection] + """ + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class PrivateLinkResource(Resource): + """A private link resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.dashboard.models.SystemData + :ivar provisioning_state: Provisioning state of the resource. Known values are: "Accepted", + "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", + "NotSpecified". + :vartype provisioning_state: str or ~azure.mgmt.dashboard.models.ProvisioningState + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + :ivar required_zone_names: The private link resource Private link DNS zone name. + :vartype required_zone_names: list[str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'group_id': {'key': 'properties.groupId', 'type': 'str'}, + 'required_members': {'key': 'properties.requiredMembers', 'type': '[str]'}, + 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, + } + + def __init__( + self, + *, + required_zone_names: Optional[List[str]] = None, + **kwargs + ): + """ + :keyword required_zone_names: The private link resource Private link DNS zone name. + :paramtype required_zone_names: list[str] + """ + super(PrivateLinkResource, self).__init__(**kwargs) + self.provisioning_state = None + self.group_id = None + self.required_members = None + self.required_zone_names = required_zone_names + + +class PrivateLinkResourceListResult(msrest.serialization.Model): + """A list of private link resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of private link resources. + :vartype value: list[~azure.mgmt.dashboard.models.PrivateLinkResource] + :ivar next_link: URL to get the next set of operation list results (if there are any). + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["_models.PrivateLinkResource"]] = None, + **kwargs + ): + """ + :keyword value: Array of private link resources. + :paramtype value: list[~azure.mgmt.dashboard.models.PrivateLinkResource] + """ + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = value + self.next_link = None + + +class PrivateLinkServiceConnectionState(msrest.serialization.Model): + """A collection of information about the state of the connection between service consumer and provider. + + :ivar status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. Known values are: "Pending", "Approved", "Rejected". + :vartype status: str or ~azure.mgmt.dashboard.models.PrivateEndpointServiceConnectionStatus + :ivar description: The reason for approval/rejection of the connection. + :vartype description: str + :ivar actions_required: A message indicating if changes on the service provider require any + updates on the consumer. + :vartype actions_required: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "_models.PrivateEndpointServiceConnectionStatus"]] = None, + description: Optional[str] = None, + actions_required: Optional[str] = None, + **kwargs + ): + """ + :keyword status: Indicates whether the connection has been Approved/Rejected/Removed by the + owner of the service. Known values are: "Pending", "Approved", "Rejected". + :paramtype status: str or ~azure.mgmt.dashboard.models.PrivateEndpointServiceConnectionStatus + :keyword description: The reason for approval/rejection of the connection. + :paramtype description: str + :keyword actions_required: A message indicating if changes on the service provider require any + updates on the consumer. + :paramtype actions_required: str + """ + super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = actions_required class ResourceSku(msrest.serialization.Model): @@ -528,21 +977,21 @@ def __init__( class SystemData(msrest.serialization.Model): - """SystemData. + """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: + :ivar created_by: The identity that created the resource. :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Possible values include: + :ivar created_by_type: The type of identity that created the resource. Known values are: "User", "Application", "ManagedIdentity", "Key". - :vartype created_by_type: str or ~dashboard_management_client.models.CreatedByType - :ivar created_at: + :vartype created_by_type: str or ~azure.mgmt.dashboard.models.CreatedByType + :ivar created_at: The timestamp of resource creation (UTC). :vartype created_at: ~datetime.datetime - :ivar last_modified_by: + :ivar last_modified_by: The identity that last modified the resource. :vartype last_modified_by: str - :ivar last_modified_by_type: Possible values include: "User", "Application", "ManagedIdentity", - "Key". - :vartype last_modified_by_type: str or ~dashboard_management_client.models.LastModifiedByType - :ivar last_modified_at: + :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + are: "User", "Application", "ManagedIdentity", "Key". + :vartype last_modified_by_type: str or ~azure.mgmt.dashboard.models.CreatedByType + :ivar last_modified_at: The timestamp of resource last modification (UTC). :vartype last_modified_at: ~datetime.datetime """ @@ -559,27 +1008,27 @@ def __init__( self, *, created_by: Optional[str] = None, - created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, created_at: Optional[datetime.datetime] = None, last_modified_by: Optional[str] = None, - last_modified_by_type: Optional[Union[str, "LastModifiedByType"]] = None, + last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, last_modified_at: Optional[datetime.datetime] = None, **kwargs ): """ - :keyword created_by: + :keyword created_by: The identity that created the resource. :paramtype created_by: str - :keyword created_by_type: The type of identity that created the resource. Possible values - include: "User", "Application", "ManagedIdentity", "Key". - :paramtype created_by_type: str or ~dashboard_management_client.models.CreatedByType - :keyword created_at: + :keyword created_by_type: The type of identity that created the resource. Known values are: + "User", "Application", "ManagedIdentity", "Key". + :paramtype created_by_type: str or ~azure.mgmt.dashboard.models.CreatedByType + :keyword created_at: The timestamp of resource creation (UTC). :paramtype created_at: ~datetime.datetime - :keyword last_modified_by: + :keyword last_modified_by: The identity that last modified the resource. :paramtype last_modified_by: str - :keyword last_modified_by_type: Possible values include: "User", "Application", - "ManagedIdentity", "Key". - :paramtype last_modified_by_type: str or ~dashboard_management_client.models.LastModifiedByType - :keyword last_modified_at: + :keyword last_modified_by_type: The type of identity that last modified the resource. Known + values are: "User", "Application", "ManagedIdentity", "Key". + :paramtype last_modified_by_type: str or ~azure.mgmt.dashboard.models.CreatedByType + :keyword last_modified_at: The timestamp of resource last modification (UTC). :paramtype last_modified_at: ~datetime.datetime """ super(SystemData, self).__init__(**kwargs) @@ -592,13 +1041,13 @@ def __init__( class UserAssignedIdentity(msrest.serialization.Model): - """UserAssignedIdentity. + """User assigned identity properties. Variables are only populated by the server, and will be ignored when sending a request. - :ivar principal_id: The principal id of user assigned identity. + :ivar principal_id: The principal ID of the assigned identity. :vartype principal_id: str - :ivar client_id: The client id of user assigned identity. + :ivar client_id: The client ID of the assigned identity. :vartype client_id: str """ diff --git a/src/amg/azext_amg/vendored_sdks/models/_patch.py b/src/amg/azext_amg/vendored_sdks/models/_patch.py new file mode 100644 index 00000000000..0ad201a8c58 --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/models/_patch.py @@ -0,0 +1,19 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/src/amg/azext_amg/vendored_sdks/operations/__init__.py b/src/amg/azext_amg/vendored_sdks/operations/__init__.py index 81c85b3399f..84f1e6551d9 100644 --- a/src/amg/azext_amg/vendored_sdks/operations/__init__.py +++ b/src/amg/azext_amg/vendored_sdks/operations/__init__.py @@ -8,8 +8,17 @@ from ._operations import Operations from ._grafana_operations import GrafanaOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ 'Operations', 'GrafanaOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() \ No newline at end of file diff --git a/src/amg/azext_amg/vendored_sdks/operations/_grafana_operations.py b/src/amg/azext_amg/vendored_sdks/operations/_grafana_operations.py index ca5fa25aaf3..6899c0a354d 100644 --- a/src/amg/azext_amg/vendored_sdks/operations/_grafana_operations.py +++ b/src/amg/azext_amg/vendored_sdks/operations/_grafana_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -16,14 +17,13 @@ from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request, _format_url_section T = TypeVar('T') -JSONType = Any ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] _SERIALIZER = Serializer() @@ -33,29 +33,31 @@ def build_list_request( subscription_id: str, **kwargs: Any ) -> HttpRequest: - api_version = "2021-09-01-preview" - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana") path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -65,30 +67,32 @@ def build_list_by_resource_group_request( resource_group_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2021-09-01-preview" - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -99,31 +103,33 @@ def build_get_request( workspace_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2021-09-01-preview" - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) @@ -133,39 +139,40 @@ def build_create_request_initial( resource_group_name: str, workspace_name: str, *, - json: JSONType = None, + json: Optional[_models.ManagedGrafana] = None, content: Any = None, **kwargs: Any ) -> HttpRequest: - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - api_version = "2021-09-01-preview" - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PUT", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, json=json, content=content, **kwargs @@ -177,39 +184,40 @@ def build_update_request( resource_group_name: str, workspace_name: str, *, - json: JSONType = None, + json: Optional[_models.ManagedGrafanaUpdateParameters] = None, content: Any = None, **kwargs: Any ) -> HttpRequest: - content_type = kwargs.pop('content_type', None) # type: Optional[str] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") - api_version = "2021-09-01-preview" - accept = "application/json" # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] if content_type is not None: - header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="PATCH", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, json=json, content=content, **kwargs @@ -222,100 +230,110 @@ def build_delete_request_initial( workspace_name: str, **kwargs: Any ) -> HttpRequest: - api_version = "2021-09-01-preview" - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}') + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}") # pylint: disable=line-too-long path_format_arguments = { "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), - "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), } - url = _format_url_section(url, **path_format_arguments) + _url = _format_url_section(_url, **path_format_arguments) # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="DELETE", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) -class GrafanaOperations(object): - """GrafanaOperations 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. +class GrafanaOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~dashboard_management_client.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. + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.DashboardManagementClient`'s + :attr:`grafana` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def list( self, **kwargs: Any - ) -> Iterable["_models.GrafanaResourceListResponse"]: + ) -> Iterable[_models.ManagedGrafanaListResponse]: """List all resources of workspaces for Grafana under the specified subscription. List all resources of workspaces for Grafana under 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 GrafanaResourceListResponse or the result of + :return: An iterator like instance of either ManagedGrafanaListResponse or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~dashboard_management_client.models.GrafanaResourceListResponse] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.dashboard.models.ManagedGrafanaListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResourceListResponse"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafanaListResponse] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=self.list.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_request( subscription_id=self._config.subscription_id, + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize("GrafanaResourceListResponse", pipeline_response) + deserialized = self._deserialize("ManagedGrafanaListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -324,7 +342,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -338,14 +360,14 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana'} # type: ignore + list.metadata = {'url': "/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana"} # type: ignore @distributed_trace def list_by_resource_group( self, resource_group_name: str, **kwargs: Any - ) -> Iterable["_models.GrafanaResourceListResponse"]: + ) -> Iterable[_models.ManagedGrafanaListResponse]: """List all resources of workspaces for Grafana under the specified resource group. List all resources of workspaces for Grafana under the specified resource group. @@ -353,42 +375,52 @@ def list_by_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 GrafanaResourceListResponse or the result of + :return: An iterator like instance of either ManagedGrafanaListResponse or the result of cls(response) - :rtype: - ~azure.core.paging.ItemPaged[~dashboard_management_client.models.GrafanaResourceListResponse] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.dashboard.models.ManagedGrafanaListResponse] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResourceListResponse"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafanaListResponse] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_by_resource_group_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, + api_version=api_version, template_url=self.list_by_resource_group.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_by_resource_group_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request def extract_data(pipeline_response): - deserialized = self._deserialize("GrafanaResourceListResponse", pipeline_response) + deserialized = self._deserialize("ManagedGrafanaListResponse", pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -397,7 +429,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -411,7 +447,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana'} # type: ignore + list_by_resource_group.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana"} # type: ignore @distributed_trace def get( @@ -419,37 +455,49 @@ def get( resource_group_name: str, workspace_name: str, **kwargs: Any - ) -> "_models.GrafanaResource": + ) -> _models.ManagedGrafana: """Get the properties of a specific workspace for Grafana resource. Get the properties of a specific workspace for Grafana resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: GrafanaResource, or the result of cls(response) - :rtype: ~dashboard_management_client.models.GrafanaResource + :return: ManagedGrafana, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.ManagedGrafana :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] request = build_get_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, template_url=self.get.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -457,48 +505,56 @@ def get( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore def _create_initial( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResource"] = None, + request_body_parameters: _models.ManagedGrafana, **kwargs: Any - ) -> "_models.GrafanaResource": - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] + ) -> _models.ManagedGrafana: error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] - if body is not None: - _json = self._serialize.body(body, 'GrafanaResource') - else: - _json = None + _json = self._serialize.body(request_body_parameters, 'ManagedGrafana') request = build_create_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, content_type=content_type, json=_json, template_url=self._create_initial.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 201]: @@ -506,17 +562,17 @@ def _create_initial( raise HttpResponseError(response=response, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if response.status_code == 201: - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + _create_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace @@ -524,9 +580,9 @@ def begin_create( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResource"] = None, + request_body_parameters: _models.ManagedGrafana, **kwargs: Any - ) -> LROPoller["_models.GrafanaResource"]: + ) -> LROPoller[_models.ManagedGrafana]: """Create or update a workspace for Grafana resource. This API is idempotent, so user can either create a new grafana or update an existing grafana. @@ -535,10 +591,10 @@ def begin_create( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str - :param body: - :type body: ~dashboard_management_client.models.GrafanaResource + :param request_body_parameters: + :type request_body_parameters: ~azure.mgmt.dashboard.models.ManagedGrafana :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this @@ -547,40 +603,52 @@ def begin_create( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either GrafanaResource or the result of + :return: An instance of LROPoller that returns either ManagedGrafana or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~dashboard_management_client.models.GrafanaResource] + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.dashboard.models.ManagedGrafana] :raises: ~azure.core.exceptions.HttpResponseError """ - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._create_initial( + raw_result = self._create_initial( # type: ignore resource_group_name=resource_group_name, workspace_name=workspace_name, - body=body, + request_body_parameters=request_body_parameters, + api_version=api_version, content_type=content_type, cls=lambda x,y,z: x, + headers=_headers, + params=_params, **kwargs ) kwargs.pop('error_map', None) def get_long_running_output(pipeline_response): - response = pipeline_response.http_response - deserialized = self._deserialize('GrafanaResource', pipeline_response) + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) - elif polling is False: polling_method = NoPolling() + if polling is True: + polling_method = cast(PollingMethod, ARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: PollingMethod + elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( @@ -589,99 +657,122 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + begin_create.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace def update( self, resource_group_name: str, workspace_name: str, - body: Optional["_models.GrafanaResourceUpdateParameters"] = None, + request_body_parameters: _models.ManagedGrafanaUpdateParameters, **kwargs: Any - ) -> "_models.GrafanaResource": + ) -> _models.ManagedGrafana: """Update a workspace for Grafana resource. Update a workspace for Grafana resource. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str - :param body: - :type body: ~dashboard_management_client.models.GrafanaResourceUpdateParameters + :param request_body_parameters: + :type request_body_parameters: ~azure.mgmt.dashboard.models.ManagedGrafanaUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response - :return: GrafanaResource, or the result of cls(response) - :rtype: ~dashboard_management_client.models.GrafanaResource + :return: ManagedGrafana, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.ManagedGrafana :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.GrafanaResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - content_type = kwargs.pop('content_type', "application/json") # type: Optional[str] + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.ManagedGrafana] - if body is not None: - _json = self._serialize.body(body, 'GrafanaResourceUpdateParameters') - else: - _json = None + _json = self._serialize.body(request_body_parameters, 'ManagedGrafanaUpdateParameters') request = build_update_request( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, content_type=content_type, json=_json, template_url=self.update.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('GrafanaResource', pipeline_response) + if response.status_code == 200: + deserialized = self._deserialize('ManagedGrafana', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ManagedGrafana', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore - def _delete_initial( + def _delete_initial( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, workspace_name: str, **kwargs: Any ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] request = build_delete_request_initial( subscription_id=self._config.subscription_id, resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, template_url=self._delete_initial.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: @@ -691,11 +782,11 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore @distributed_trace - def begin_delete( + def begin_delete( # pylint: disable=inconsistent-return-statements self, resource_group_name: str, workspace_name: str, @@ -707,7 +798,7 @@ def begin_delete( :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str - :param workspace_name: The name of Azure Managed Workspace for Grafana. + :param workspace_name: The workspace name of Azure Managed Grafana. :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. @@ -721,18 +812,25 @@ def begin_delete( :rtype: ~azure.core.polling.LROPoller[None] :raises: ~azure.core.exceptions.HttpResponseError """ - polling = kwargs.pop('polling', True) # type: Union[bool, azure.core.polling.PollingMethod] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str cls = kwargs.pop('cls', None) # type: ClsType[None] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._delete_initial( + raw_result = self._delete_initial( # type: ignore resource_group_name=resource_group_name, workspace_name=workspace_name, + api_version=api_version, cls=lambda x,y,z: x, + headers=_headers, + params=_params, **kwargs ) kwargs.pop('error_map', None) @@ -742,8 +840,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) - elif polling is False: polling_method = NoPolling() + if polling is True: + polling_method = cast(PollingMethod, ARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: PollingMethod + elif polling is False: polling_method = cast(PollingMethod, NoPolling()) else: polling_method = polling if cont_token: return LROPoller.from_continuation_token( @@ -752,7 +856,6 @@ def get_long_running_output(pipeline_response): client=self._client, deserialization_callback=get_long_running_output ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}'} # type: ignore + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/operations/_operations.py b/src/amg/azext_amg/vendored_sdks/operations/_operations.py index 9102d9ad46f..b02140f432d 100644 --- a/src/amg/azext_amg/vendored_sdks/operations/_operations.py +++ b/src/amg/azext_amg/vendored_sdks/operations/_operations.py @@ -1,3 +1,4 @@ +# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -5,9 +6,9 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import functools -from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar -import warnings +from typing import Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged @@ -15,8 +16,8 @@ from azure.core.pipeline.transport import HttpResponse from azure.core.rest import HttpRequest from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict from azure.mgmt.core.exceptions import ARMErrorFormat -from msrest import Serializer from .. import models as _models from .._vendor import _convert_request @@ -29,84 +30,95 @@ def build_list_request( **kwargs: Any ) -> HttpRequest: - api_version = "2021-09-01-preview" - accept = "application/json" + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + # Construct URL - url = kwargs.pop("template_url", '/providers/Microsoft.Dashboard/operations') + _url = kwargs.pop("template_url", "/providers/Microsoft.Dashboard/operations") # Construct parameters - query_parameters = kwargs.pop("params", {}) # type: Dict[str, Any] - query_parameters['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') # Construct headers - header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any] - header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') return HttpRequest( method="GET", - url=url, - params=query_parameters, - headers=header_parameters, + url=_url, + params=_params, + headers=_headers, **kwargs ) -class Operations(object): - """Operations 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. +class Operations: + """ + .. warning:: + **DO NOT** instantiate this class directly. - :ivar models: Alias to model classes used in this operation group. - :type models: ~dashboard_management_client.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. + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.DashboardManagementClient`'s + :attr:`operations` attribute. """ models = _models - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + @distributed_trace def list( self, **kwargs: Any - ) -> Iterable["_models.OperationListResult"]: + ) -> Iterable[_models.OperationListResult]: """List all available API operations provided by Microsoft.Dashboard. List all available API operations provided by Microsoft.Dashboard. :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~dashboard_management_client.models.OperationListResult] + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.dashboard.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.OperationListResult] + error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } - error_map.update(kwargs.pop('error_map', {})) + error_map.update(kwargs.pop('error_map', {}) or {}) def prepare_request(next_link=None): if not next_link: request = build_list_request( + api_version=api_version, template_url=self.list.metadata['url'], + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore else: request = build_list_request( + api_version=api_version, template_url=next_link, + headers=_headers, + params=_params, ) request = _convert_request(request) - request.url = self._client.format_url(request.url) + request.url = self._client.format_url(request.url) # type: ignore request.method = "GET" return request @@ -120,7 +132,11 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + pipeline_response = self._client._pipeline.run( # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) response = pipeline_response.http_response if response.status_code not in [200]: @@ -134,4 +150,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.Dashboard/operations'} # type: ignore + list.metadata = {'url': "/providers/Microsoft.Dashboard/operations"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/operations/_patch.py b/src/amg/azext_amg/vendored_sdks/operations/_patch.py new file mode 100644 index 00000000000..0ad201a8c58 --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/operations/_patch.py @@ -0,0 +1,19 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/src/amg/azext_amg/vendored_sdks/operations/_private_endpoint_connections_operations.py b/src/amg/azext_amg/vendored_sdks/operations/_private_endpoint_connections_operations.py new file mode 100644 index 00000000000..356e362603b --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/operations/_private_endpoint_connections_operations.py @@ -0,0 +1,654 @@ +# pylint: disable=too-many-lines +# 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 Any, Callable, Dict, Iterable, Optional, TypeVar, Union, cast + +from msrest import Serializer + +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 HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_get_request( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_params, + headers=_headers, + **kwargs + ) + + +def build_approve_request_initial( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + *, + json: Optional[_models.PrivateEndpointConnection] = None, + content: Any = None, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', None)) # type: Optional[str] + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + if content_type is not None: + _headers['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str') + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="PUT", + url=_url, + params=_params, + headers=_headers, + json=json, + content=content, + **kwargs + ) + + +def build_delete_request_initial( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + "privateEndpointConnectionName": _SERIALIZER.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="DELETE", + url=_url, + params=_params, + headers=_headers, + **kwargs + ) + + +def build_list_request( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_params, + headers=_headers, + **kwargs + ) + +class PrivateEndpointConnectionsOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.DashboardManagementClient`'s + :attr:`private_endpoint_connections` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + + @distributed_trace + def get( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> _models.PrivateEndpointConnection: + """Get private endpoint connections. + + Get private endpoint connections. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateEndpointConnection, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.PrivateEndpointConnection + :raises: ~azure.core.exceptions.HttpResponseError + """ + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self.get.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + def _approve_initial( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + body: Optional[_models.PrivateEndpointConnection] = None, + **kwargs: Any + ) -> _models.PrivateEndpointConnection: + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + + if body is not None: + _json = self._serialize.body(body, 'PrivateEndpointConnection') + else: + _json = None + + request = build_approve_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + content_type=content_type, + json=_json, + template_url=self._approve_initial.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + _approve_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace + def begin_approve( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + body: Optional[_models.PrivateEndpointConnection] = None, + **kwargs: Any + ) -> LROPoller[_models.PrivateEndpointConnection]: + """Manual approve private endpoint connection. + + Manual approve private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :param body: Default value is None. + :type body: ~azure.mgmt.dashboard.models.PrivateEndpointConnection + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this + operation to not poll, or pass in your own initialized polling object for a personal polling + strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result + of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.dashboard.models.PrivateEndpointConnection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + content_type = kwargs.pop('content_type', _headers.pop('Content-Type', "application/json")) # type: Optional[str] + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnection] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._approve_initial( # type: ignore + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + body=body, + api_version=api_version, + content_type=content_type, + cls=lambda x,y,z: x, + headers=_headers, + params=_params, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + + if polling is True: + polling_method = cast(PollingMethod, ARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: PollingMethod + elif polling is False: polling_method = cast(PollingMethod, NoPolling()) + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_approve.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + def _delete_initial( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> None: + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] + + + request = build_delete_request_initial( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + template_url=self._delete_initial.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, + stream=False, + **kwargs + ) + response = pipeline_response.http_response + + if response.status_code not in [202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + + @distributed_trace + def begin_delete( # pylint: disable=inconsistent-return-statements + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs: Any + ) -> LROPoller[None]: + """Delete private endpoint connection. + + Delete private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_endpoint_connection_name: The private endpoint connection name of Azure Managed + Grafana. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this + operation to not poll, or pass in your own initialized polling object for a personal polling + strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no + Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[None] + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( # type: ignore + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + api_version=api_version, + cls=lambda x,y,z: x, + headers=_headers, + params=_params, + **kwargs + ) + kwargs.pop('error_map', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + + if polling is True: + polling_method = cast(PollingMethod, ARMPolling( + lro_delay, + lro_options={'final-state-via': 'azure-async-operation'}, + + **kwargs + )) # type: PollingMethod + elif polling is False: polling_method = cast(PollingMethod, NoPolling()) + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + + begin_delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}"} # type: ignore + + @distributed_trace + def list( + self, + resource_group_name: str, + workspace_name: str, + **kwargs: Any + ) -> Iterable[_models.PrivateEndpointConnectionListResult]: + """Get private endpoint connection. + + Get private endpoint connection. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateEndpointConnectionListResult or the result + of cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.dashboard.models.PrivateEndpointConnectionListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateEndpointConnectionListResult] + + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=self.list.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=next_link, + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("PrivateEndpointConnectionListResult", 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( # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateEndpointConnections"} # type: ignore diff --git a/src/amg/azext_amg/vendored_sdks/operations/_private_link_resources_operations.py b/src/amg/azext_amg/vendored_sdks/operations/_private_link_resources_operations.py new file mode 100644 index 00000000000..2c3319bb4f0 --- /dev/null +++ b/src/amg/azext_amg/vendored_sdks/operations/_private_link_resources_operations.py @@ -0,0 +1,286 @@ +# pylint: disable=too-many-lines +# 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 Any, Callable, Dict, Iterable, Optional, TypeVar + +from msrest import Serializer + +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 HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models +from .._vendor import _convert_request, _format_url_section +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + +def build_list_request( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_params, + headers=_headers, + **kwargs + ) + + +def build_get_request( + subscription_id: str, + resource_group_name: str, + workspace_name: str, + private_link_resource_name: str, + **kwargs: Any +) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + accept = _headers.pop('Accept', "application/json") + + # Construct URL + _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}") # pylint: disable=line-too-long + path_format_arguments = { + "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, 'str', min_length=1), + "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + "workspaceName": _SERIALIZER.url("workspace_name", workspace_name, 'str'), + "privateLinkResourceName": _SERIALIZER.url("private_link_resource_name", private_link_resource_name, 'str'), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params['api-version'] = _SERIALIZER.query("api_version", api_version, 'str') + + # Construct headers + _headers['Accept'] = _SERIALIZER.header("accept", accept, 'str') + + return HttpRequest( + method="GET", + url=_url, + params=_params, + headers=_headers, + **kwargs + ) + +class PrivateLinkResourcesOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.mgmt.dashboard.DashboardManagementClient`'s + :attr:`private_link_resources` attribute. + """ + + models = _models + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + + @distributed_trace + def list( + self, + resource_group_name: str, + workspace_name: str, + **kwargs: Any + ) -> Iterable[_models.PrivateLinkResourceListResult]: + """List all private link resources information for this grafana resource. + + List all private link resources information for this grafana resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateLinkResourceListResult or the result of + cls(response) + :rtype: + ~azure.core.paging.ItemPaged[~azure.mgmt.dashboard.models.PrivateLinkResourceListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateLinkResourceListResult] + + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + def prepare_request(next_link=None): + if not next_link: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=self.list.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + else: + + request = build_list_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + api_version=api_version, + template_url=next_link, + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + request.method = "GET" + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize("PrivateLinkResourceListResult", 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( # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources"} # type: ignore + + @distributed_trace + def get( + self, + resource_group_name: str, + workspace_name: str, + private_link_resource_name: str, + **kwargs: Any + ) -> _models.PrivateLinkResource: + """Get specific private link resource information for this grafana resource. + + Get specific private link resource information for this grafana resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param workspace_name: The workspace name of Azure Managed Grafana. + :type workspace_name: str + :param private_link_resource_name: + :type private_link_resource_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateLinkResource, or the result of cls(response) + :rtype: ~azure.mgmt.dashboard.models.PrivateLinkResource + :raises: ~azure.core.exceptions.HttpResponseError + """ + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop('api_version', _params.pop('api-version', "2022-08-01")) # type: str + cls = kwargs.pop('cls', None) # type: ClsType[_models.PrivateLinkResource] + + + request = build_get_request( + subscription_id=self._config.subscription_id, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_link_resource_name=private_link_resource_name, + api_version=api_version, + template_url=self.get.metadata['url'], + headers=_headers, + params=_params, + ) + request = _convert_request(request) + request.url = self._client.format_url(request.url) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + 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.failsafe_deserialize(_models.ErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateLinkResource', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + + get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Dashboard/grafana/{workspaceName}/privateLinkResources/{privateLinkResourceName}"} # type: ignore + diff --git a/src/amg/setup.py b/src/amg/setup.py index eb81734685f..9d7996d2832 100644 --- a/src/amg/setup.py +++ b/src/amg/setup.py @@ -16,9 +16,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. - -VERSION = '0.1.3' - +VERSION = '0.2.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers