Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,8 @@ def ensure_default_log_analytics_workspace_for_monitoring(
if ex.status_code != 404:
raise ex
else:
ResourceGroup = cmd.get_models(
"ResourceGroup", resource_type=ResourceType.MGMT_RESOURCE_RESOURCES
)
resource_group = ResourceGroup(location=workspace_region)
resource_groups.create_or_update(
default_workspace_resource_group, resource_group
default_workspace_resource_group, {"location": workspace_region}
)

GenericResource = cmd.get_models(
Expand Down Expand Up @@ -314,7 +310,7 @@ def ensure_container_insights_for_monitoring(
f"/subscriptions/{cluster_subscription}/resourceGroups/{cluster_resource_group_name}/"
f"providers/Microsoft.ContainerService/managedClusters/{cluster_name}"
)
dataCollectionRuleName = f"DCR-{workspace_name}"
dataCollectionRuleName = f"MSCI-{workspace_name}"
dcr_resource_id = (
f"/subscriptions/{subscription_id}/resourceGroups/{resource_group}/"
f"providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}"
Expand Down
Loading