az storage account network-rule

Zarządzanie regułami sieciowymi.

Polecenia

az storage account network-rule add

Dodaj regułę sieci.

az storage account network-rule list

Wyświetlanie listy reguł sieciowych.

az storage account network-rule remove

Usuń regułę sieci.

az storage account network-rule add

Dodaj regułę sieci.

Reguły można utworzyć dla adresu IPv4, zakresu adresów (format CIDR) lub podsieci sieci wirtualnej.

az storage account network-rule add --account-name
                                    [--action]
                                    [--ip-address]
                                    [--resource-group]
                                    [--resource-id]
                                    [--subnet]
                                    [--tenant-id]
                                    [--vnet-name]

Przykłady

Utwórz regułę zezwalaną na określony zakres adresów.

az storage account network-rule add -g myRg --account-name mystorageaccount --ip-address 23.45.1.0/24

Utwórz regułę zezwalaną na dostęp do podsieci.

az storage account network-rule add -g myRg --account-name mystorageaccount --vnet-name myvnet --subnet mysubnet

Utwórz regułę zezwalaną na dostęp do podsieci w innej grupie zasobów.

az storage account network-rule add -g myRg --account-name mystorageaccount  --subnet $subnetId

Parametry wymagane

--account-name -n

Nazwa konta magazynu.

Parametry opcjonalne

--action

Akcja reguły sieci wirtualnej. Możliwa wartość to Zezwalaj.

wartość domyślna: Allow
--ip-address

Adres IPv4 lub zakres CIDR.

--resource-group -g

Nazwa grupy zasobów. Grupę domyślną można skonfigurować przy użyciu polecenia az configure --defaults group=<name>.

--resource-id

Identyfikator zasobu do dodania w regule sieciowej.

--subnet

Nazwa lub identyfikator podsieci. Jeśli podano nazwę, --vnet-name należy podać.

--tenant-id

Identyfikator dzierżawy do dodania w regule sieciowej.

--vnet-name

Nazwa sieci wirtualnej.

az storage account network-rule list

Wyświetlanie listy reguł sieciowych.

az storage account network-rule list --account-name
                                     [--resource-group]

Przykłady

Wyświetlanie listy reguł sieciowych. (automatycznie wygenerowane)

az storage account network-rule list --account-name MyAccount --resource-group MyResourceGroup

Parametry wymagane

--account-name -n

Nazwa konta magazynu.

Parametry opcjonalne

--resource-group -g

Nazwa grupy zasobów. Grupę domyślną można skonfigurować przy użyciu polecenia az configure --defaults group=<name>.

az storage account network-rule remove

Usuń regułę sieci.

az storage account network-rule remove --account-name
                                       [--ip-address]
                                       [--resource-group]
                                       [--resource-id]
                                       [--subnet]
                                       [--tenant-id]
                                       [--vnet-name]

Przykłady

Usuń regułę sieci. (automatycznie wygenerowane)

az storage account network-rule remove --account-name MyAccount --resource-group MyResourceGroup --subnet MySubnetID

Usuń regułę sieci. (automatycznie wygenerowane)

az storage account network-rule remove --account-name MyAccount --ip-address 23.45.1.0/24 --resource-group MyResourceGroup

Parametry wymagane

--account-name -n

Nazwa konta magazynu.

Parametry opcjonalne

--ip-address

Adres IPv4 lub zakres CIDR.

--resource-group -g

Nazwa grupy zasobów. Grupę domyślną można skonfigurować przy użyciu polecenia az configure --defaults group=<name>.

--resource-id

Identyfikator zasobu do dodania w regule sieciowej.

--subnet

Nazwa lub identyfikator podsieci. Jeśli podano nazwę, --vnet-name należy podać.

--tenant-id

Identyfikator dzierżawy do dodania w regule sieciowej.

--vnet-name

Nazwa sieci wirtualnej.