Märkus.
Juurdepääs sellele lehele nõuab autoriseerimist. Võite proovida sisse logida või kausta vahetada.
Juurdepääs sellele lehele nõuab autoriseerimist. Võite proovida kausta vahetada.
Järgnevad näidispäringud töötavad PowerPlatformResources tabelis Azure Resource Graph. Need hõlmavad ressursside loendamist ja jaotust, välide avastamist, ressursside otsinguid ning ühenduste kasutuse analüüsi. Power Platformi inventari ülevaate saamiseks vaata Power Platformi inventuur. Skeemi ja väliviite kohta vaata Power Platformi inventari skeemi viidet.
Kuidas neid päringuid käivitada
Kõiki neid päringuid saab käivitada Azure Resource Graph liidestest. Samm-sammult juhiste jaoks vaata järgmisi kiirkäivituse juhendeid:
- Resource Graphi päringu käivitamine Azure portaali abil
- Resource Graphi päringu käivitamine Azure CLI abil
- Resource Graphi päringu käivitamine Azure PowerShell abil
- käivitage Azure Resource Graph päring REST API abil
Loendused ja jaotus
Kõigi ressursside koguarv
PowerPlatformResources
| count
Koguarvud ressursitüübi järgi
PowerPlatformResources
| summarize resourceCount = count() by type
| order by resourceCount
Loendused keskkonna järgi
PowerPlatformResources
| extend properties = parse_json(properties)
| extend environmentId = tostring(properties.environmentId)
| summarize resourceCount = count() by environmentId
| order by resourceCount desc
Loendused piirkondade kaupa
PowerPlatformResources
| summarize resourceCount = count() by location
| order by resourceCount desc
Parimad omanikud esemete arvu järgi
PowerPlatformResources
| extend properties = parse_json(properties)
| extend ownerId = tostring(properties.ownerId)
| summarize resourceCount = count() by ownerId
| order by resourceCount desc
Ressursside otsingud
Leia üürnikust üks maakler
PowerPlatformResources
| where type == "microsoft.copilotstudio/agents"
| where name == "[Enter the agent's ID]"
Näpunäide
Agendi ID leiab Copilot Studio URL-ist, kui agenti vaatad, või inventaritabeli nime veerust.
Loenda agendid rakmete kaupa
Kuvab Microsoft Copilot rakmed, Copilot Chat rakmed või Standardrakmed loodud agentide jaotuse.
Agendi rakmed kuvatakse Power Platformi halduskeskuse veerus Harness jaotises Halda>Copilot Studio. See veerg on ainult kasutajaliidese veerg. Kuna rakmed pole veel agendi metaandmetena tagastatud, tuletab see päring selle väljadelt, mille tagastab inventar: properties.isCLIAgent, properties.model, ja properties.createdIn.
properties.harness Kui väli on saadaval, saate selle asemel otse päringu esitada. Väljamääratluste kohta leiate teavet teemast Microsoft Copilot Studio Agendi varude skeem.
PowerPlatformResources
| where type == "microsoft.copilotstudio/agents"
| extend properties = parse_json(properties)
| extend
isCLIAgent = tobool(properties.isCLIAgent),
model = tostring(properties.model),
createdIn = tostring(properties.createdIn)
| extend harness = case(
isCLIAgent == true, "GitHub Copilot",
model =~ "Microsoft 365 Copilot" or createdIn =~ "Microsoft 365 Copilot Agent Builder", "Copilot Chat",
"Standard")
| summarize agentCount = count() by harness
| order by agentCount desc
Loetlege agendid nende rakmetega
Tagastab iga agendi kohta ühe rea koos rakmetega, et saaksite otsida ja tegutseda üksikute agentide järgi, mitte ainult loendada. Vabastage where joon, et tagastada ainult Microsoft Copilot ehitatud agendid.
PowerPlatformResources
| where type == "microsoft.copilotstudio/agents"
| extend properties = parse_json(properties)
| extend
isCLIAgent = tobool(properties.isCLIAgent),
model = tostring(properties.model),
createdIn = tostring(properties.createdIn)
| extend harness = case(
isCLIAgent == true, "GitHub Copilot",
model =~ "Microsoft 365 Copilot" or createdIn =~ "Microsoft 365 Copilot Agent Builder", "Copilot Chat",
"Standard")
//| where harness == "GitHub Copilot"
| project agentName = tostring(properties.displayName),
agentId = name,
harness,
environmentId = tostring(properties.environmentId),
ownerId = tostring(properties.ownerId),
createdAt = todatetime(properties.createdAt)
| order by harness asc, createdAt desc
Viimase 24 tunni jooksul loodud esemed
PowerPlatformResources
| extend properties = parse_json(properties)
| extend createdAt = todatetime(properties.createdAt)
| where createdAt >= ago(24h)
Power Pages päringud (eelvaade)
Power Pages päringud kasutavad ressursitüüpimicrosoft.powerpages/sites. Power Pages inventuur on saadaval ainult üldadministraatoritele, Power Platformi administraatoritele ja Dynamics 365 administraatoritele.
Loendi Power Pages saidid
See päring tagastab rentnikuülese Power Pages saitide inventuuri oma keskkonna, omaniku ning loomis- ja muutmiskuupäevadega.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| project siteName = tostring(properties.displayName),
siteId = name,
environmentId = tostring(properties.environmentId),
ownerId = tostring(properties.ownerId),
createdOn = todatetime(properties.createdAt),
lastModifiedOn = todatetime(properties.lastModifiedAt)
| order by siteName asc
Power Pages saitide loendamine keskkonna järgi
See päring näitab, millised keskkonnad sisaldavad kõige Power Pages saite.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| extend environmentId = tostring(properties.environmentId)
| summarize siteCount = count() by environmentId
| order by siteCount desc
Saitide Power Pages loendamine omaniku järgi
Selles päringus kuvatakse omanikud, kes on seostatud suurima arvu Power Pages saitidega, et toetada omandiõiguse läbivaatamist ja järjepidevuse planeerimist.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| extend ownerId = tostring(properties.ownerId)
| summarize siteCount = count() by ownerId
| order by siteCount desc
anonüümse juurdepääsuga saitide Power Pages
See päring leiab saidid, mille inventuuri metaandmed näitavad, et anonüümne juurdepääs on lubatud.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| extend anonymousAccessEnabled = tobool(properties.anonymousAccessAllowed)
| where anonymousAccessEnabled == true
| project siteName = tostring(properties.displayName),
siteId = name,
environmentId = tostring(properties.environmentId),
websiteUrl = tostring(properties.siteUrl)
| order by siteName asc
Hiljuti loodud Power Pages saidid
See päring tagastab viimase 30 päeva jooksul loodud saidid. Reguleerige intervalli vastavalt vajadusele.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| extend createdOn = todatetime(properties.createdAt)
| where createdOn >= ago(30d)
| project siteName = tostring(properties.displayName),
siteId = name,
environmentId = tostring(properties.environmentId),
ownerId = tostring(properties.ownerId),
createdOn
| order by createdOn desc
Kohandatud domeene kasutavate saitide Power Pages
See päring tagastab saidid, mille varude metaandmed sisaldavad kohandatud saidi URL-i.
PowerPlatformResources
| where type =~ "microsoft.powerpages/sites"
| extend properties = parse_json(properties)
| extend customDomain = tostring(properties.customSiteUrl)
| where isnotempty(customDomain)
| project siteName = tostring(properties.displayName),
siteId = name,
environmentId = tostring(properties.environmentId),
websiteUrl = tostring(properties.siteUrl),
customDomain
| order by siteName asc
Power Pages muude Power Platformi ressurssidega
See päring summeerib ressursiarvestusi tüübi ja keskkonna järgi kogu Power Platformis, sh Power Pages saitidel. Keskkonna ID-ta kirjed jäetakse välja.
PowerPlatformResources
| extend properties = parse_json(properties)
| extend environmentId = tostring(properties.environmentId)
| where isnotempty(environmentId)
| summarize resourceCount = count() by environmentId, type
| order by environmentId asc, resourceCount desc
Konnektoripäringud
Järgmised päringud analüüsivad konnektori kasutust kõigis konnektori varudega hõlmatud ressursitüüpides. Iga päring töötab properties.powerPlatformConnectors lõuendirakendustest, mudelipõhistest rakendustest, Copilot hallatavasse käitusajasse sisseehitatud rakenduste, pilvevoogude, agendivoogude, töövooagendi voogude, Copilot Studio agentide poolt standardrakmetes või Microsoft Copilot rakmetes, ja Microsoft 365 Copilot Agent Builderis loodud agendid. Copilot hallatud käitusaja sisseehitatud rakendused kasutavad microsoft.powerapps/apps seda tüüpi koos alamtüübigamicrosoftApp. Päringud ei hõlma rakendusekoosturi rakendusi, mis kasutavad sama tüüpi, kuid ei eralda konnektori andmeid.
Power Platformi ressursside vahel kasutatavad tippühendused
Loetleb ühendused, mida kasutavad kõige eristuvamad ressursid. Kasulik selleks, et mõista, millised ühendused domineerivad kasutuselevõttu kogu üürniku ulatuses.
PowerPlatformResources
| where type in (
"microsoft.powerapps/canvasapps",
"microsoft.powerapps/modeldrivenapps",
"microsoft.powerapps/apps",
"microsoft.powerautomate/cloudflows",
"microsoft.powerautomate/agentflows",
"microsoft.powerautomate/m365agentflows",
"microsoft.copilotstudio/agents")
| extend properties = parse_json(properties)
| where type != "microsoft.powerapps/apps" or tostring(properties.subType) == "microsoftApp"
| mv-expand connector = properties.powerPlatformConnectors
| extend connectorId = tostring(connector.connectorId)
| where isnotempty(connectorId)
| summarize ResourceCount = dcount(name) by connectorId
| order by ResourceCount desc
| take 10
Ühenduste arvu jaotus ressursi kohta
Näitab, kui paljud ressursid kasutavad 0, 1, 2 või rohkem ühendusi. Kasulik keerukuse erandite tuvastamiseks.
PowerPlatformResources
| where type in (
"microsoft.powerapps/canvasapps",
"microsoft.powerapps/modeldrivenapps",
"microsoft.powerapps/apps",
"microsoft.powerautomate/cloudflows",
"microsoft.powerautomate/agentflows",
"microsoft.powerautomate/m365agentflows",
"microsoft.copilotstudio/agents")
| extend properties = parse_json(properties)
| where type != "microsoft.powerapps/apps" or tostring(properties.subType) == "microsoftApp"
| extend connectorCount = array_length(properties.powerPlatformConnectors)
| summarize ResourceCount = count() by toint(connectorCount)
| order by connectorCount asc
Leia kõik ressursid, mis kasutavad kindlat pistikut
Vaheta shared_sharepointonline see pistiku vastu, mida soovid otsida. See päring on kasulik mõjuanalüüsiks, kui ühendusel on teadaolev probleem, see on aegunud või vajab uut litsentsi.
PowerPlatformResources
| where type in (
"microsoft.powerapps/canvasapps",
"microsoft.powerapps/modeldrivenapps",
"microsoft.powerapps/apps",
"microsoft.powerautomate/cloudflows",
"microsoft.powerautomate/agentflows",
"microsoft.powerautomate/m365agentflows",
"microsoft.copilotstudio/agents")
| extend properties = parse_json(properties)
| where type != "microsoft.powerapps/apps" or tostring(properties.subType) == "microsoftApp"
| mv-expand connector = properties.powerPlatformConnectors
| where tostring(connector.connectorId) == "shared_sharepointonline"
| project resourceName = tostring(properties.displayName),
resourceId = name,
resourceType = type,
environmentId = tostring(properties.environmentId),
operationsUsed = connector.operations
Pistiku kasutus keskkonna kaupa
Loetleb kõik ühendused, mida kasutatakse igas keskkonnas, koos erinevate ressursside arvuga, kes seda kasutavad. See nimekiri on kasulik kasutuselevõtu mustrite mõistmiseks ja DLP poliitikaotsuste kujundamiseks.
PowerPlatformResources
| where type in (
"microsoft.powerapps/canvasapps",
"microsoft.powerapps/modeldrivenapps",
"microsoft.powerapps/apps",
"microsoft.powerautomate/cloudflows",
"microsoft.powerautomate/agentflows",
"microsoft.powerautomate/m365agentflows",
"microsoft.copilotstudio/agents")
| extend properties = parse_json(properties)
| where type != "microsoft.powerapps/apps" or tostring(properties.subType) == "microsoftApp"
| mv-expand connector = properties.powerPlatformConnectors
| extend connectorId = tostring(connector.connectorId)
| where isnotempty(connectorId)
| extend environmentId = tostring(properties.environmentId)
| summarize ResourceCount = dcount(name) by environmentId, connectorId
| order by environmentId asc, ResourceCount desc