Remove-AzServiceEndpointPolicy
拿掉服務端點原則。
PowerShell
Remove-AzServiceEndpointPolicy
-Name <String>
-ResourceGroupName <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
PowerShell
Remove-AzServiceEndpointPolicy
-ResourceId <String>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
PowerShell
Remove-AzServiceEndpointPolicy
-InputObject <PSServiceEndpointPolicy>
[-Force]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzServiceEndpointPolicy Cmdlet 會移除服務端點原則。
PowerShell
Remove-AzServiceEndpointPolicy -Name "Policy1" -ResourceGroupName "resourcegroup1"
此命令會移除名稱為 Policy1 的服務端點原則,此原則屬於名稱為 「resourcegroup1」 的資源群組
PowerShell
Remove-AzServiceEndpointPolicy -InputObject $Policy1
此命令會移除服務端點原則物件 Policy1,此對象屬於名稱為 “resourcegroup1” 的資源群組
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
如果您想要覆寫資源,請勿要求確認
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
服務端點原則物件。
類型: | PSServiceEndpointPolicy |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
服務端點原則的名稱
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
會傳回 物件,代表您正在使用的專案。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
資源組名。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
服務端點原則的標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |