Bagikan melalui


New-AzNetworkManagerConnectivityGroupItem

Membuat item grup konektivitas.

Sintaks

New-AzNetworkManagerConnectivityGroupItem
   -NetworkGroupId <String>
   [-UseHubGateway]
   [-GroupConnectivity <String>]
   [-IsGlobal]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Deskripsi

Cmdlet New-AzNetworkManagerConnectivityGroupItem membuat item grup konektivitas.

Contoh

Contoh 1

$networkGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/TestGroup"
New-AzNetworkManagerConnectivityGroupItem -NetworkGroupId $networkGroupId -UseHubGateway -GroupConnectivity "None" -IsGlobal

NetworkGroupId                                                                                                                                           UseHubGateway IsGlobal GroupConnectivity
--------------                                                                                                                                           ------------- -------- -----------------
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/TestGroup True          True     None

Membuat item grup konektivitas menggunakan hub sebagai gateway.

Contoh 2

$networkGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/TestGroup"
New-AzNetworkManagerConnectivityGroupItem -NetworkGroupId $networkGroupId -GroupConnectivity "DirectlyConnected"

NetworkGroupId                                                                                                                                           UseHubGateway IsGlobal GroupConnectivity
--------------                                                                                                                                           ------------- -------- -----------------
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/networkGroups/TestGroup False         False    DirectlyConnected

Membuat item grup konektivitas dengan konektivitas langsung.

Parameter

-DefaultProfile

Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.

Jenis:IAzureContextContainer
Alias:AzContext, AzureRmContext, AzureCredential
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:False
Terima karakter wildcard:False

-GroupConnectivity

Konektivitas Grup.

Jenis:String
Nilai yang diterima:None, DirectlyConnected
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:True
Terima karakter wildcard:False

-IsGlobal

Bendera IsGlobal

Jenis:SwitchParameter
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:True
Terima karakter wildcard:False

-NetworkGroupId

Id Grup Jaringan

Jenis:String
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-UseHubGateway

Menggunakan bendera gateway hub

Jenis:SwitchParameter
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:True
Terima karakter wildcard:False

Input

String

SwitchParameter

Output

PSNetworkManagerConnectivityGroupItem