New-AzServiceBusVirtualNetworkRuleConfig
建構可做為輸入的 INwRuleSetIPRules 物件,以 Set-AzServiceBusNetworkRuleSet
語法
New-AzServiceBusVirtualNetworkRuleConfig
-SubnetId <String>
[-IgnoreMissingVnetServiceEndpoint]
[<CommonParameters>]
Description
建構可做為輸入的 INwRuleSetIPRules 物件,以 Set-AzServiceBusNetworkRuleSet
範例
範例 1:建構 INwRuleSetVirtualNetworkRules 物件
New-AzServiceBusVirtualNetworkRuleConfig -SubnetId /subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default
IgnoreMissingVnetServiceEndpoint SubnetId
-------------------------------- --------
/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/default
如需詳細資訊,請參閱 Set-AzServiceBusNetworkRuleSet 範例。
參數
-IgnoreMissingVnetServiceEndpoint
虛擬網路子網的資源標識碼
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-SubnetId
虛擬網路子網的資源標識碼
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |