New-AzDataCollectionEndpoint
Membuat titik akhir kumpulan data.
Sintaks
New-AzDataCollectionEndpoint
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-Location <String>
[-Description <String>]
[-IdentityType <String>]
[-ImmutableId <String>]
[-Kind <String>]
[-NetworkAclsPublicNetworkAccess <String>]
[-Tag <Hashtable>]
[-UserAssignedIdentity <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzDataCollectionEndpoint
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzDataCollectionEndpoint
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Membuat titik akhir kumpulan data.
Contoh
Contoh 1: Membuat titik akhir
New-AzDataCollectionEndpoint -Name myCollectionEndpoint -ResourceGroupName AMCS-TEST -Location eastus -NetworkAclsPublicNetworkAccess Enabled
ConfigurationAccessEndpoint : https://mycollectionendpoint-bthd.eastus-1.handler.control.monitor.azure.com
Description :
Etag : "b9029ae7-0000-0100-0000-65016d2a0000"
FailoverConfigurationActiveLocation :
FailoverConfigurationLocation :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint
IdentityPrincipalId :
IdentityTenantId :
IdentityType :
IdentityUserAssignedIdentity : {
}
ImmutableId : dce-014e59a439e04f44af4b97b16b7614df
Kind :
Location : eastus
LogIngestionEndpoint : https://mycollectionendpoint-bthd.eastus-1.ingest.monitor.azure.com
MetadataProvisionedBy :
MetadataProvisionedByResourceId :
MetricIngestionEndpoint : https://mycollectionendpoint-bthd.eastus-1.metrics.ingest.monitor.azure.com
Name : myCollectionEndpoint
NetworkAclsPublicNetworkAccess : Enabled
PrivateLinkScopedResource :
ProvisioningState : Succeeded
ResourceGroupName : AMCS-TEST
SystemDataCreatedAt : 9/13/2023 8:04:55 AM
SystemDataCreatedBy : v-jiaji@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 9/13/2023 8:04:55 AM
SystemDataLastModifiedBy : v-jiaji@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : Microsoft.Insights/dataCollectionEndpoints
Perintah ini membuat endpiont dengan nilai tertentu.
Contoh 2: Membuat titik enpoint dengan file json
New-AzDataCollectionEndpoint -Name myCollectionEndpoint2 -ResourceGroupName AMCS-TEST -JsonFilePath .\test\jsonfile\endpointTest1.json
# Note: content of .\test\jsonfile\endpointTest1.json
#{
# "location": "eastus",
# "properties": {
# "networkAcls": {
# "publicNetworkAccess": "Enabled"
# }
# }
# }
ConfigurationAccessEndpoint : https://mycollectionendpoint2-0e77.eastus-1.handler.control.monitor.azure.com
Description :
Etag : "ba021b4b-0000-0100-0000-650170c20000"
FailoverConfigurationActiveLocation :
FailoverConfigurationLocation :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint2
IdentityPrincipalId :
IdentityTenantId :
IdentityType :
IdentityUserAssignedIdentity : {
}
ImmutableId : dce-ab8aec1ea24a41c0a175a5692c173b76
Kind :
Location : eastus
LogIngestionEndpoint : https://mycollectionendpoint2-0e77.eastus-1.ingest.monitor.azure.com
MetadataProvisionedBy :
MetadataProvisionedByResourceId :
MetricIngestionEndpoint : https://mycollectionendpoint2-0e77.eastus-1.metrics.ingest.monitor.azure.com
Name : myCollectionEndpoint2
NetworkAclsPublicNetworkAccess : Enabled
PrivateLinkScopedResource :
ProvisioningState : Succeeded
ResourceGroupName : AMCS-TEST
SystemDataCreatedAt : 9/13/2023 8:20:16 AM
SystemDataCreatedBy : v-jiaji@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 9/13/2023 8:20:16 AM
SystemDataLastModifiedBy : v-jiaji@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : Microsoft.Insights/dataCollectionEndpoints
Perintah ini membuat titik enpoint dengan jalur file json yang diberikan.
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
Parameter DefaultProfile tidak berfungsi. Gunakan parameter SubscriptionId saat tersedia jika menjalankan cmdlet terhadap langganan yang berbeda.
Jenis: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Description
Deskripsi titik akhir pengumpulan data.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-IdentityType
Jenis identitas layanan terkelola (di mana jenis SystemAssigned dan UserAssigned diizinkan).
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ImmutableId
ID yang tidak dapat diubah dari sumber daya titik akhir pengumpulan data ini. Properti ini BERSIFAT BACA-SAJA.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-JsonFilePath
Jalur file Json yang disediakan ke operasi Buat
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-JsonString
String Json yang disediakan ke operasi Buat
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Kind
Jenis sumber daya.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Location
Lokasi geografis tempat sumber daya berada.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Name
Nama titik akhir pengumpulan data. Nama tidak peka huruf besar/kecil.
Jenis: | String |
Alias: | DataCollectionEndpointName |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-NetworkAclsPublicNetworkAccess
Konfigurasi untuk mengatur apakah akses jaringan dari internet publik ke titik akhir diizinkan.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroupName
Nama grup sumber daya. Nama tidak peka huruf besar/kecil.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-SubscriptionId
ID langganan target.
Jenis: | String |
Position: | Named |
Nilai default: | (Get-AzContext).Subscription.Id |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Tag
Tag sumber daya.
Jenis: | Hashtable |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-UserAssignedIdentity
Kumpulan identitas yang ditetapkan pengguna yang terkait dengan sumber daya. Kunci kamus userAssignedIdentities akan menjadi id sumber daya ARM dalam formulir: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. Nilai kamus dapat berupa objek kosong ({}) dalam permintaan.
Jenis: | Hashtable |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
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 |
Output
Azure PowerShell