Set-AzSearchPrivateEndpointConnection
Perbarui koneksi titik akhir privat ke Azure Cognitive layanan Pencarian.
Sintaks
Set-AzSearchPrivateEndpointConnection
[-ResourceGroupName] <String>
[-ServiceName] <String>
[-Name] <String>
-Status <PSPrivateLinkServiceConnectionStatus>
[-Description <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzSearchPrivateEndpointConnection
[-ParentObject] <PSSearchService>
[-Name] <String>
-Status <PSPrivateLinkServiceConnectionStatus>
[-Description <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzSearchPrivateEndpointConnection
[-ResourceId] <String>
-Status <PSPrivateLinkServiceConnectionStatus>
[-Description <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzSearchPrivateEndpointConnection
-Status <PSPrivateLinkServiceConnectionStatus>
[-Description <String>]
[-InputObject] <PSPrivateEndpointConnection>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Set-AzSearchPrivateEndpointConnection memperbarui koneksi titik akhir privat ke azure Cognitive layanan Pencarian.
Contoh
Contoh 1
Set-AzSearchPrivateEndpointConnection -ResourceGroupName arjagann -ServiceName arjagann-test-cuseuap -Name arjagann-test-cuseuap-pe.4c74dd7c-7016-42ac-827a-8d5d1378f266 -Status Rejected -Description "Rejected" | ConvertTo-Json
{
"Name": "arjagann-test-cuseuap-pe.4c74dd7c-7016-42ac-827a-8d5d1378f266",
"Id": "/subscriptions/a4337210-c6b0-4de4-907a-688f1c120d9a/resourceGroups/arjagann/providers/Microsoft.Search/searchServices/arjagann-test-cuseuap/privateEndpointConnections/arjagann-test-cuseuap-pe.4c74dd7c-7016-42ac-827a-8d5d1378f266",
"PrivateEndpoint": {
"Id": "/subscriptions/a4337210-c6b0-4de4-907a-688f1c120d9a/resourceGroups/arjagann2/providers/Microsoft.Network/privateEndpoints/arjagann-test-cuseuap-pe"
},
"PrivateLinkServiceConnectionState": {
"Status": 2,
"Description": "Rejected",
"ActionsRequired": "None"
}
}
Contoh ini memperbarui status koneksi titik akhir privat dari layanan Pencarian Azure Cognitive menjadi "Ditolak".
Parameter
-Confirm
Meminta Anda mengonfirmasi sebelum menjalankan cmdlet.
Jenis: | SwitchParameter |
Alias: | cf |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-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 |
-Description
Deskripsi koneksi titik akhir privat
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-InputObject
Objek input koneksi titik akhir privat
Jenis: | PSPrivateEndpointConnection |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-Name
Nama koneksi titik akhir privat Azure Cognitive Search Service
Jenis: | String |
Position: | 2 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ParentObject
Objek Input Azure Cognitive Search Service.
Jenis: | PSSearchService |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-ResourceGroupName
Nama Grup Sumber Daya.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceId
Id sumber daya layanan private link
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-ServiceName
Nama Azure Cognitive Search Service.
Jenis: | String |
Position: | 1 |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Status
Status koneksi layanan private link
Jenis: | PSPrivateLinkServiceConnectionStatus |
Nilai yang diterima: | Pending, Approved, Rejected, Disconnected |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-WhatIf
Menunjukkan apa yang akan terjadi jika cmdlet berjalan. Cmdlet tidak dijalankan.
Jenis: | SwitchParameter |
Alias: | wi |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Input
Output
Link Terkait
Azure PowerShell