New-AzPrivateLinkServiceConnection
Membuat konfigurasi koneksi layanan tautan privat.
Sintaks
New-AzPrivateLinkServiceConnection
-Name <String>
-PrivateLinkService <PSPrivateLinkService>
[-GroupId <String[]>]
[-RequestMessage <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzPrivateLinkServiceConnection
-Name <String>
-PrivateLinkServiceId <String>
[-GroupId <String[]>]
[-RequestMessage <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet New-AzPrivateLinkServiceConnection membuat konfigurasi koneksi layanan tautan privat.
Contoh
Contoh 1
New-AzPrivateLinkServiceConnection -Name MyPLSConnection -PrivateLinkServiceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/privateLinkServices/privateLinkService" -RequestMessage "Please Approve my request"
Contoh ini membuat objek koneksi layanan tautan privat dalam memori untuk digunakan dalam membuat titik akhir privat.
Contoh 2
Membuat konfigurasi koneksi layanan tautan privat. (dibuat otomatis)
New-AzPrivateLinkServiceConnection -GroupId <String[]> -Name 'MyPLSConnections' -PrivateLinkServiceId '/subscriptions/00000000-0000-0000-0000-00000000000000000/resourceGroups/TestResourceGroup/providers/Microsoft.Network/privateLinkServices/privateLinkService'
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 |
-GroupId
Daftar id grup. Anda dapat menggunakan '(Get-AzPrivateLinkResource -PrivateLinkResourceId ${privateLinkResourceId}). GroupId' untuk mendapatkan id grup yang didukung.
Jenis: | String[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Name
Nama layanan tautan privat.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-PrivateLinkService
Layanan tautan privat.
Jenis: | PSPrivateLinkService |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-PrivateLinkServiceId
Id layanan tautan privat.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-RequestMessage
Pesan permintaan.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
None
Output
PSPrivateLinkServiceConnection
Link Terkait
Azure PowerShell