Azure klasik CLı komutları

Önemli

Klasik VM 'Ler 1 Mart 2023 ' de kullanımdan kaldırılacaktır.

IaaS kaynaklarını ASM 'den kullanıyorsanız, lütfen geçişinizi 1 Mart 2023 ' den tamamlayabilirsiniz. Azure Resource Manager 'daki birçok özellik geliştirmelerinden faydalanmak için anahtarı daha önce bir daha erken yapmanız önerilir.

daha fazla bilgi için, bkz. 1 mart 2023 ' de ıaas kaynaklarınızı Azure 'a geçirme Resource Manager.

Bu konu başlığı altında Azure klasik CLI'nin nasıl yüklendiği açıklanır. Klasik CLI kullanımdan kaldırılmıştır ve yalnızca klasik dağıtım modeliyle kullanılmalıdır. Diğer tüm dağıtımlar için Azure CLI'yi kullanın.

Bu makalede, Azure kaynakları oluşturmak ve yönetmek için sık kullandığınız Azure klasik komut satırı arabirimi (CLı) komutları için sözdizimi ve seçenekler sağlanmaktadır. Bu, tüm bir başvuru değildir ve CLı sürümünüz biraz farklı komutlar veya parametreler gösterebilir.

Başlamak için ilk olarak Azure klasık CLI 'yı yükledikten sonra Azure aboneliğinize bağlanın.

Resource Manager modundaki komut satırındaki geçerli komut sözdizimi ve seçenekleri için, belirli bir komut azure help [command] için yardımı göstermek üzere veya yazın azure help . Ayrıca, belirli Azure hizmetlerini oluşturmak ve yönetmek için belgelerde CLı örnekleri de bulabilirsiniz.

İsteğe bağlı parametreler köşeli ayraç içinde gösterilir (örneğin, [parameter] ). Diğer tüm parametreler gereklidir.

Burada belgelenen komuta özgü isteğe bağlı parametrelerin yanı sıra, istek seçenekleri ve durum kodları gibi ayrıntılı çıktıyı göstermek için kullanılabilecek üç isteğe bağlı parametre vardır. -vParametresi ayrıntılı çıkış sağlar ve -vv parametresi daha ayrıntılı ayrıntılı çıkış sağlar. --jsonSeçeneği sonucunda ham JSON biçiminde çıkış yapılır.

Resource Manager modunu ayarlama

Azure clı Resource Manager modu komutlarını etkinleştirmek için aşağıdaki komutu kullanın.

azure config mode arm

Not

clı 'nın azure Resource Manager modu ve azure hizmet yönetimi modu birbirini dışlıyor. Diğer bir deyişle, bir modda oluşturulan kaynaklar diğer moddan yönetilemez.

Hesap bilgileri

Azure abonelik bilgileriniz, araç tarafından hesabınıza bağlanmak için kullanılır.

İçeri aktarılan abonelikleri listeleyin

account list [options]

Bir abonelik hakkındaki ayrıntıları göster

account show [options] [subscriptionNameOrId]

Geçerli aboneliği ayarla

account set [options] <subscriptionNameOrId>

Bir aboneliği veya ortamı kaldırın veya tüm depolanan hesabı ve ortam bilgilerini temizleyin

account clear [options]

Hesap ortamınızı yönetme komutları

account env list [options]
account env show [options] [environment]
account env add [options] [environment]
account env set [options] [environment]
account env delete [options] [environment]

Active Directory nesneleri

Active Directory uygulamalarını görüntüleme komutları

ad app create [options]
ad app delete [options] <object-id>

Active Directory gruplarını görüntüleme komutları

ad group list [options]
ad group show [options]

Active Directory alt grup veya üye bilgilerini sağlamak için komutlar

ad group member list [options] [objectId]

Active Directory hizmet sorumlularını görüntüleme komutları

ad sp list [options]
ad sp show [options]
ad sp create [options] <application-id>
ad sp delete [options] <object-id>

Active Directory kullanıcılarını görüntüleme komutları

ad user list [options]
ad user show [options]

Kullanılabilirlik kümeleri

Bir kaynak grubu içinde bir kullanılabilirlik kümesi oluşturur

availset create [options] <resource-group> <name> <location> [tags]

Bir kaynak grubu içindeki kullanılabilirlik kümelerini listeler

availset list [options] <resource-group>

Bir kaynak grubu içindeki bir kullanılabilirlik kümesini alır

availset show [options] <resource-group> <name>

Bir kaynak grubu içindeki bir kullanılabilirlik kümesini siler

availset delete [options] <resource-group> <name>

Yerel ayarlar

Azure CLı yapılandırma ayarlarını listeleme

config list [options]

Yapılandırma ayarını Sil

config delete [options] <name>

Yapılandırma ayarını güncelleştirme

config set <name> <value>

Azure CLı çalışma modunu ya da arm olarak ayarlar asm

config mode [options] <modename>

Hesap özellikleri

Aboneliğiniz için kullanılabilen tüm özellikleri listeleyin

feature list [options]

Bir özelliği gösterir

feature show [options] <providerName> <featureName>

Kaynak sağlayıcının Önizlemesi görüntülenen bir özelliğini kaydeder

feature register [options] <providerName> <featureName>

Kaynak grupları

Bir kaynak grubu oluşturur

group create [options] <name> <location>

Etiketleri bir kaynak grubuna ayarla

group set [options] <name> <tags>

Bir kaynak grubunu siler

group delete [options] <name>

Aboneliğiniz için kaynak gruplarını listeler

group list [options]

Aboneliğiniz için bir kaynak grubu gösterir

group show [options] <name>

Kaynak grubu günlüklerini yönetme komutları

group log show [options] [name]

Bir kaynak grubunda dağıtımınızı yönetmek için komutlar

group deployment create [options] [resource-group] [name]
group deployment list [options] <resource-group> [state]
group deployment show [options] <resource-group> [deployment-name]
group deployment stop [options] <resource-group> [deployment-name]

Yerel veya Galeri kaynak grubu şablonunuzu yönetme komutları

group template list [options]
group template show [options] <name>
group template download [options] [name] [file]
group template validate [options] <resource-group>

HDInsight kümeleri

Bir küme yapılandırma dosyası oluşturmak veya kümeye eklemek için komutlar

hdinsight config create [options] <configFilePath> <overwrite>
hdinsight config add-config-values [options] <configFilePath>
hdinsight config add-script-action [options] <configFilePath>

Örnek: bir küme oluştururken çalıştırılacak betik eylemi içeren bir yapılandırma dosyası oluşturun.

hdinsight config create "C:\myFiles\configFile.config"
hdinsight config add-script-action --configFilePath "C:\myFiles\configFile.config" --nodeType HeadNode --uri <scriptActionURI> --name myScriptAction --parameters "-param value"

Kaynak grubunda küme oluşturma komutu

hdinsight cluster create [options] <clusterName>

Örnek: Linux kümesinde bir fırtınası oluşturma

azure hdinsight cluster create -g myarmgroup -l westus -y Linux --clusterType Storm --version 3.2 --defaultStorageAccountName mystorageaccount --defaultStorageAccountKey <defaultStorageAccountKey> --defaultStorageContainer mycontainer --userName admin --password <clusterPassword> --sshUserName sshuser --sshPassword <sshPassword> --workerNodeCount 1 myNewCluster01

