在商业应用中,拥有数百个方面并不是一成不变的.当然,并非所有产品都带有所有产品.
但是在搜索时我需要添加一个facet querystring参数,列出我想要回来的所有方面.由于我不知道相关的列表,我必须在查询中传递所有这些.这不实用我们不仅仅是几个方面.
有没有办法解决这个问题,还是产品的限制?
Azure搜索文档:
https://msdn.microsoft.com/fr-fr/library/azure/dn798927.aspx
我的问题
我尝试运行与应用程序注册连接的Get-AzureADGroup ,但收到以下错误消息:
Get-AzureADGroup :您必须先调用 Connect-AzureAD cmdlet,然后再调用任何其他 cmdlet。
但我正在运行的是:
$secPasswd = ConvertTo-SecureString $secret -AsPlainText -Force
$cred = New-Object -TypeName System.Management.Automation.PSCredential($appId , $secpasswd)
Connect-AzAccount -Credential $cred -ServicePrincipal -Tenant $tenantId
$gpe = Get-AzureADGroup -SearchString "group1"
Run Code Online (Sandbox Code Playgroud)
Connect-AzAccount已运行,因此我不明白此错误消息。
我的执行上下文
我刚刚创建了一个应用程序注册和一个要连接的秘密。
我需要的
谢谢
我不明白有关 Git 身份验证如何在 Azure Devops Yaml 管道中工作的一点。
我做什么
我运行这个管道:
resources: repositories:
- repository: TutoDeployin Tuto-DeployBuild repository
ref: main
type: git
name: Tuto-Deploy
jobs:
- job: Build
steps:
- checkout: self
clean: true
persistCredentials: true
- checkout: TutoDeploy
clean: true
persistCredentials: true
- task: Powershell@2
inputs:
pwsh: true
filePath: '.\tuto-deploybuild\CI\build.ps1'
arguments: "-repositoryName tuto-deploy"
Run Code Online (Sandbox Code Playgroud)
它本质上运行位于 Tuto-Deploy 中的 PowerShell 脚本:
Param(
$repositoryName
)
cd "$($env:Build_SourcesDirectory)/$repositoryName"
$version = @{
numero = 0
date = Get-Date
}
$path = "$env:Build_SourcesDirectory" + "/$repositoryName/version"
$versionFile = "$path/version.json" …Run Code Online (Sandbox Code Playgroud)