Remove-AzCognitiveServicesAccountNetworkRule
Menghapus IpRules atau VirtualNetworkRules dari properti NetWorkRule dari akun Cognitive Services
Sintaks
Remove-AzCognitiveServicesAccountNetworkRule
[-ResourceGroupName] <String>
[-Name] <String>
-VirtualNetworkResourceId <String[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzCognitiveServicesAccountNetworkRule
[-ResourceGroupName] <String>
[-Name] <String>
-IpRule <PSIpRule[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzCognitiveServicesAccountNetworkRule
[-ResourceGroupName] <String>
[-Name] <String>
-VirtualNetworkRule <PSVirtualNetworkRule[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzCognitiveServicesAccountNetworkRule
[-ResourceGroupName] <String>
[-Name] <String>
-IpAddressOrRange <String[]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Cmdlet Remove-AzCognitiveServicesAccountNetworkRule menghapus IpRules atau VirtualNetworkRules dari properti NetWorkRule dari akun Cognitive Services
Contoh
Contoh 1: Hapus beberapa IpRules dengan IPAddressOrRange
Remove-AzCognitiveServicesAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "myaccount" -IpAddressOrRange "10.0.0.0/24,28.1.0.0/16"
Perintah ini menghapus beberapa IpRules dengan IPAddressOrRange.
Contoh 2: Menghapus VirtualNetworkRule dengan input Objek VirtualNetworkRule dengan JSON
Remove-AzCognitiveServicesAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "myaccount" -VirtualNetworkRule (@{VirtualNetworkReourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"})
Perintah ini menghapus VirtualNetworkRule dengan input Objek VirtualNetworkRule dengan JSON.
Contoh 3: Hapus IpRule pertama dengan alur
(Get-AzCognitiveServicesAccountNetworkRuleSet -ResourceGroupName "myResourceGroup" -Name "myaccount").IpRules[0] | Remove-AzCognitiveServicesAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "myaccount"
Perintah ini menghapus IpRule pertama dengan alur.
Contoh 4: Menghapus beberapa VirtualNetworkRules dengan VirtualNetworkResourceID
Remove-AzCognitiveServicesAccountNetworkRule -ResourceGroupName "myResourceGroup" -Name "myaccount" -VirtualNetworkResourceId "/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1","/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2"
Perintah ini menghapus beberapa VirtualNetworkRules dengan VirtualNetworkResourceID.
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 |
-IpAddressOrRange
Akun Cognitive Services NetworkRule IpRules IpAddressOrRange dalam string.
Jenis: | String[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-IpRule
Akun Cognitive Services NetworkRule IpRules.
Jenis: | PSIpRule[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-Name
Nama Akun Cognitive Services.
Jenis: | String |
Alias: | CognitiveServicesAccountName, AccountName |
Position: | 1 |
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: | True |
Terima karakter wildcard: | False |
-VirtualNetworkResourceId
Akun Cognitive Services NetworkRule VirtualNetworkRules VirtualNetworkResourceId dalam string.
Jenis: | String[] |
Alias: | SubnetId, VirtualNetworkId |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-VirtualNetworkRule
Akun Cognitive Services NetworkRule VirtualNetworkRules.
Jenis: | PSVirtualNetworkRule[] |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
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
PSIpRule[]