info:    Executing command hdinsight cluster create
+ Submitting the request to create cluster...
info:    hdinsight cluster create command OK

Örnek: betik eylemi ile küme oluşturma

azure hdinsight cluster create -g myarmgroup -l westus -y Linux --clusterType Hadoop --version 3.2 --defaultStorageAccountName mystorageaccount --defaultStorageAccountKey <defaultStorageAccountKey> --defaultStorageContainer mycontainer --userName admin --password <clusterPassword> --sshUserName sshuser --sshPassword <sshPassword> --workerNodeCount 1 –configurationPath "C:\myFiles\configFile.config" myNewCluster01

info:    Executing command hdinsight cluster create
+ Submitting the request to create cluster...
info:    hdinsight cluster create command OK

Parametre seçenekleri:

-h, --help                                                 output usage information
-v, --verbose                                              use verbose output
-vv                                                        more verbose with debug output
--json                                                     use json output
-g --resource-group <resource-group>                       The name of the resource group
-c, --clusterName <clusterName>                            HDInsight cluster name
-l, --location <location>                                  Data center location for the cluster
-y, --osType <osType>                                      HDInsight cluster operating system
'Windows' or 'Linux'
--version <version>                                        HDInsight cluster version
--clusterType <clusterType>                                HDInsight cluster type.
Hadoop | HBase | Spark | Storm
--defaultStorageAccountName <storageAccountName>           Storage account url to use for default HDInsight storage
--defaultStorageAccountKey <storageAccountKey>             Key to the storage account to use for default HDInsight storage
--defaultStorageContainer <storageContainer>               Container in the storage account to use for HDInsight default storage
--headNodeSize <headNodeSize>                              (Optional) Head node size for the cluster
--workerNodeCount <workerNodeCount>                        Number of worker nodes to use for the cluster
--workerNodeSize <workerNodeSize>                          (Optional) Worker node size for the cluster)
--zookeeperNodeSize <zookeeperNodeSize>                    (Optional) Zookeeper node size for the cluster
--userName <userName>                                      Cluster username
--password <password>                                      Cluster password
--sshUserName <sshUserName>                                SSH username (only for Linux clusters)
--sshPassword <sshPassword>                                SSH password (only for Linux clusters)
--sshPublicKey <sshPublicKey>                              SSH public key (only for Linux clusters)
--rdpUserName <rdpUserName>                                RDP username (only for Windows clusters)
--rdpPassword <rdpPassword>                                RDP password (only for Windows clusters)
--rdpAccessExpiry <rdpAccessExpiry>                        RDP access expiry.
For example 12/12/2015 (only for Windows clusters)
--virtualNetworkId <virtualNetworkId>                      (Optional) Virtual network ID for the cluster.
Value is a GUID for Windows cluster and ARM resource ID for Linux cluster)
--subnetName <subnetName>                                  (Optional) Subnet for the cluster
--additionalStorageAccounts <additionalStorageAccounts>    (Optional) Additional storage accounts.
Can be multiple.
In the format of 'accountName#accountKey'.
For example, --additionalStorageAccounts "acc1#key1;acc2#key2"
--hiveMetastoreServerName <hiveMetastoreServerName>        (Optional) SQL Server name for the external metastore for Hive
--hiveMetastoreDatabaseName <hiveMetastoreDatabaseName>    (Optional) Database name for the external metastore for Hive
--hiveMetastoreUserName <hiveMetastoreUserName>            (Optional) Database username for the external metastore for Hive
--hiveMetastorePassword <hiveMetastorePassword>            (Optional) Database password for the external metastore for Hive
--oozieMetastoreServerName <oozieMetastoreServerName>      (Optional) SQL Server name for the external metastore for Oozie
--oozieMetastoreDatabaseName <oozieMetastoreDatabaseName>  (Optional) Database name for the external metastore for Oozie
--oozieMetastoreUserName <oozieMetastoreUserName>          (Optional) Database username for the external metastore for Oozie
--oozieMetastorePassword <oozieMetastorePassword>          (Optional) Database password for the external metastore for Oozie
--configurationPath <configurationPath>                    (Optional) HDInsight cluster configuration file path
-s, --subscription <id>                                    The subscription id
--tags <tags>                                              Tags to set to the cluster.
Can be multiple.
In the format of 'name=value'.
Name is required and value is optional.
For example, --tags tag1=value1;tag2

Kümeyi silme komutu

hdinsight cluster delete [options] <clusterName>

Küme ayrıntılarını gösterme komutu

hdinsight cluster show [options] <clusterName>

Tüm kümeleri listelemek için komut (sağlanmışsa belirli bir kaynak grubunda)

hdinsight cluster list [options]

Kümeyi yeniden boyutlandırma komutu

hdinsight cluster resize [options] <clusterName> <targetInstanceCount>

Bir küme için HTTP erişimini etkinleştirme komutu

hdinsight cluster enable-http-access [options] <clusterName> <userName> <password>

Bir küme için HTTP erişimini devre dışı bırakma komutu

hdinsight cluster disable-http-access [options] <clusterName>

Bir küme için RDP erişimini etkinleştirme komutu

hdinsight cluster enable-rdp-access [options] <clusterName> <rdpUserName> <rdpPassword> <rdpExpiryDate>

Bir küme için HTTP erişimini devre dışı bırakma komutu

hdinsight cluster disable-rdp-access [options] <clusterName>

Analizler (olaylar, uyarı kuralları, otomatik ölçeklendirme ayarları, ölçümler)

Abonelik, bir CorrelationId, bir kaynak grubu, kaynak veya kaynak sağlayıcısı için işlem günlüklerini alma

insights logs list [options]

Konumlar

Kullanılabilir konumları listeleyin

location list [options]

Ağ kaynakları

Sanal ağları yönetmeye yönelik komutlar

network vnet create [options] <resource-group> <name> <location>

Sanal ağ oluşturur. Aşağıdaki örnekte, Batı ABD bölgesinde myresourcegroup kaynak grubu için newvnet adlı bir sanal ağ oluşturacağız.

azure network vnet create myresourcegroup newvnet "west us"
info:    Executing command network vnet create
+ Looking up virtual network "newvnet"
+ Creating virtual network "newvnet"
 Loading virtual network state
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet create command OK

Parametre seçenekleri:

 -h, --help                                 output usage information
 -v, --verbose                              use verbose output
--json                                     use json output
 -g, --resource-group <resource-group>      the name of the resource group
 -n, --name <name>                          the name of the virtual network
 -l, --location <location>                  the location
 -a, --address-prefixes <address-prefixes>  the comma separated list of address prefixes for this virtual network
  For example -a 10.0.0.0/24,10.0.1.0/24.
  Default value is 10.0.0.0/8

-d, --dns-servers <dns-servers>            the comma separated list of DNS servers IP addresses
 -t, --tags <tags>                          the tags set on this virtual network.
  Can be multiple. In the format of "name=value".
  Name is required and value is optional.
  For example, -t tag1=value1;tag2
 -s, --subscription <subscription>          the subscription identifier

network vnet set [options] <resource-group> <name>

Bir kaynak grubu içindeki bir sanal ağ yapılandırmasını güncelleştirir.

azure network vnet set myresourcegroup newvnet

info:    Executing command network vnet set
+ Looking up virtual network "newvnet"
+ Updating virtual network "newvnet"
+ Loading virtual network state
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet set command OK

Parametre seçenekleri:

   -h, --help                                 output usage information
   -v, --verbose                              use verbose output
   --json                                     use json output
   -g, --resource-group <resource-group>      the name of the resource group
   -n, --name <name>                          the name of the virtual network
   -a, --address-prefixes <address-prefixes>  the comma separated list of address prefixes for this virtual network.
    For example -a 10.0.0.0/24,10.0.1.0/24.
    This list will be appended to the current list of address prefixes.
    The address prefixes in this list should not overlap between them.
    The address prefixes in this list should not overlap with existing address prefixes in the vnet.

   -d, --dns-servers [dns-servers]            the comma separated list of DNS servers IP addresses.
    This list will be appended to the current list of DNS server IP addresses.

   -t, --tags <tags>                          the tags set on this virtual network.
    Can be multiple. In the format of "name=value".
    Name is required and value is optional. For example, -t tag1=value1;tag2.
    This list will be appended to the current list of tags

   --no-tags                                  remove all existing tags
   -s, --subscription <subscription>          the subscription identifier

network vnet list [options] <resource-group>

Komut, bir kaynak grubundaki tüm sanal ağları listeler.

C:\>azure network vnet list myresourcegroup

info:    Executing command network vnet list
+ Listing virtual networks
    data:    ID
   Name      Location  Address prefixes  DNS servers
data:    -------------------------------------------------------------------
------  --------  --------  ----------------  -----------
data:    /subscriptions/###############################/resourceGroups/
wvnet   newvnet   westus    10.0.0.0/8
info:    network vnet list command OK

Parametre seçenekleri:

  -h, --help                             output usage information
  -v, --verbose                          use verbose output
  --json                                 use json output
  -g, --resource-group <resource-group>  the name of the resource group
  -s, --subscription <subscription>      the subscription identifier

network vnet show [options] <resource-group> <name>

Komut, bir kaynak grubundaki sanal ağ özelliklerini gösterir.

azure network vnet show -g myresourcegroup -n newvnet

info:    Executing command network vnet show
+ Looking up virtual network "newvnet"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet show command OK

network vnet delete [options] <resource-group> <name>

Komut, bir sanal ağı kaldırır.

azure network vnet delete myresourcegroup newvnetX

info:    Executing command network vnet delete
+ Looking up virtual network "newvnetX"
Delete virtual network newvnetX? [y/n] y
+ Deleting virtual network "newvnetX"
info:    network vnet delete command OK

Parametre seçenekleri:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -n, --name <name>                      the name of the virtual network
 -q, --quiet                            quiet mode, do not ask for delete confirmation
 -s, --subscription <subscription>      the subscription identifier

Sanal ağ alt ağlarını yönetmeye yönelik komutlar

network vnet subnet create [options] <resource-group> <vnet-name> <name>

Var olan bir sanal ağa başka bir alt ağ ekler.

azure network vnet subnet create -g myresourcegroup --vnet-name newvnet -n subnet --address-prefix 10.0.1.0/24

info:    Executing command network vnet subnet create
+ Looking up the subnet "subnet"
+ Creating subnet "subnet"
+ Looking up the subnet "subnet"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet
data:    Name:                      subnet
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet create command OK

Parametre seçenekleri:

 -h, --help                                                       output usage information
 -v, --verbose                                                    use verbose output
     --json                                                           use json output
 -g, --resource-group <resource-group>                            the name of the resource group
 -e, --vnet-name <vnet-name>                                      the name of the virtual network
 -n, --name <name>                                                the name of the subnet
 -a, --address-prefix <address-prefix>                            the address prefix
 -w, --network-security-group-id <network-security-group-id>      the network security group identifier.
       e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/networkSecurityGroups/<nsg-name>
 -o, --network-security-group-name <network-security-group-name>  the network security group name
 -s, --subscription <subscription>                                the subscription identifier

network vnet subnet set [options] <resource-group> <vnet-name> <name>

Bir kaynak grubu içindeki belirli bir sanal ağ alt ağını ayarlar.

C:\>azure network vnet subnet set -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet set
+ Looking up the subnet "subnet1"
+ Setting subnet "subnet1"
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet set command OK

network vnet subnet list [options] <resource-group> <vnet-name>

Bir kaynak grubu içindeki belirli bir sanal ağın tüm sanal ağ alt ağlarını listeler.

azure network vnet subnet set -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet set
+ Looking up the subnet "subnet1"
+ Setting subnet "subnet1"
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet set command OK

network vnet subnet show [options] <resource-group> <vnet-name> <name>

Sanal ağ alt ağ özelliklerini görüntüler

azure network vnet subnet show -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet show
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft
.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet show command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-e, --vnet-name <vnet-name>            the name of the virtual network
-n, --name <name>                      the name of the subnet
-s, --subscription <subscription>      the subscription identifier

network vnet subnet delete [options] <resource-group> <vnet-name> <subnet-name>

Mevcut bir sanal ağdan bir alt ağı kaldırır.

azure network vnet subnet delete -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet delete
+ Looking up the subnet "subnet1"
Delete subnet "subnet1"? [y/n] y
+ Deleting subnet "subnet1"
info:    network vnet subnet delete command OK

Parametre seçenekleri:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -e, --vnet-name <vnet-name>            the name of the virtual network
 -n, --name <name>                      the subnet name
 -s, --subscription <subscription>      the subscription identifier
 -q, --quiet                            quiet mode, do not ask for delete confirmation

Yük dengecileri yönetme komutları

network lb create [options] <resource-group> <name> <location>

Bir yük dengeleyici kümesi oluşturur.

azure network lb create -g myresourcegroup -n mylb -l westus

info:    Executing command network lb create
+ Looking up the load balancer "mylb"
+ Creating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
data:    Name:                         mylb
data:    Type:                         Microsoft.Network/loadBalancers
data:    Location:                     westus
data:    Provisioning state:           Succeeded
info:    network lb create command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the load balancer
-l, --location <location>              the location
-t, --tags <tags>                      the list of tags.
 Can be multiple. In the format of "name=value".
 Name is required and value is optional. For example, -t tag1=value1;tag2
-s, --subscription <subscription>      the subscription identifier

network lb list [options] <resource-group>

Bir kaynak grubu içindeki Yük dengeleyici kaynaklarını listeler.

azure network lb list myresourcegroup

info:    Executing command network lb list
+ Getting the load balancers
data:    Name  Location
data:    ----  --------
data:    mylb  westus
info:    network lb list command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-s, --subscription <subscription>      the subscription identifier

network lb show [options] <resource-group> <name>

Kaynak grubu içindeki belirli bir yük dengeleyicinin yük dengeleyici bilgilerini görüntüler

azure network lb show myresourcegroup mylb -v

info:    Executing command network lb show
verbose: Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
data:    Name:                         mylb
data:    Type:                         Microsoft.Network/loadBalancers
data:    Location:                     westus
data:    Provisioning state:           Succeeded
info:    network lb show command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb delete [options] <resource-group> <name>

Yük dengeleyici kaynaklarını silin.

azure network lb delete  myresourcegroup mylb

info:    Executing command network lb delete
+ Looking up the load balancer "mylb"
Delete load balancer "mylb"? [y/n] y
+ Deleting load balancer "mylb"
info:    network lb delete command OK

Parametre seçenekleri:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -n, --name <name>                      the name of the load balancer
 -q, --quiet                            quiet mode, do not ask for delete confirmation
 -s, --subscription <subscription>      the subscription identifier

Yük dengeleyici araştırmalarını yönetme komutları

network lb probe create [options] <resource-group> <lb-name> <name>

Yük dengeleyicide sistem durumu için yoklama yapılandırmasını oluşturun. Bu komutu çalıştırmayı unutmayın; yük dengeleyiciniz bir ön uç-ip kaynağı gerektirir (Yük dengeleyiciye ip adresi atamak için "azure network frontend-ip" komutuna göz atabilirsiniz).

azure network lb probe create -g myresourcegroup --lb-name mylb -n mylbprobe --protocol tcp --port 80 -i 300

info:    Executing command network lb probe create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
info:    network lb probe create command OK

Parametre seçenekleri:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the probe
-p, --protocol <protocol>              the probe protocol
-o, --port <port>                      the probe port
-f, --path <path>                      the probe path
-i, --interval <interval>              the probe interval in seconds
-c, --count <count>                    the number of probes
-s, --subscription <subscription>      the subscription identifier

network lb probe set [options] <resource-group> <lb-name> <name>

Mevcut yük dengeleyici araştırmasını yeni değerlerle güncelleştirme.

azure network lb probe set -g myresourcegroup -l mylb -n mylbprobe -p mylbprobe1 -p TCP -o 443 -i 300

info:    Executing command network lb probe set
    + Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
info:    network lb probe set command OK

Parametre seçenekleri

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the probe
-e, --new-probe-name <new-probe-name>  the new name of the probe
-p, --protocol <protocol>              the new value for probe protocol
-o, --port <port>                      the new value for probe port
-f, --path <path>                      the new value for probe path
-i, --interval <interval>              the new value for probe interval in seconds
-c, --count <count>                    the new value for number of probes
-s, --subscription <subscription>      the subscription identifier

network lb probe list [options] <resource-group> <lb-name>

Yük dengeleyici kümesi için yoklama özelliklerini listele.

C:\>azure network lb probe list -g myresourcegroup -l mylb

info:    Executing command network lb probe list
+ Looking up the load balancer "mylb"
data:    Name       Protocol  Port  Path  Interval  Count
data:    ---------  --------  ----  ----  --------  -----
data:    mylbprobe  Tcp       443         300       2
info:    network lb probe list command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier


network lb probe delete [options] <resource-group> <lb-name> <name>

Yük dengeleyici için oluşturulan araştırmayı kaldırır.

azure network lb probe delete -g myresourcegroup -l mylb -n mylbprobe

info:    Executing command network lb probe delete
+ Looking up the load balancer "mylb"
Delete a probe "mylbprobe?" [y/n] y
+ Updating load balancer "mylb"
info:    network lb probe delete command OK

Yük dengeleyicinin ön uç IP yapılandırmalarını yönetme komutları

network lb frontend-ip create [options] <resource-group> <lb-name> <name>

Var olan bir yük dengeleyici kümesi için ön uç IP yapılandırması oluşturur.

azure network lb frontend-ip create -g myresourcegroup --lb-name mylb -n myfrontendip -o Dynamic -e subnet -m newvnet

info:    Executing command network lb frontend-ip create
+ Looking up the load balancer "mylb"
+ Looking up the subnet "subnet"
+ Creating frontend IP configuration "myfrontendip"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/Myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
/frontendIPConfigurations/myfrontendip
data:    Name:                         myfrontendip
data:    Type:                         Microsoft.Network/loadBalancers/frontendIPConfigurations
data:    Provisioning state:           Succeeded
data:    Private IP allocation method: Dynamic
data:    Private IP address:           10.0.1.4
data:    Subnet:                       id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet
data:    Public IP address:
data:    Inbound NAT rules
data:    Outbound NAT rules
data:    Load balancing rules
data:
info:    network lb frontend-ip create command OK

network lb frontend-ip set [options] <resource-group> <lb-name> <name>

Ön uç IP'lerinin mevcut yapılandırmasını güncelleştirme. Aşağıdaki komut, myfrontendip adlı mevcut yük dengeleyici ön uç IP'sini mypubip5 adlı genel IP'ye ekler.

azure network lb frontend-ip set -g myresourcegroup --lb-name mylb -n myfrontendip -i mypubip5

info:    Executing command network lb frontend-ip set
+ Looking up the load balancer "mylb"
+ Looking up the public ip "mypubip5"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Name:                         myfrontendip
data:    Type:                         Microsoft.Network/loadBalancers/frontendIPConfigurations
data:    Provisioning state:           Succeeded
data:    Private IP allocation method: Dynamic
data:    Private IP address:
data:    Subnet:
data:    Public IP address:            id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mypubip5
data:    Inbound NAT rules
data:    Outbound NAT rules
data:    Load balancing rules
data:
info:    network lb frontend-ip set command OK

Parametre seçenekleri:

-h, --help                                                         output usage information
-v, --verbose                                                      use verbose output
--json                                                             use json output
-g, --resource-group <resource-group>                              the name of the resource group
-l, --lb-name <lb-name>                                            the name of the load balancer
-n, --name <name>                                                  the name of the frontend ip configuration
-a, --private-ip-address <private-ip-address>                      the private ip address
-o, --private-ip-allocation-method <private-ip-allocation-method>  the private ip allocation method [Static, Dynamic]
-u, --public-ip-id <public-ip-id>                                  the public ip identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/publicIPAddresses/<public-ip-name>
-i, --public-ip-name <public-ip-name>                              the public ip name.
This public ip must exist in the same resource group as the lb.
Please use public-ip-id if that is not the case.
-b, --subnet-id <subnet-id>                                        the subnet id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/VirtualNetworks/<vnet-name>/subnets/<subnet-name>
-e, --subnet-name <subnet-name>                                    the subnet name
-m, --vnet-name <vnet-name>                                        the virtual network name.
This virtual network must exist in the same resource group as the lb.
Please use subnet-id if that is not the case.
-s, --subscription <subscription>                                  the subscription identifier

network lb frontend-ip list [options] <resource-group> <lb-name>

Yük dengeleyici için yapılandırılan tüm ön uç IP kaynaklarını listeler.

azure network lb frontend-ip list -g myresourcegroup -l mylb

info:    Executing command network lb frontend-ip list
+ Looking up the load balancer "mylb"
data:    Name         Provisioning state  Private IP allocation method  Subnet
data:    -----------  ------------------  ----------------------------  ------
data:    myprivateip  Succeeded           Dynamic
info:    network lb frontend-ip list command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb frontend-ip delete [options] <resource-group> <lb-name> <name>

Yük dengeleyiciyle ilişkili ön uç IP nesnesini siler

network lb frontend-ip delete -g myresourcegroup -l mylb -n myfrontendip
info:    Executing command network lb frontend-ip delete
+ Looking up the load balancer "mylb"
Delete frontend ip configuration "myfrontendip"? [y/n] y
+ Updating load balancer "mylb"

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the frontend ip configuration
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

