[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BRSJGC84SF0F9567H5A03":3,"skill-same:01M69BRSJGC84SF0F9567H5A03":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M69BRSJGC84SF0F9567H5A03","wellknown-analyzer","验收测试预置资源依赖分析","Analyze dependencies and determine what infrastructure must be added to tools\u002Fscripts\u002FSet-WellKnown.ps1 and internal\u002Ftesthelp\u002Fwellknown.go so that acceptance tests for a new resource have all required pre-requisite resources available. USE FOR: analyzing well-known test fixture requirements for new resources, determining creation strategies, and generating code snippets for Set-WellKnown.ps1 and wellknown.go additions.","分析依赖关系，确定需要向 tools\u002Fscripts\u002FSet-WellKnown.ps1 和 internal\u002Ftesthelp\u002Fwellknown.go 中添加哪些基础设施，使新资源的验收测试具备所有必需的先决资源。用于：分析新资源的已知（well-known）测试夹具需求、确定创建策略，以及生成用于补充 Set-WellKnown.ps1 和 wellknown.go 的代码片段。","microsoft\u002Fterraform-provider-fabric","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BRDVBHATNC3Y885F5ET9B",130,"MPL-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwellknown-analyzer\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"analyzer","wellknown analyzer","use","new","for","resources","scripts","tests","creation","strategies","fixture","snippets","go","analyze","Tools","SET","analyzing","acceptance","code","infrastructure","test","2026-11-10 10:12:30",false,"---\nname: wellknown-analyzer\ndescription: >-\n  Analyze dependencies and determine what infrastructure must be added to tools\u002Fscripts\u002FSet-WellKnown.ps1 and internal\u002Ftesthelp\u002Fwellknown.go so that acceptance tests for a new resource have all required pre-requisite resources available. USE FOR: analyzing well-known test fixture requirements for new resources, determining creation strategies, and generating code snippets for Set-WellKnown.ps1 and wellknown.go additions.\n---\n\n# Skill: Well-Known Analyzer\n\nDetermine what infrastructure must be added to `tools\u002Fscripts\u002FSet-WellKnown.ps1` so that acceptance tests for a new resource have all required pre-requisite resources available.\n\n## Background\n\nAcceptance tests run against real Fabric APIs and need pre-existing infrastructure. The PowerShell script `tools\u002Fscripts\u002FSet-WellKnown.ps1` creates all required resources and writes their IDs\u002Fmetadata to a `.wellknown.json` fixture that tests consume at runtime.\n\nWhen adding a new resource, you must determine:\n\n1. Can the new resource be created simply (no payload, no definition)?\n2. Does it need a `CreationPayload` or `Definition`?\n3. Does it depend on other Fabric Items that must exist first?\n4. Does it require Azure infrastructure (Resource Groups, VNets, Storage Accounts, etc.)?\n5. Does it need Entra ID objects (service principals, groups)?\n6. Does it need external service connections (AzDO, GitHub)?\n\n## Step 1 — Analyze the New Resource's Dependencies\n\nRead the SDK analysis (from `#skill:sdk-contract-navigator`) and Fabric API documentation to answer:\n\n### Fabric Resource Dependencies\n\n| Question                                     | How to Check                                 | Example                                                                 |\n| -------------------------------------------- | -------------------------------------------- | ----------------------------------------------------------------------- |\n| Does Create require a `workspace_id`?        | Almost always yes                            | All workspace-scoped items                                              |\n| Does Create require another resource's ID?   | Check `CreationPayload` for reference fields | KQL Database needs `parentEventhouseItemId`                             |\n| Does Create require a `Definition`?          | Check if API requires definition on create   | Report needs `definition.pbir`, Semantic Model needs `definition.pbism` |\n| Does it have a parent resource relationship? | Check if resource is scoped under another    | DigitalTwinBuilderFlow requires a DigitalTwinBuilder                    |\n| Does it need data populated after creation?  | Check if tests rely on resource content      | Lakehouse needs sample data loaded for shortcut tests                   |\n\n### Azure Infrastructure Dependencies\n\n| Question                              | How to Check                                     | Example                            |\n| ------------------------------------- | ------------------------------------------------ | ---------------------------------- |\n| Does it need an Azure Resource Group? | Check if the resource references Azure resources | Mounted Data Factory, VNet Gateway |\n| Does it need a Storage Account?       | Check for blob\u002Fstorage references                | Managed Private Endpoints          |\n| Does it need a Virtual Network?       | Check for VNet\u002Fsubnet references                 | Virtual Network Gateway            |\n| Does it need an Azure Data Factory?   | Check for ADF references                         | Mounted Data Factory               |\n| Does it need Azure RBAC assignments?  | Check if Azure roles must be pre-assigned        | Network Contributor on VNet        |\n\n### Entra ID Dependencies\n\n| Question                                 | How to Check                      | Example                    |\n| ---------------------------------------- | --------------------------------- | -------------------------- |\n| Does it need a Service Principal?        | Check for role assignment tests   | Role assignment resources  |\n| Does it need an Entra Group?             | Check for group-based assignments | Workspace role assignments |\n| Does it need specific app registrations? | Check for OAuth\u002Fauth requirements | Connection resources       |\n\n### External Service Dependencies\n\n| Question                           | How to Check                        | Example                                    |\n| ---------------------------------- | ----------------------------------- | ------------------------------------------ |\n| Does it need an AzDO project\u002Frepo? | Check for Git integration           | Workspace Git                              |\n| Does it need a GitHub connection?  | Check for GitHub references         | Workspace Git                              |\n| Does it need a Fabric Connection?  | Check for connection references     | Connection role assignments                |\n| Does it need a Gateway?            | Check for gateway-scoped operations | Gateway role assignments, VNet connections |\n\n## Step 2 — Check Current Well-Known Script\n\nRead `tools\u002Fscripts\u002FSet-WellKnown.ps1` to determine what already exists and what's missing.\n\n### Check the `Set-FabricItem` switch block\n\nLook at the `switch ($Type)` block in the `Set-FabricItem` function. If the new item type is missing, it needs an entry mapping to its REST API endpoint:\n\n```powershell\n'\u003CNewItemType>' {\n    $itemEndpoint = '\u003CcamelCasePluralEndpoint>'\n}\n```\n\nThe endpoint is the camelCase plural of the item type (e.g. `lakehouses`, `eventhouses`, `sqlDatabases`, `dataPipelines`).\n\n### Check the `$itemNaming` hashtable\n\nEvery item that gets created needs a short naming abbreviation in `$itemNaming`:\n\n```powershell\n'\u003CNewItemType>' = '\u003C2-5 char abbreviation>'\n```\n\n### Check existing creation patterns\n\nDetermine which creation pattern applies.\n\n## Step 3 — Determine the Creation Strategy\n\n### Strategy A: Simple Item (no payload, no definition)\n\nIf the Fabric API can create the item with just `displayName` and `description`, add it to the `$itemTypes` array:\n\n```powershell\n$itemTypes = @('ApacheAirflowJob', ..., '\u003CNewItemType>', ..., 'Warehouse')\n```\n\nThe loop handles creation automatically:\n\n```powershell\nforeach ($itemType in $itemTypes) {\n    $displayNameTemp = \"${displayName}_$($itemNaming[$itemType])\"\n    $item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type $itemType\n    $wellKnown[$itemType] = @{\n        id          = $item.id\n        displayName = $item.displayName\n        description = $item.description\n    }\n}\n```\n\n**Fabric Items currently using this pattern:** ApacheAirflowJob, CopyJob, Dataflow, DataPipeline, DigitalTwinBuilder, Environment, Eventhouse, GraphQLApi, KQLDashboard, KQLQueryset, Lakehouse, Map, MLExperiment, MLModel, Notebook, Reflex, SparkJobDefinition, SQLDatabase, VariableLibrary, Warehouse\n\n### Strategy B: Item with CreationPayload\n\nIf the API requires a `creationPayload` on create, add a dedicated block **after** any dependencies have been created:\n\n```powershell\n# Create \u003CNewItemType> if not exists\n$displayNameTemp = \"${displayName}_$($itemNaming['\u003CNewItemType>'])\"\n$creationPayload = @{\n    \u003CrequiredField> = \u003Cvalue>\n}\n$item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type '\u003CNewItemType>' -CreationPayload $creationPayload\n$wellKnown['\u003CNewItemType>'] = @{\n    id          = $item.id\n    displayName = $item.displayName\n    description = $item.description\n}\n```\n\n**Current examples:**\n\n- **KQLDatabase** — needs `databaseType` and `parentEventhouseItemId` (depends on Eventhouse)\n- **DigitalTwinBuilderFlow** — needs `digitalTwinBuilderItemReference` (depends on DigitalTwinBuilder)\n- **WarehouseSnapshot** — needs `parentWarehouseId` (depends on Warehouse)\n\n### Strategy C: Item with Definition\n\nIf the API requires a `definition` on create (items that are definition-required):\n\n```powershell\n$displayNameTemp = \"${displayName}_$($itemNaming['\u003CNewItemType>'])\"\n$definition = @{\n    parts = @(\n        @{\n            path        = '\u003Cdefinition-path>'\n            payload     = Get-DefinitionPartBase64 -Path 'internal\u002Ftesthelp\u002Ffixtures\u002F\u003Citem_type>\u002F\u003Cfile>.tmpl' -Values @(\n                @{ key = '{{ .PlaceholderVar }}'; value = $actualValue }\n            )\n            payloadType = 'InlineBase64'\n        }\n    )\n}\n$item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type '\u003CNewItemType>' -Definition $definition\n$wellKnown['\u003CNewItemType>'] = @{\n    id          = $item.id\n    displayName = $item.displayName\n    description = $item.description\n}\n```\n\n**Current examples:**\n\n- **MirroredDatabase** — needs `mirroring.json` definition\n- **SemanticModel** — needs `definition.pbism` + `model.bim`\n- **Report** — needs `definition.pbir` + `report.json` + static resources (depends on SemanticModel)\n- **Eventstream** — needs `eventstream.json` definition (depends on Lakehouse)\n- **MountedDataFactory** — needs `mountedDataFactory-content.json` (depends on Azure Data Factory)\n\nThis strategy also requires:\n\n1. Create template fixture files in `internal\u002Ftesthelp\u002Ffixtures\u002F\u003Citem_type>\u002F`\n2. Use `Get-DefinitionPartBase64` to Base64-encode the definition content\n\n### Strategy D: Non-Fabric-Item Infrastructure\n\nFor non-Fabric-Item resources that need dedicated setup:\n\n**Azure resources:**\n\n```powershell\n# Create Azure resource\n$resource = Set-Azure\u003CResource> -ResourceGroupName $wellKnown['ResourceGroup'].name -Name $displayNameTemp ...\n$wellKnown['\u003CResourceKey>'] = @{\n    id   = $resource.Id\n    name = $resource.Name\n}\n```\n\n**Fabric connections:**\n\n```powershell\n$connection = Set-FabricConnection -DisplayName $displayNameTemp -ConnectivityType \"\u003Ctype>\"\n$wellKnown['\u003CConnectionKey>'] = @{\n    id          = $connection.id\n    displayName = $connection.displayName\n}\n```\n\n**Role assignments:**\n\n```powershell\nSet-FabricGatewayRoleAssignment -GatewayId $gatewayId -PrincipalId $principalId -PrincipalType 'ServicePrincipal' -Role 'Admin'\n```\n\n**Domains:**\n\n```powershell\n$domain = Set-FabricDomain -DisplayName $displayNameTemp\n$wellKnown['\u003CDomainKey>'] = @{ id = $domain.id; displayName = $domain.displayName }\n```\n\n## Step 4 — Check for Ordering Requirements\n\nWell-known resources are created sequentially. Ensure dependencies are created before dependents:\n\n1. **Azure infrastructure first** — Resource Groups, VNets, Storage Accounts, Data Factories\n2. **Workspaces second** — WorkspaceMPE, WorkspaceOAP, WorkspaceRS, WorkspaceDS\n3. **Simple Fabric Items third** — items in the `$itemTypes` array\n4. **Dependent Fabric Items fourth** — items that reference other items (KQLDatabase→Eventhouse, DigitalTwinBuilderFlow→DigitalTwinBuilder)\n5. **Fabric Items with definitions fifth** — items requiring definition fixtures\n6. **Non-item resources sixth** — Connections, Gateways, Domains, etc.\n7. **Sub-resources last** — Role assignments, shortcuts, folders, schedulers\n\nIf the new resource depends on something not yet created, note it as a prerequisite.\n\n## Step 5 — Produce the Recommendation\n\nOutput a structured recommendation:\n\n### Summary\n\n```\nResource: fabric_\u003Cname>\nCategory: Fabric Item \u002F non-item\nCreation Strategy: A (simple) \u002F B (payload) \u002F C (definition) \u002F D (non-item infra)\n```\n\n### Dependencies Found\n\nList all identified dependencies:\n\n```\n✅ Already exists: \u003Cdependency>\n❌ Missing: \u003Cdependency> — needs to be added\n```\n\n### Required Changes to `Set-WellKnown.ps1`\n\n1. **Switch block** — Add\u002Fconfirm entry\n2. **$itemNaming** — Add abbreviation\n3. **Creation logic** — Add to array or add dedicated block\n4. **$wellKnown output** — Ensure entry is written\n5. **Fixture files** — List any template files needed in `internal\u002Ftesthelp\u002Ffixtures\u002F`\n6. **Azure infra** — List any Azure resources needed\n7. **Ordering** — Where in the script the new code should be placed\n\n### Code Snippets\n\nProvide ready-to-paste PowerShell code for each required change.\n\n## Go Access Pattern (`wellknown.go`)\n\nWell-known data is loaded from `internal\u002Ftesthelp\u002Ffixtures\u002F.wellknown.json` (or the `FABRIC_TESTACC_WELLKNOWN` env var) and accessed in tests via:\n\n```go\nentity := testhelp.WellKnown()[\"Lakehouse\"].(map[string]any)\nentityID := entity[\"id\"].(string)\n```\n\n### Key Workspaces\n\n| Key            | Purpose                               |\n| -------------- | ------------------------------------- |\n| `WorkspaceRS`  | Resource tests (create\u002Fupdate\u002Fdelete) |\n| `WorkspaceDS`  | Data source tests (read-only)         |\n| `WorkspaceMPE` | Managed private endpoint tests        |\n| `WorkspaceOAP` | Outbound access policy tests          |\n\n## Reference\n\n- Well-known setup script: `tools\u002Fscripts\u002FSet-WellKnown.ps1`\n- Well-known Go accessor: `internal\u002Ftesthelp\u002Fwellknown.go`\n- Test fixture directory: `internal\u002Ftesthelp\u002Ffixtures\u002F`\n- Well-known JSON output: `internal\u002Ftesthelp\u002Ffixtures\u002F.wellknown.json`\n","# Skill: Well-Known Analyzer\n\nDetermine what infrastructure must be added to `tools\u002Fscripts\u002FSet-WellKnown.ps1` so that acceptance tests for a new resource have all required pre-requisite resources available.\n\n## Background\n\nAcceptance tests run against real Fabric APIs and need pre-existing infrastructure. The PowerShell script `tools\u002Fscripts\u002FSet-WellKnown.ps1` creates all required resources and writes their IDs\u002Fmetadata to a `.wellknown.json` fixture that tests consume at runtime.\n\nWhen adding a new resource, you must determine:\n\n1. Can the new resource be created simply (no payload, no definition)?\n2. Does it need a `CreationPayload` or `Definition`?\n3. Does it depend on other Fabric Items that must exist first?\n4. Does it require Azure infrastructure (Resource Groups, VNets, Storage Accounts, etc.)?\n5. Does it need Entra ID objects (service principals, groups)?\n6. Does it need external service connections (AzDO, GitHub)?\n\n## Step 1 — Analyze the New Resource's Dependencies\n\nRead the SDK analysis (from `#skill:sdk-contract-navigator`) and Fabric API documentation to answer:\n\n### Fabric Resource Dependencies\n\n| Question                                     | How to Check                                 | Example                                                                 |\n| -------------------------------------------- | -------------------------------------------- | ----------------------------------------------------------------------- |\n| Does Create require a `workspace_id`?        | Almost always yes                            | All workspace-scoped items                                              |\n| Does Create require another resource's ID?   | Check `CreationPayload` for reference fields | KQL Database needs `parentEventhouseItemId`                             |\n| Does Create require a `Definition`?          | Check if API requires definition on create   | Report needs `definition.pbir`, Semantic Model needs `definition.pbism` |\n| Does it have a parent resource relationship? | Check if resource is scoped under another    | DigitalTwinBuilderFlow requires a DigitalTwinBuilder                    |\n| Does it need data populated after creation?  | Check if tests rely on resource content      | Lakehouse needs sample data loaded for shortcut tests                   |\n\n### Azure Infrastructure Dependencies\n\n| Question                              | How to Check                                     | Example                            |\n| ------------------------------------- | ------------------------------------------------ | ---------------------------------- |\n| Does it need an Azure Resource Group? | Check if the resource references Azure resources | Mounted Data Factory, VNet Gateway |\n| Does it need a Storage Account?       | Check for blob\u002Fstorage references                | Managed Private Endpoints          |\n| Does it need a Virtual Network?       | Check for VNet\u002Fsubnet references                 | Virtual Network Gateway            |\n| Does it need an Azure Data Factory?   | Check for ADF references                         | Mounted Data Factory               |\n| Does it need Azure RBAC assignments?  | Check if Azure roles must be pre-assigned        | Network Contributor on VNet        |\n\n### Entra ID Dependencies\n\n| Question                                 | How to Check                      | Example                    |\n| ---------------------------------------- | --------------------------------- | -------------------------- |\n| Does it need a Service Principal?        | Check for role assignment tests   | Role assignment resources  |\n| Does it need an Entra Group?             | Check for group-based assignments | Workspace role assignments |\n| Does it need specific app registrations? | Check for OAuth\u002Fauth requirements | Connection resources       |\n\n### External Service Dependencies\n\n| Question                           | How to Check                        | Example                                    |\n| ---------------------------------- | ----------------------------------- | ------------------------------------------ |\n| Does it need an AzDO project\u002Frepo? | Check for Git integration           | Workspace Git                              |\n| Does it need a GitHub connection?  | Check for GitHub references         | Workspace Git                              |\n| Does it need a Fabric Connection?  | Check for connection references     | Connection role assignments                |\n| Does it need a Gateway?            | Check for gateway-scoped operations | Gateway role assignments, VNet connections |\n\n## Step 2 — Check Current Well-Known Script\n\nRead `tools\u002Fscripts\u002FSet-WellKnown.ps1` to determine what already exists and what's missing.\n\n### Check the `Set-FabricItem` switch block\n\nLook at the `switch ($Type)` block in the `Set-FabricItem` function. If the new item type is missing, it needs an entry mapping to its REST API endpoint:\n\n```powershell\n'\u003CNewItemType>' {\n    $itemEndpoint = '\u003CcamelCasePluralEndpoint>'\n}\n```\n\nThe endpoint is the camelCase plural of the item type (e.g. `lakehouses`, `eventhouses`, `sqlDatabases`, `dataPipelines`).\n\n### Check the `$itemNaming` hashtable\n\nEvery item that gets created needs a short naming abbreviation in `$itemNaming`:\n\n```powershell\n'\u003CNewItemType>' = '\u003C2-5 char abbreviation>'\n```\n\n### Check existing creation patterns\n\nDetermine which creation pattern applies.\n\n## Step 3 — Determine the Creation Strategy\n\n### Strategy A: Simple Item (no payload, no definition)\n\nIf the Fabric API can create the item with just `displayName` and `description`, add it to the `$itemTypes` array:\n\n```powershell\n$itemTypes = @('ApacheAirflowJob', ..., '\u003CNewItemType>', ..., 'Warehouse')\n```\n\nThe loop handles creation automatically:\n\n```powershell\nforeach ($itemType in $itemTypes) {\n    $displayNameTemp = \"${displayName}_$($itemNaming[$itemType])\"\n    $item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type $itemType\n    $wellKnown[$itemType] = @{\n        id          = $item.id\n        displayName = $item.displayName\n        description = $item.description\n    }\n}\n```\n\n**Fabric Items currently using this pattern:** ApacheAirflowJob, CopyJob, Dataflow, DataPipeline, DigitalTwinBuilder, Environment, Eventhouse, GraphQLApi, KQLDashboard, KQLQueryset, Lakehouse, Map, MLExperiment, MLModel, Notebook, Reflex, SparkJobDefinition, SQLDatabase, VariableLibrary, Warehouse\n\n### Strategy B: Item with CreationPayload\n\nIf the API requires a `creationPayload` on create, add a dedicated block **after** any dependencies have been created:\n\n```powershell\n# Create \u003CNewItemType> if not exists\n$displayNameTemp = \"${displayName}_$($itemNaming['\u003CNewItemType>'])\"\n$creationPayload = @{\n    \u003CrequiredField> = \u003Cvalue>\n}\n$item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type '\u003CNewItemType>' -CreationPayload $creationPayload\n$wellKnown['\u003CNewItemType>'] = @{\n    id          = $item.id\n    displayName = $item.displayName\n    description = $item.description\n}\n```\n\n**Current examples:**\n\n- **KQLDatabase** — needs `databaseType` and `parentEventhouseItemId` (depends on Eventhouse)\n- **DigitalTwinBuilderFlow** — needs `digitalTwinBuilderItemReference` (depends on DigitalTwinBuilder)\n- **WarehouseSnapshot** — needs `parentWarehouseId` (depends on Warehouse)\n\n### Strategy C: Item with Definition\n\nIf the API requires a `definition` on create (items that are definition-required):\n\n```powershell\n$displayNameTemp = \"${displayName}_$($itemNaming['\u003CNewItemType>'])\"\n$definition = @{\n    parts = @(\n        @{\n            path        = '\u003Cdefinition-path>'\n            payload     = Get-DefinitionPartBase64 -Path 'internal\u002Ftesthelp\u002Ffixtures\u002F\u003Citem_type>\u002F\u003Cfile>.tmpl' -Values @(\n                @{ key = '{{ .PlaceholderVar }}'; value = $actualValue }\n            )\n            payloadType = 'InlineBase64'\n        }\n    )\n}\n$item = Set-FabricItem -DisplayName $displayNameTemp -WorkspaceId $wellKnown['WorkspaceDS'].id -Type '\u003CNewItemType>' -Definition $definition\n$wellKnown['\u003CNewItemType>'] = @{\n    id          = $item.id\n    displayName = $item.displayName\n    description = $item.description\n}\n```\n\n**Current examples:**\n\n- **MirroredDatabase** — needs `mirroring.json` definition\n- **SemanticModel** — needs `definition.pbism` + `model.bim`\n- **Report** — needs `definition.pbir` + `report.json` + static resources (depends on SemanticModel)\n- **Eventstream** — needs `eventstream.json` definition (depends on Lakehouse)\n- **MountedDataFactory** — needs `mountedDataFactory-content.json` (depends on Azure Data Factory)\n\nThis strategy also requires:\n\n1. Create template fixture files in `internal\u002Ftesthelp\u002Ffixtures\u002F\u003Citem_type>\u002F`\n2. Use `Get-DefinitionPartBase64` to Base64-encode the definition content\n\n### Strategy D: Non-Fabric-Item Infrastructure\n\nFor non-Fabric-Item resources that need dedicated setup:\n\n**Azure resources:**\n\n```powershell\n# Create Azure resource\n$resource = Set-Azure\u003CResource> -ResourceGroupName $wellKnown['ResourceGroup'].name -Name $displayNameTemp ...\n$wellKnown['\u003CResourceKey>'] = @{\n    id   = $resource.Id\n    name = $resource.Name\n}\n```\n\n**Fabric connections:**\n\n```powershell\n$connection = Set-FabricConnection -DisplayName $displayNameTemp -ConnectivityType \"\u003Ctype>\"\n$wellKnown['\u003CConnectionKey>'] = @{\n    id          = $connection.id\n    displayName = $connection.displayName\n}\n```\n\n**Role assignments:**\n\n```powershell\nSet-FabricGatewayRoleAssignment -GatewayId $gatewayId -PrincipalId $principalId -PrincipalType 'ServicePrincipal' -Role 'Admin'\n```\n\n**Domains:**\n\n```powershell\n$domain = Set-FabricDomain -DisplayName $displayNameTemp\n$wellKnown['\u003CDomainKey>'] = @{ id = $domain.id; displayName = $domain.displayName }\n```\n\n## Step 4 — Check for Ordering Requirements\n\nWell-known resources are created sequentially. Ensure dependencies are created before dependents:\n\n1. **Azure infrastructure first** — Resource Groups, VNets, Storage Accounts, Data Factories\n2. **Workspaces second** — WorkspaceMPE, WorkspaceOAP, WorkspaceRS, WorkspaceDS\n3. **Simple Fabric Items third** — items in the `$itemTypes` array\n4. **Dependent Fabric Items fourth** — items that reference other items (KQLDatabase→Eventhouse, DigitalTwinBuilderFlow→DigitalTwinBuilder)\n5. **Fabric Items with definitions fifth** — items requiring definition fixtures\n6. **Non-item resources sixth** — Connections, Gateways, Domains, etc.\n7. **Sub-resources last** — Role assignments, shortcuts, folders, schedulers\n\nIf the new resource depends on something not yet created, note it as a prerequisite.\n\n## Step 5 — Produce the Recommendation\n\nOutput a structured recommendation:\n\n### Summary\n\n```\nResource: fabric_\u003Cname>\nCategory: Fabric Item \u002F non-item\nCreation Strategy: A (simple) \u002F B (payload) \u002F C (definition) \u002F D (non-item infra)\n```\n\n### Dependencies Found\n\nList all identified dependencies:\n\n```\n✅ Already exists: \u003Cdependency>\n❌ Missing: \u003Cdependency> — needs to be added\n```\n\n### Required Changes to `Set-WellKnown.ps1`\n\n1. **Switch block** — Add\u002Fconfirm entry\n2. **$itemNaming** — Add abbreviation\n3. **Creation logic** — Add to array or add dedicated block\n4. **$wellKnown output** — Ensure entry is written\n5. **Fixture files** — List any template files needed in `internal\u002Ftesthelp\u002Ffixtures\u002F`\n6. **Azure infra** — List any Azure resources needed\n7. **Ordering** — Where in the script the new code should be placed\n\n### Code Snippets\n\nProvide ready-to-paste PowerShell code for each required change.\n\n## Go Access Pattern (`wellknown.go`)\n\nWell-known data is loaded from `internal\u002Ftesthelp\u002Ffixtures\u002F.wellknown.json` (or the `FABRIC_TESTACC_WELLKNOWN` env var) and accessed in tests via:\n\n```go\nentity := testhelp.WellKnown()[\"Lakehouse\"].(map[string]any)\nentityID := entity[\"id\"].(string)\n```\n\n### Key Workspaces\n\n| Key            | Purpose                               |\n| -------------- | ------------------------------------- |\n| `WorkspaceRS`  | Resource tests (create\u002Fupdate\u002Fdelete) |\n| `WorkspaceDS`  | Data source tests (read-only)         |\n| `WorkspaceMPE` | Managed private endpoint tests        |\n| `WorkspaceOAP` | Outbound access policy tests          |\n\n## Reference\n\n- Well-known setup script: `tools\u002Fscripts\u002FSet-WellKnown.ps1`\n- Well-known Go accessor: `internal\u002Ftesthelp\u002Fwellknown.go`\n- Test fixture directory: `internal\u002Ftesthelp\u002Ffixtures\u002F`\n- Well-known JSON output: `internal\u002Ftesthelp\u002Ffixtures\u002F.wellknown.json`\n",{"name":5,"description":7},"main","4c6f9562b27de9117c921e193706463d60551cbe",".github\u002Fskills\u002Fwellknown-analyzer",35,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric","https:\u002F\u002Fregistry.terraform.io\u002Fproviders\u002Fmicrosoft\u002Ffabric","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-12 19:02:40",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add microsoft\u002Fterraform-provider-fabric --skill wellknown-analyzer",{"tool":73,"command":74},"bunx","bunx skills add microsoft\u002Fterraform-provider-fabric --skill wellknown-analyzer",{"tool":76,"command":77},"pnpm","pnpm dlx skills add microsoft\u002Fterraform-provider-fabric --skill wellknown-analyzer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fwellknown-analyzer\u002FSKILL.md",true,[],[82,113,140,169],{"skillNo":83,"name":84,"nameZh":85,"description":86,"descriptionZh":87,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":96,"publishedAt":52},"01M69BRQPDJYENDVDG88XC8V7N","sdk-contract-navigator","fabric-sdk-go 契约导航","Navigate the fabric-sdk-go SDK source to find the correct client factory, DTOs, item type constants, and pager methods for a given Fabric Item or non-item resource. USE FOR: identifying SDK packages, client factories, DTO structs, item type constants, and pager methods for any Fabric resource.","浏览 fabric-sdk-go SDK 源代码，为给定的 Fabric Item 或非 Item 资源找到正确的客户端工厂、DTOs、Item 类型常量和分页器（pager）方法。用于：识别任意 Fabric 资源对应的 SDK 包、客户端工厂、DTO 结构体、Item 类型常量和分页器方法。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsdk-contract-navigator\u002FSKILL.md",[90,93],{"categoryNo":91,"categoryName":92,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":94,"categoryName":95,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[97,98,99,100,43,101,102,103,104,105,35,106,107,108,33,109,110,111,112],"sdk","sdk contract navigator","navigator","contract","factory","constants","dto","navigate","source","client","type","methods","find","correct","fabric","packages",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":125,"publishedAt":52},"01M69BRNV6ARREM1SJFF71DR6E","schema-model-generator","Terraform Schema 与模型生成","Given a Go SDK contract (DTOs), generate the corresponding Terraform schema attributes and model structs with high fidelity. USE FOR: creating schema_*.go and models.go files from SDK DTOs, mapping Go types to Terraform attribute types and custom types.","给定 Go SDK 契约（DTOs），高保真地生成对应的 Terraform schema 属性和模型结构体。用于：从 SDK DTOs 创建 schema_*.go 和 models.go 文件，将 Go 类型映射为 Terraform 属性类型和自定义类型。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fschema-model-generator\u002FSKILL.md",[121,122],{"categoryNo":94,"categoryName":95,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QVANT4709358VEJK53E","代码实现",[126,127,128,129,33,130,131,132,133,100,134,97,135,43,136,137,138,35,139],"schema","generator","model","schema model generator","terraform","files","models","generate","mapping","types","with","attributes","custom","high",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":152,"publishedAt":52},"01M69BRK8X2MS2KA89Q0TY2BRZ","resource-designer","Terraform 资源设计","Research SDK contracts, design Terraform schema approach, and compose a GitHub issue for a new resource, data source, ephemeral resource, or enhancement to an existing resource. USE FOR: analyzing SDK DTOs, determining design patterns (polymorphic flattening, immutability, enum filtering), and creating well-structured GitHub issues. INVOKES: GitHub MCP tools for issue creation, sdk-contract-navigator skill for SDK analysis.","研究 SDK 契约、设计 Terraform schema 方案，并为新资源、数据源、临时资源或现有资源的增强编写 GitHub issue。用于分析 SDK DTO、确定设计模式（多态扁平化、不可变性、枚举过滤）以及创建结构良好的 GitHub issue。调用：用于创建 issue 的 GitHub MCP 工具、用于 SDK 分析的 sdk-contract-navigator 技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fresource-designer\u002FSKILL.md",[148,149],{"categoryNo":94,"categoryName":95,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BT7QTSZKB08EAW9P9ZCDNQ","设计评审与架构优化",[153,154,34,105,155,156,157,158,39,159,160,161,162,163,45,164,47,99,165,130,166,167,97,168],"resource designer","designer","design","MCP","data","issue creation","patterns","contracts","issue","design patterns","analysis","enhancement","issues","github issues","research","github",{"skillNo":170,"name":171,"nameZh":172,"description":173,"descriptionZh":174,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":179,"publishedAt":52},"01M69BRGHQT06DYTRQDP9H1N39","itemgen-command-builder","Fabric Item 代码生成命令构建","Given SDK analysis results, automatically determine the correct itemgen archetype and build the full go run tools\u002Fitemgen\u002Fmain.go command. USE FOR: scaffolding new Fabric Item resources using the itemgen code generator. Only applies to Fabric Item resources (not bespoke resources like Connection, Gateway, Workspace).","根据 SDK 分析结果，自动确定正确的 itemgen 原型并构建完整的 go run tools\u002Fitemgen\u002Fmain.go 命令。用于使用 itemgen 代码生成器搭建新的 Fabric Item 资源。仅适用于 Fabric Item 资源（不适用于 Connection、Gateway、Workspace 等定制资源）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fterraform-provider-fabric\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fitemgen-command-builder\u002FSKILL.md",[177,178],{"categoryNo":94,"categoryName":95,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},[180,181,182,33,34,35,127,36,183,57,184,185,186,187,110,163,188,49,111,189,97,43],"builder","command","itemgen command builder","scaffolding","build","only","results","workspace","gateway","run"]