次の方法で共有


Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

PSGalleryInVmAccessControlProfileVersion オブジェクトから Rules 権限を削除します。

構文

Default (既定)

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege

    -GalleryInVmAccessControlProfileVersion <PSGalleryInVMAccessControlProfileVersion>
    -PrivilegeName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege コマンドレットは、指定された PSGalleryInVmAccessControlProfileVersion オブジェクトから、権限名に基づいて Rules Privilege を削除します。

例 1

$inVMAccessControlProfileVersion  = New-AzGalleryInVMAccessControlProfileVersionConfig -Name "myProfileVersion" -Location "West US 2" -Mode "Audit" -DefaultAccess "Deny" -TargetLocation @("West US 2")

Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState" -Path "/machine" -QueryParameter @{ comp = "goalstate" }
Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState2" -Path "/machine" -QueryParameter @{ comp = "goalstate" }

Remove-AzGalleryInVMAccessControlProfileVersionRulesPrivilege -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -PrivilegeName "GoalState2"

ローカル PSGalleryInVMAccessControlProfileVersion オブジェクトを作成し、2 つのルール特権を追加してから、"GoalState2" という名前の特権を削除します。

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

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

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

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

-GalleryInVmAccessControlProfileVersion

New-AzGalleryInVMAccessControlProfileVersionConfig から作成された PSGalleryInVmAccessControlProfileVersion オブジェクト。

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

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

パラメーター セット

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

-PrivilegeName

権限の名前。

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

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

パラメーター セット

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

CommonParameters

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

入力

PSGalleryInVMAccessControlProfileVersion

String

出力

PSGalleryInVMAccessControlProfileVersion