Yük dengeleyicinin arka uç adres havuzlarını yönetme komutları

network lb address-pool create [options] <resource-group> <lb-name> <name>

Yük dengeleyici için bir arka uç adres havuzu oluşturun.

azure network lb address-pool create -g myresourcegroup --lb-name mylb -n myaddresspool

info:    Executing command network lb address-pool create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourgroup/providers/Microso.Network/loadBalancers/mylb/backendAddressPools/myaddresspool
data:    Name:                      myaddresspool
data:    Type:                      Microsoft.Network/loadBalancers/backendAddressPools
data:    Provisioning state:        Succeeded
data:    Backend IP configurations:
data:    Load balancing rules:
data:
info:    network lb address-pool create command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the backend address pool
-s, --subscription <subscription>      the subscription identifier

network lb address-pool list [options] <resource-group> <lb-name>

Belirli bir kaynak grubu için arka uç IP adresi havuzu aralığını listele

azure network lb address-pool list -g myresourcegroup -l mylb

info:    Executing command network lb address-pool list
+ Looking up the load balancer "mylb"
data:    Name           Provisioning state
data:    -------------  ------------------
data:    mybackendpool  Succeeded
info:    network lb address-pool list command OK

Parametre seçenekleri:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -l, --lb-name <lb-name>                the name of the load balancer
 -s, --subscription <subscription>      the subscription identifier

network lb address-pool delete [options] <resource-group> <lb-name> <name>

Arka uç IP havuzu aralığı kaynağını yük dengeleyiciden kaldırır.

azure network lb address-pool delete -g myresourcegroup -l mylb -n mybackendpool

info:    Executing command network lb address-pool delete
+ Looking up the load balancer "mylb"
Delete backend address pool "mybackendpool"? [y/n] y
+ Updating load balancer "mylb"
info:    network lb address-pool delete command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the backend address pool
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

Yük dengeleyici kurallarını yönetme komutları

network lb rule create [options] <resource-group> <lb-name> <name>

Yük dengeleyici kuralları oluşturun.

Yük dengeleyici için ön uç uç noktasını ve gelen ağ trafiğini almak için arka uç adres havuzu aralığını yapılandıran bir yük dengeleyici kuralı oluşturabilirsiniz. Ayarlar uç nokta IP uç noktası için bağlantı noktalarını ve arka uç adres havuzu aralığı için bağlantı noktalarını da içerir.

Aşağıdaki örnekte bir yük dengeleyici kuralının, 80 TCP bağlantı noktasını dinleyen ön uç uç noktasının ve arka uç adres havuzu aralığı için 8080 bağlantı noktasına gönderilen ağ trafiğinin yük dengelemesini nasıl oluşturacağız?

azure network lb rule create -g myresourcegroup -l mylb -n mylbrule -p tcp -f 80 -b 8080 -i 10


info:    Executing command network lb rule create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Loading rule state
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/loadBalancingRules/mylbrule
data:    Name:                      mylbrule
data:    Type:                      Microsoft.Network/loadBalancers/loadBalancingRules
data:    Provisioning state:        Succeeded
data:    Frontend IP configuration: /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend address pool:      id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
data:    Protocol:                  Tcp
data:    Frontend port:             80
data:    Backend port:              8080
data:    Enable floating IP:        false
data:    Idle timeout in minutes:   10
data:    Probes
data:
info:    network lb rule create command OK

network lb rule set [options] <resource-group> <lb-name> <name>

Belirli bir kaynak grubunda var olan bir yük dengeleyici kural kümesinde güncelleştirmeler. Aşağıdaki örnekte kural adını mylbrule olarak mynewlbrule olarak değiştirdik.

azure network lb rule set -g myresourcegroup -l mylb -n mylbrule -r mynewlbrule -p tcp -f 80 -b 8080 -i 10 -t myfrontendip -o mybackendpool

info:    Executing command network lb rule set
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Loading rule state
data:    Id:                        /subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/loadBalancingRules/mynewlbrule
data:    Name:                      mynewlbrule
data:    Type:                      Microsoft.Network/loadBalancers/loadBalancingRules
data:    Provisioning state:        Succeeded
data:    Frontend IP configuration: /subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend address pool:      id=/subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
data:    Protocol:                  Tcp
data:    Frontend port:             80
data:    Backend port:              8080
data:    Enable floating IP:        false
data:    Idle timeout in minutes:   10
data:    Probes
data:
info:    network lb rule set command OK

Parametre seçenekleri:

-h, --help                                         output usage information
-v, --verbose                                      use verbose output
--json                                             use json output
-g, --resource-group <resource-group>              the name of the resource group
-l, --lb-name <lb-name>                            the name of the load balancer
-n, --name <name>                                  the name of the rule
-r, --new-rule-name <new-rule-name>                new rule name
-p, --protocol <protocol>                          the rule protocol
-f, --frontend-port <frontend-port>                the frontend port
-b, --backend-port <backend-port>                  the backend port
-e, --enable-floating-ip <enable-floating-ip>      enable floating point ip
-i, --idle-timeout <idle-timeout>                  the idle timeout in minutes
-a, --probe-name [probe-name]                      the name of the probe defined in the same load balancer
-t, --frontend-ip-name <frontend-ip-name>          the name of the frontend ip configuration in the same load balancer
-o, --backend-address-pool <backend-address-pool>  name of the backend address pool defined in the same load balancer
-s, --subscription <subscription>                  the subscription identifier


network lb rule list [options] <resource-group> <lb-name>

Belirli bir kaynak grubunda bir yük dengeleyici için yapılandırılan tüm yük dengeleyici kurallarını listeler.

azure network lb rule list -g myresourcegroup -l mylb

info:    Executing command network lb rule list
+ Looking up the load balancer "mylb"
data:    Name         Provisioning state  Protocol  Frontend port  Backend port  Enable floating IP  Idle timeout in minutes  Backend address pool  Probe data

data:    mynewlbrule  Succeeded           Tcp       80             8080          false               10                       /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
info:    network lb rule list command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb rule delete [options] <resource-group> <lb-name> <name>

Yük dengeleyici kuralını siler.

azure network lb rule delete -g myresourcegroup -l mylb -n mynewlbrule

info:    Executing command network lb rule delete
+ Looking up the load balancer "mylb"
Delete load balancing rule mynewlbrule? [y/n] y
+ Updating load balancer "mylb"
info:    network lb rule delete command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the rule
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

Yük dengeleyici gelen NAT kurallarını yönetme komutları

network lb inbound-nat-rule create [options] <resource-group> <lb-name> <name>

Yük dengeleyici için bir gelen NAT kuralı oluşturur.

Aşağıdaki örnekte, yük dengeleyicinin ağ trafiğini göndermek için kullandığı gelen dinleme bağlantı noktası ve giden bağlantı noktası ile ön uç IP'sinde (daha önce "azure network frontend-ip" komutu kullanılarak tanımlanmıştır) bir NAT kuralı oluşturduk.

azure network lb inbound-nat-rule create -g myresourcegroup -l mylb -n myinboundnat -p tcp -f 80 -b 8080 -i myfrontendip

