次の方法で共有


Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity

PSGalleryInVmAccessControlProfileVersion オブジェクトからルール ID を削除します。

構文

Default (既定)

Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity

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

説明

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

例 1

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

Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA" -UserName "SYSTEM" -GroupName "Administrators" -ExePath "C:\Windows\System32\cscript.exe" -ProcessName "cscript"
Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA2" -UserName "SYSTEM" -GroupName "Administrators" -ExePath "C:\Windows\System32\cscript.exe" -ProcessName "cscript"

Remove-AzGalleryInVMAccessControlProfileVersionRulesIdentity -GalleryInVmAccessControlProfileVersion $inVMAccessControlProfileVersion -IdentityName "WinPA2"

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

パラメーター

-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

-IdentityName

ID の名前。

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

型: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