小编Fré*_*uze的帖子

天蓝色搜索.如果我有很多方面怎么办?

在商业应用中,拥有数百个方面并不是一成不变的.当然,并非所有产品都带有所有产品.

但是在搜索时我需要添加一个facet querystring参数,列出我想要回来的所有方面.由于我不知道相关的列表,我必须在查询中传递所有这些.这不实用我们不仅仅是几个方面.

有没有办法解决这个问题,还是产品的限制?

Azure搜索文档:

https://msdn.microsoft.com/fr-fr/library/azure/dn798927.aspx

azure azure-cognitive-search

6
推荐指数
1
解决办法
1994
查看次数

即使我之前运行过,也会收到“必须调用 Connect-AzureAD”

我的问题

我尝试运行与应用程序注册连接的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已运行,因此我不明白此错误消息。

我的执行上下文

我刚刚创建了一个应用程序注册和一个要连接的秘密。

我需要的

  • 为什么我在运行Connect-AzureD后收到此消息?
  • 我应该怎么办?

谢谢

powershell azure-active-directory

1
推荐指数
1
解决办法
9173
查看次数

在 Azure DevOps 管道中:推送标签有效,但推送无效

我不明白有关 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)

git azure-devops azure-pipelines

1
推荐指数
1
解决办法
1824
查看次数