info:    Executing command network lb inbound-nat-rule create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/inboundNatRules/myinboundnat
data:    Name:                      myinboundnat
data:    Type:                      Microsoft.Network/loadBalancers/inboundNatRules
data:    Provisioning state:        Succeeded
data:    Frontend IP Configuration: id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend IP configuration
data:    Protocol                   Tcp
data:    Frontend port              80
data:    Backend port               8080
data:    Enable floating IP         false
info:    network lb inbound-nat-rule create command OK

Parametre seçenekleri:

-h, --help                                     output usage information
-v, --verbose                                  use verbose output
--json                                         use json output
-g, --resource-group <resource-group>          the name of the resource group
-l, --lb-name <lb-name>                        the name of the load balancer
-n, --name <name>                              the name of the inbound NAT rule
-p, --protocol <protocol>                      the rule protocol [tcp,udp]
-f, --frontend-port <frontend-port>            the frontend port [0-65535]
-b, --backend-port <backend-port>              the backend port [0-65535]
-e, --enable-floating-ip <enable-floating-ip>  enable floating point ip [true,false]
-i, --frontend-ip <frontend-ip>                the name of the frontend ip configuration
-m, --vm-id <vm-id>                            the VM id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/virtualMachines/<vm-name>
-a, --vm-name <vm-name>                        the VM name.This VM must exist in the same resource group as the lb.
Please use vm-id if that is not the case.
this parameter will be ignored if --vm-id is specified
-s, --subscription <subscription>              the subscription identifier

network lb inbound-nat-rule set [options] <resource-group> <lb-name> <name>

Var olan bir gelen nat kuralını güncelleştirme. Aşağıdaki örnekte gelen dinleme bağlantı noktasını 80'den 81'e değiştirdik.

azure network lb inbound-nat-rule set -g group-1 -l mylb -n myinboundnat -p tcp -f 81 -b 8080 -i myfrontendip

info:    Executing command network lb inbound-nat-rule set
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/group-1/providers/Microsoft.Network/loadBalancers/mylb/inboundNatRules/myinboundnat
data:    Name:                      myinboundnat
data:    Type:                      Microsoft.Network/loadBalancers/inboundNatRules
data:    Provisioning state:        Succeeded
data:    Frontend IP Configuration: id=/subscriptions/###############################/resourceGroups/group-1/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend IP configuration
data:    Protocol                   Tcp
data:    Frontend port              81
data:    Backend port               8080
data:    Enable floating IP         false
info:    network lb inbound-nat-rule set command OK

Parametre seçenekleri:

-h, --help                                     output usage information
-v, --verbose                                  use verbose output
--json                                         use json output
-g, --resource-group <resource-group>          the name of the resource group
-l, --lb-name <lb-name>                        the name of the load balancer
-n, --name <name>                              the name of the inbound NAT rule
-p, --protocol <protocol>                      the rule protocol [tcp,udp]
-f, --frontend-port <frontend-port>            the frontend port [0-65535]
-b, --backend-port <backend-port>              the backend port [0-65535]
-e, --enable-floating-ip <enable-floating-ip>  enable floating point ip [true,false]
-i, --frontend-ip <frontend-ip>                the name of the frontend ip configuration
-m, --vm-id [vm-id]                            the VM id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/virtualMachines/<vm-name>
-a, --vm-name <vm-name>                        the VM name.
This virtual machine must exist in the same resource group as the lb.
Please use vm-id if that is not the case
-s, --subscription <subscription>              the subscription identifier

network lb inbound-nat-rule list [options] <resource-group> <lb-name>

Yük dengeleyici için tüm gelen nat kurallarını listeler.

azure network lb inbound-nat-rule list -g myresourcegroup -l mylb

info:    Executing command network lb inbound-nat-rule list
+ Looking up the load balancer "mylb"
data:    Name          Provisioning state  Protocol  Frontend port  Backend port  Enable floating IP  Idle timeout in minutes  Backend IP configuration
data:    ------------  ------------------  --------  -------------  ------------  ------------------  -----------------------  ---
---------------------
data:    myinboundnat  Succeeded           Tcp       81             8080          false               4

info:    network lb inbound-nat-rule list command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb inbound-nat-rule delete [options] <resource-group> <lb-name> <name>

Belirli bir kaynak grubunda yük dengeleyici için NAT kuralını siler.

azure network lb inbound-nat-rule delete -g myresourcegroup -l mylb -n myinboundnat

info:    Executing command network lb inbound-nat-rule delete
+ Looking up the load balancer "mylb"
Delete inbound NAT rule "myinboundnat?" [y/n] y
+ Updating load balancer "mylb"
info:    network lb inbound-nat-rule delete command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the inbound NAT rule
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

Genel IP adreslerini yönetme komutları

network public-ip create [options] <resource-group> <name> <location>

Genel ip kaynağı oluşturur. Genel IP kaynağını oluşturacak ve bir etki alanı adıyla ilişkilendirilecek.

azure network public-ip create -g myresourcegroup -n mytestpublicip1 -l eastus -d azureclitest -a "Dynamic"
info:    Executing command network public-ip create
+ Looking up the public ip "mytestpublicip1"
+ Creating public ip address "mytestpublicip1"
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip1
data:    Name:                 mytestpublicip1
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Dynamic
data:    Idle timeout:         4
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip create command OK

Parametre seçenekleri:

-h, --help                                   output usage information
-v, --verbose                                use verbose output
--json                                       use json output
-g, --resource-group <resource-group>        the name of the resource group
-n, --name <name>                            the name of the public ip
-l, --location <location>                    the location
-d, --domain-name-label <domain-name-label>  the domain name label.
This set DNS to <domain-name-label>.<location>.cloudapp.azure.com
-a, --allocation-method <allocation-method>  the allocation method [Static][Dynamic]
-i, --idletimeout <idletimeout>              the idle timeout in minutes
-f, --reverse-fqdn <reverse-fqdn>            the reverse fqdn
-t, --tags <tags>                            the list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
-s, --subscription <subscription>            the subscription identifier

network public-ip set [options] <resource-group> <name>

Mevcut bir genel IP kaynağının özelliklerini güncelleştirme. Aşağıdaki örnekte genel IP adresini Dinamik olan statik olarak değiştirdik.

azure network public-ip set -g group-1 -n mytestpublicip1 -d azureclitest -a "Static"
info:    Executing command network public-ip set
+ Looking up the public ip "mytestpublicip1"
+ Updating public ip address "mytestpublicip1"
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip1
data:    Name:                 mytestpublicip1
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Static
data:    Idle timeout:         4
data:    IP Address:           (static IP address)
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip set command OK

Parametre seçenekleri:

-h, --help                                   output usage information
-v, --verbose                                use verbose output
--json                                       use json output
-g, --resource-group <resource-group>        the name of the resource group
-n, --name <name>                            the name of the public ip
-d, --domain-name-label [domain-name-label]  the domain name label.
This set DNS to <domain-name-label>.<location>.cloudapp.azure.com
-a, --allocation-method <allocation-method>  the allocation method [Static][Dynamic]
-i, --idletimeout <idletimeout>              the idle timeout in minutes
-f, --reverse-fqdn [reverse-fqdn]            the reverse fqdn
-t, --tags <tags>                            the list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
--no-tags                                    remove all existing tags
-s, --subscription <subscription>            the subscription identifier

