使用 AZ Powershell 模块注册本机应用程序 [英] Native App Registration with AZ Powershell Module

查看:73
本文介绍了使用 AZ Powershell 模块注册本机应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用 AZ Powershell 6 模块在 Azure Active Directory 上注册本机应用程序.可以使用 AzureAD 模块中的命令 New-AzureADApplication 将PublicClient"字段的值设置为 true 来注册本机应用程序,但 powershell 6 不支持 AzureAD 模块.

I need to register a native app on Azure Active Directory using the AZ Powershell 6 Module. A native app can be registered with the command New-AzureADApplication in the AzureAD module setting the value of the field "PublicClient" to true, but the module AzureAD is not supported for powershell 6.

在 powershell 6 中,对应的命令似乎是 New-AzADApplication,它允许注册 Web 应用程序/API,但不允许注册本机应用程序.

In powershell 6 it seems that the corresponding command is New-AzADApplication, which allows to register a Web app / API but not a native app.

那么如何在 powershell 6 中使用模块 AZ 注册本机应用程序?

So how is it possible to register a native app with the module AZ in powershell 6?

谢谢.

推荐答案

似乎不支持直接使用 Az 创建原生应用.Azure 已发布名为 AzureAD.Standard.Preview 支持 Powershell Core 6,该模块提供与 AzureAD 相同的功能.您可以像使用 AzureAD 一样使用它来创建本机应用程序.

It seems not to support to use Az to create a native app directly. Azure has released a preview version of AzureAD module named AzureAD.Standard.Preview which supports Powershell Core 6, this module provides the same functionality as AzureAD. You could use it like the AzureAD to create the native app.

PowerShell 库:https://www.poshtestgallery.com/包/AzureAD.Standard.Preview/0.1.599.7

PowerShell Gallery: https://www.poshtestgallery.com/packages/AzureAD.Standard.Preview/0.1.599.7

Install-Module -Name AzureAD.Standard.Preview

更多详情,请参见:支持 PowerShell Core 的 Azure AD PowerShell 模块.

这篇关于使用 AZ Powershell 模块注册本机应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