Get-AzLoadBalancer
Mendapatkan load balancer.
Sintaks
Get-AzLoadBalancer
[-ResourceGroupName <String>]
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzLoadBalancer
-ResourceGroupName <String>
-Name <String>
-ExpandResource <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzLoadBalancer mendapatkan satu atau beberapa penyeimbang muatan Azure yang terkandung dalam grup sumber daya.
Contoh
Contoh 1: Mendapatkan load balancer
Get-AzLoadBalancer -Name "MyLoadBalancer1" -ResourceGroupName "MyResourceGroup"
Name : MyLoadBalancer1
ResourceGroupName : MyResourceGroup
Location : australiaeast
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/M
icrosoft.Network/loadBalancers/MyLoadBalancer1
Etag : W/"00000000-0000-0000-0000-000000000000"
ResourceGuid : 00000000-0000-0000-0000-000000000000
ProvisioningState : Succeeded
Tags :
FrontendIpConfigurations : []
BackendAddressPools : []
LoadBalancingRules : []
Probes : []
InboundNatRules : []
InboundNatPools : []
Sku : {
"Name": "Basic",
"Tier": "Regional"
}
Perintah ini mendapatkan load balancer bernama MyLoadBalancer. Load balancer harus ada sebelum Anda dapat menjalankan cmdlet ini.
Contoh 2: Mencantumkan load balancer menggunakan pemfilteran
Get-AzLoadBalancer -Name MyLoadBalancer*
Name : MyLoadBalancer1
ResourceGroupName : MyResourceGroup
Location : australiaeast
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/M
icrosoft.Network/loadBalancers/MyLoadBalancer1
Etag : W/"00000000-0000-0000-0000-000000000000"
ResourceGuid : 00000000-0000-0000-0000-000000000000
ProvisioningState : Succeeded
Tags :
FrontendIpConfigurations : []
BackendAddressPools : []
LoadBalancingRules : []
Probes : []
InboundNatRules : []
InboundNatPools : []
Sku : {
"Name": "Basic",
"Tier": "Regional"
}
Name : MyLoadBalancer2
ResourceGroupName : MyResourceGroup
Location : australiaeast
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/M
icrosoft.Network/loadBalancers/MyLoadBalancer2
Etag : W/"00000000-0000-0000-0000-000000000000"
ResourceGuid : 00000000-0000-0000-0000-000000000000
ProvisioningState : Succeeded
Tags :
FrontendIpConfigurations : []
BackendAddressPools : []
LoadBalancingRules : []
Probes : []
InboundNatRules : []
InboundNatPools : []
Sku : {
"Name": "Basic",
"Tier": "Regional"
}
Perintah ini mendapatkan semua load balancer dengan nama yang dimulai dengan "MyLoadBalancer"
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 |
-ExpandResource
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | False |
-Name
Jenis: | String |
Alias: | ResourceName |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | True |
-ResourceGroupName
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | True |
Terima karakter wildcard: | True |