network public-ip list [options] <resource-group>

Bir kaynak grubu içindeki tüm genel IP kaynaklarını listeler.

azure network public-ip list -g myresourcegroup

info:    Executing command network public-ip list
+ Getting the public ip addresses
data:    Name             Location  Allocation  IP Address    Idle timeout  DNS Name
data:    ---------------  --------  ----------  ------------  ------------  -------------------------------------------
data:    mypubip5         westus    Dynamic                   4             "domain name".westus.cloudapp.azure.com
data:    myPublicIP       eastus    Dynamic                   4             "domain name".eastus.cloudapp.azure.com
data:    mytestpublicip   eastus    Dynamic                   4             "domain name".eastus.cloudapp.azure.com
data:    mytestpublicip1  eastus   Static (Static IP address) 4             azureclitest.eastus.cloudapp.azure.com

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-s, --subscription <subscription>      the subscription identifier

network public-ip show [options] <resource-group> <name>

Bir kaynak grubu içindeki genel ip kaynağının genel IP özelliklerini görüntüler.

azure network public-ip show -g myresourcegroup -n mytestpublicip

info:    Executing command network public-ip show
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip
data:    Name:                 mytestpublicip
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Static
data:    Idle timeout:         4
data:    IP Address:           (static IP address)
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip show command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the public IP
-s, --subscription <subscription>      the subscription identifier


network public-ip delete [options] <resource-group> <name>

Genel IP kaynağını siler.

azure network public-ip delete -g group-1 -n mypublicipname
info:    Executing command network public-ip delete
+ Looking up the public ip "mypublicipname"
Delete public ip address "mypublicipname"? [y/n] y
+ Deleting public ip address "mypublicipname"
info:    network public-ip delete command OK

Parametre seçenekleri:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the public IP
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

Ağ arabirimlerini yönetme komutları

network nic create [options] <resource-group> <name> <location>

Yük dengeciler için kullanılan veya Bir Sanal Makine ile ilişkilendirilen ağ arabirimi (NIC) adlı bir kaynak oluşturur.

azure network nic create -g myresourcegroup -l eastus -n testnic1 --subnet-name subnet-1 --subnet-vnet-name myvnet

info:    Executing command network nic create
+ Looking up the network interface "testnic1"
+ Looking up the subnet "subnet-1"
+ Creating network interface "testnic1"
+ Looking up the network interface "testnic1"
data:    Id:                     /subscriptions/c4a17ddf-aa84-491c-b6f9-b90d882299f7/resourceGroups/group-1/providers/Microsoft.Network/networkInterfaces/testnic1
data:    Name:                   testnic1
data:    Type:                   Microsoft.Network/networkInterfaces
data:    Location:               eastus
data:    Provisioning state:     Succeeded
data:    IP configurations:
data:       Name:                         NIC-config
data:       Provisioning state:           Succeeded
data:       Private IP address:           10.0.0.5
data:       Private IP Allocation Method: Dynamic
data:       Subnet:                       /subscriptions/c4a17ddf-aa84-491c-b6f9-b90d882299f7/resourceGroups/group-1/providers/Microsoft.Network/virtualNetworks/myVNET/subnets/Subnet-1

Parametre seçenekleri:

-h, --help                                                       output usage information
-v, --verbose                                                    use verbose output
--json                                                           use json output
-g, --resource-group <resource-group>                            the name of the resource group
-n, --name <name>                                                the name of the network interface
-l, --location <location>                                        the location
-w, --network-security-group-id <network-security-group-id>      the network security group identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/networkSecurityGroups/<nsg-name>
-o, --network-security-group-name <network-security-group-name>  the network security group name.
This network security group must exist in the same resource group as the nic.
Please use network-security-group-id if that is not the case.
-i, --public-ip-id <public-ip-id>                                the public IP identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/publicIPAddresses/<public-ip-name>
-p, --public-ip-name <public-ip-name>                            the public IP name.
This public ip must exist in the same resource group as the nic.
Please use public-ip-id if that is not the case.
-a, --private-ip-address <private-ip-address>                    the private IP address
-u, --subnet-id <subnet-id>                                      the subnet identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/virtualNetworks/<vnet-name>/subnets/<subnet-name>
--subnet-name <subnet-name>                                  the subnet name
-m, --subnet-vnet-name <subnet-vnet-name>                        the vnet name under which subnet-name exists
-t, --tags <tags>                                                the comma separated list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
-s, --subscription <subscription>                                the subscription identifier
data:
info:    network nic create command OK

network nic set [options] <resource-group> <name>

network nic list [options] <resource-group>
network nic show [options] <resource-group> <name>
network nic delete [options] <resource-group> <name>

Ağ güvenlik gruplarını yönetme komutları

network nsg create [options] <resource-group> <name> <location>
network nsg set [options] <resource-group> <name>
network nsg list [options] <resource-group>
network nsg show [options] <resource-group> <name>
network nsg delete [options] <resource-group> <name>

Ağ güvenlik grubu kurallarını yönetme komutları

network nsg rule create [options] <resource-group> <nsg-name> <name>
network nsg rule set [options] <resource-group> <nsg-name> <name>
network nsg rule list [options] <resource-group> <nsg-name>
network nsg rule show [options] <resource-group> <nsg-name> <name>
network nsg rule delete [options] <resource-group> <nsg-name> <name>

Traffic Manager profilini yönetme komutları

network traffic-manager profile create [options] <resource-group> <name>
network traffic-manager profile set [options] <resource-group> <name>
network traffic-manager profile list [options] <resource-group>
network traffic-manager profile show [options] <resource-group> <name>
network traffic-manager profile delete [options] <resource-group> <name>
network traffic-manager profile is-dns-available [options] <resource-group> <relative-dns-name>

Traffic Manager uç noktalarını yönetme komutları

network traffic-manager profile endpoint create [options] <resource-group> <profile-name> <name> <endpoint-location>
network traffic-manager profile endpoint set [options] <resource-group> <profile-name> <name>
network traffic-manager profile endpoint delete [options] <resource-group> <profile-name> <name>

Sanal ağ geçitlerini yönetme komutları

network gateway list [options] <resource-group>

Kaynak sağlayıcısı kayıtları

Şu anda kayıtlı olan sağlayıcıları Resource Manager

provider list [options]

İstenen sağlayıcı ad alanıyla ilgili ayrıntıları gösterme

provider show [options] <namespace>

Sağlayıcıyı aboneliğe kaydetme

provider register [options] <namespace>

Sağlayıcının abonelik kaydını iptal etme

provider unregister [options] <namespace>

Kaynaklar

Kaynak grubunda kaynak oluşturur

resource create [options] <resource-group> <name> <resource-type> <location> <api-version>

Kaynak grubunda herhangi bir şablon veya parametre olmadan bir kaynağı güncelleştirme

resource set [options] <resource-group> <name> <resource-type> <properties> <api-version>

Kaynakları listeler

resource list [options] [resource-group]

Kaynak grubu veya abonelik içinde bir kaynak alır

resource show [options] <resource-group> <name> <resource-type> <api-version>

Kaynak grubu içinde bir kaynağı siler

resource delete [options] <resource-group> <name> <resource-type> <api-version>

Azure rolleri

Kullanılabilir tüm rol tanımlarını al

