Skip to content
Open
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 @@ -115,7 +115,18 @@ def try_get_config_id(lookup_id, api_version = "2025-08-01"):


# If we reach here, no configuration was found
raise CLIInternalError(f"No configuration linked to this hierarchy: {hierarchy_id_str}")
if "microsoft.edge/targets" in hierarchy_id_str.lower():
raise CLIInternalError(
f"Missing target configuration and configuration reference for Target: {hierarchy_id_str}"
)
elif "microsoft.edge/sites" in hierarchy_id_str.lower():
raise CLIInternalError(
f"Missing site configuration and configuration reference for Site: {hierarchy_id_str}"
)
Comment on lines +118 to +125
else:
raise CLIInternalError(
f"Hierarchy Id can either be of Target or Site Resource. Invalid Id: {hierarchy_id_str}"
)

@staticmethod
def getTemplateUniqueIdentifier(subscription_id, template_resource_group_name, template_name, solution_flag, client):
Expand Down
Loading