次の方法で共有


New-AzManagedServicesAuthorizationObject

Authorization のメモリ内オブジェクトを作成します。

構文

Default (既定)

New-AzManagedServicesAuthorizationObject
    -PrincipalId <String>
    -RoleDefinitionId <String>
    [-DelegatedRoleDefinitionId <String[]>]
    [-PrincipalIdDisplayName <String>]
    [<CommonParameters>]

説明

Authorization のメモリ内オブジェクトを作成します。

例 1: 登録定義で使用する新しい Azure Lighthouse Authorization オブジェクトを作成する

New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user"
DelegatedRoleDefinitionId PrincipalId                          PrincipalIdDisplayName RoleDefinitionId
------------------------- -----------                          ---------------------- ----------------
                          xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Test user              xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

登録定義で使用する新しい Azure Lighthouse 承認オブジェクトを作成します。

例 2: delegatedRoleDefinitionIds を使用して新しい Azure Lighthouse Authorization オブジェクトを作成する

New-AzManagedServicesAuthorizationObject -PrincipalId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -RoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -PrincipalIdDisplayName "Test user" -DelegatedRoleDefinitionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
DelegatedRoleDefinitionId                                                    PrincipalId                          PrincipalIdDisplayName RoleDefinitionId
-------------------------                                                    -----------                          ---------------------- ----------------
{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Test user              xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

delegatedRoleDefinitionIds を使用して新しい Azure Lighthouse 承認オブジェクトを作成します。

パラメーター

-DelegatedRoleDefinitionId

roleDefinitionId がユーザー アクセス管理者ロールを参照する場合は、delegatedRoleDefinitionIds フィールドが必要です。 これは、承認のユーザーが他のプリンシパルに割り当てることができるすべてのアクセス許可を定義するロール定義 ID の一覧です。

パラメーターのプロパティ

型:

String[]

規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-PrincipalId

Azure Active Directory プリンシパルの識別子。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-PrincipalIdDisplayName

Azure Active Directory プリンシパルの表示名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-RoleDefinitionId

Azure Active Directory プリンシパルが投影スコープに対して持つアクセス許可を定義する Azure 組み込みロールの識別子。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

出力

Authorization