role list [options]

Kullanılabilir rol tanımını al

role show [options] [name]

Rol atamanızı yönetme komutları

role assignment create [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]
role assignment list [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]
role assignment delete [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]

Depolama nesneleri

Hesaplarınızı yönetme Depolama komutları

storage account list [options]
storage account show [options] <name>
storage account create [options] <name>
storage account set [options] <name>
storage account delete [options] <name>

Hesap anahtarlarınızı Depolama komutları

storage account keys list [options] <name>
storage account keys renew [options] <name>

Bağlantı dizenizi Depolama komutları

storage account connectionstring show [options] <name>

Kapsayıcılarınızı yönetme Depolama komutları

storage container list [options] [prefix]
storage container show [options] [container]
storage container create [options] [container]
storage container delete [options] [container]
storage container set [options] [container]

Depolama kapsayıcınıza paylaşılan erişim imzalarını yönetme komutları

storage container sas create [options] [container] [permissions] [expiry]

Depolama kapsayıcının saklı erişim ilkelerini yönetme komutları

storage container policy create [options] [container] [name]
storage container policy show [options] [container] [name]
storage container policy list [options] [container]
storage container policy set [options] [container] [name]
storage container policy delete [options] [container] [name]

Depolama bloblarınızı yönetmeye yönelik komutlar

storage blob list [options] [container] [prefix]
storage blob show [options] [container] [blob]
storage blob delete [options] [container] [blob]
storage blob upload [options] [file] [container] [blob]
storage blob download [options] [container] [blob] [destination]

Blob kopyalama işlemlerinizi yönetme komutları

storage blob copy start [options] [sourceUri] [destContainer]
storage blob copy show [options] [container] [blob]
storage blob copy stop [options] [container] [blob] [copyid]

Depolama blobun paylaşılan erişim imzasını yönetme komutları

storage blob sas create [options] [container] [blob] [permissions] [expiry]

Depolama dosya paylaşımlarınızı yönetmeye yönelik komutlar

storage share create [options] [share]
storage share show [options] [share]
storage share delete [options] [share]
storage share list [options] [prefix]

Depolama dosyalarınızı yönetmeye yönelik komutlar

storage file list [options] [share] [path]
storage file delete [options] [share] [path]
storage file upload [options] [source] [share] [path]
storage file download [options] [share] [path] [destination]

Depolama dosya dizininizi yönetme komutları

storage directory create [options] [share] [path]
storage directory delete [options] [share] [path]

Depolama kuyruklarınızı yönetmeye yönelik komutlar

storage queue create [options] [queue]
storage queue list [options] [prefix]
storage queue show [options] [queue]
storage queue delete [options] [queue]

Depolama kuyruğunuzun paylaşılan erişim imzalarını yönetme komutları

storage queue sas create [options] [queue] [permissions] [expiry]

Depolama kuyruğunuzun saklı erişim ilkelerini yönetme komutları

storage queue policy create [options] [queue] [name]
storage queue policy show [options] [queue] [name]
storage queue policy list [options] [queue]
storage queue policy set [options] [queue] [name]
storage queue policy delete [options] [queue] [name]

Depolama günlük özelliklerinizi yönetme komutları

storage logging show [options]
storage logging set [options]

Depolama ölçümleri özelliklerinizi yönetmeye yönelik komutlar

storage metrics show [options]
storage metrics set [options]

Depolama tablolarınızı yönetme komutları

storage table create [options] [table]
storage table list [options] [prefix]
storage table show [options] [table]
storage table delete [options] [table]

Depolama tablonuzun paylaşılan erişim imzalarını yönetme komutları

storage table sas create [options] [table] [permissions] [expiry]

Depolama tablonuzun saklı erişim ilkelerini yönetme komutları

storage table policy create [options] [table] [name]
storage table policy show [options] [table] [name]
storage table policy list [options] [table]
storage table policy set [options] [table] [name]
storage table policy delete [options] [table] [name]

Etiketler

Etiket ekleme

tag create [options] <name> <value>

Tüm etiketi veya etiket değerini kaldır

tag delete [options] <name> <value>

Etiket bilgisini listeler

tag list [options]

Etiket al

tag show [options] [name]

Sanal Makineler

VM oluşturma

vm create [options] <resource-group> <name> <location> <os-type>

Varsayılan kaynaklarla VM oluşturma

vm quick-create [options] <resource-group> <name> <location> <os-type> <image-urn> <admin-username> <admin-password

İpucu

CLı sürüm 0,10 ' den başlayarak, bazı popüler Market görüntüleri için "UbuntuLTS" veya "Win2012R2Datacenter" image-urn gibi bir kısa ad sağlayabilirsiniz. Seçenekler için çalıştırın azure help vm quick-create . Ayrıca, sürüm 0,10 ' den itibaren, seçili bölgede varsa, azure vm quick-create Varsayılan olarak Premium depolama kullanır.

Bir hesap içindeki sanal makineleri listeleyin

vm list [options]

Bir kaynak grubu içinde bir sanal makine al

vm show [options] <resource-group> <name>

Kaynak grubu içindeki bir sanal makineyi silme

vm delete [options] <resource-group> <name>

Kaynak grubu içinde bir sanal makineyi kapatır

vm stop [options] <resource-group> <name>

Kaynak grubundaki bir sanal makineyi yeniden başlatma

vm restart [options] <resource-group> <name>

Bir kaynak grubu içinde bir sanal makine başlatma

vm start [options] <resource-group> <name>

Bir kaynak grubundaki bir sanal makineyi kapatır ve işlem kaynaklarını serbest bırakır

vm deallocate [options] <resource-group> <name>

Kullanılabilir sanal makine boyutlarını Listele

vm sizes [options]

VM 'yi işletim sistemi görüntüsü veya VM görüntüsü olarak yakalama

vm capture [options] <resource-group> <name> <vhd-name-prefix>

VM 'nin durumunu Genelleştirilmiş olarak ayarlayın

vm generalize [options] <resource-group> <name>

VM 'nin örnek görünümünü al

vm get-instance-view [options] <resource-group> <name>

Bir sanal makinede uzak masaüstü erişimini veya SSH ayarlarını sıfırlamanıza ve yönetici veya sudo yetkisi olan hesabın parolasını sıfırlamanıza olanak tanır

vm reset-access [options] <resource-group> <name>

VM 'yi yeni verilerle güncelleştirme

vm set [options] <resource-group> <name>

Sanal makine veri disklerinizi yönetme komutları

vm disk attach-new [options] <resource-group> <vm-name> <size-in-gb> [vhd-name]
vm disk detach [options] <resource-group> <vm-name> <lun>
vm disk attach [options] <resource-group> <vm-name> [vhd-url]

VM kaynak uzantılarını yönetmek için komutlar

vm extension set [options] <resource-group> <vm-name> <name> <publisher-name> <version>
vm extension get [options] <resource-group> <vm-name>

Docker sanal makinenizi yönetme komutları

vm docker create [options] <resource-group> <name> <location> <os-type>

VM görüntülerini yönetmeye yönelik komutlar

vm image list-publishers [options] <location>
vm image list-offers [options] <location> <publisher>
vm image list-skus [options] <location> <publisher> <offer>
vm image list [options] <location> <publisher> [offer] [sku]