Share via


az mobile-network sim

注意

此參考是 Azure CLI 行動網路延伸模組的一部分(2.55.0 版或更高版本)。 擴充功能會在您第一次執行 az mobile-network sim 命令時自動安裝。 深入了解擴充功能。

管理 sim。

命令

名稱 Description 類型 狀態
az mobile-network sim create

建立 SIM 卡。

副檔名 GA
az mobile-network sim delete

刪除指定的 SIM 卡。

副檔名 GA
az mobile-network sim group

管理 sim 群組。

副檔名 GA
az mobile-network sim group bulk-delete-sims

從 SIM 群組大量刪除 SIM。

副檔名 GA
az mobile-network sim group bulk-upload-sims

將 SIM 大量上傳至 SIM 群組。

副檔名 GA
az mobile-network sim group create

建立 SIM 群組。

副檔名 GA
az mobile-network sim group delete

刪除指定的 SIM 群組。

副檔名 GA
az mobile-network sim group list

列出訂用帳戶中的所有 SIM 群組。

副檔名 GA
az mobile-network sim group show

取得指定 SIM 群組的相關信息。

副檔名 GA
az mobile-network sim group update

更新 SIM 群組。

副檔名 GA
az mobile-network sim group wait

將 CLI 置於等候狀態,直到符合條件為止。

副檔名 GA
az mobile-network sim list

列出 SIM 群組中的所有 SIM。

副檔名 GA
az mobile-network sim policy

管理 sim 原則。

副檔名 GA
az mobile-network sim policy create

建立 SIM 卡原則。

副檔名 GA
az mobile-network sim policy delete

刪除指定的 SIM 卡原則。

副檔名 GA
az mobile-network sim policy list

列出行動網路中的所有 SIM 卡原則。

副檔名 GA
az mobile-network sim policy show

取得指定 SIM 原則的相關信息。

副檔名 GA
az mobile-network sim policy update

更新 SIM 卡原則。

副檔名 GA
az mobile-network sim policy wait

將 CLI 置於等候狀態,直到符合條件為止。

副檔名 GA
az mobile-network sim show

取得指定 SIM 卡的相關信息。

副檔名 GA
az mobile-network sim wait

將 CLI 置於等候狀態,直到符合條件為止。

副檔名 GA

az mobile-network sim create

建立 SIM 卡。

az mobile-network sim create --international-msi
                             --name
                             --resource-group
                             --sim-group-name
                             [--authentication-key]
                             [--device-type]
                             [--icc-id]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--operator-key-code]
                             [--sim-policy]
                             [--static-ip-config]

範例

建立 sim

az mobile-network sim create -g rg --sim-group-name sim-group-name -n sim-name --international-msi 0000000000 --operator-key-code 00000000000000000000000000000000 --authentication-key 00000000000000000000000000000000

必要參數

--international-msi

SIM 卡的國際行動使用者身分識別(IMSI)。

--name --sim-name -n

SIM 的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--sim-group-name

SIM 群組的名稱。

選擇性參數

--authentication-key

SIM 的 Ki 值。

--device-type

選擇性自由格式文字欄位,可用來錄製此 SIM 卡與裝置類型相關聯的裝置類型,例如「視訊相機」。 Azure 入口網站 允許根據此值來分組和篩選 SIM。

--icc-id

SIM 卡的積體電路卡標識碼(ICCID)。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--operator-key-code

SIM 卡的 Opc 值。

--sim-policy

此 SIM 卡所使用的 SIM 卡原則。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--static-ip-config

指派給此 SIM 卡的靜態 IP 位址清單。 每個地址都會在定義的網路範圍指派,由 {attached data network, slice} 組成。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az mobile-network sim delete

刪除指定的 SIM 卡。

az mobile-network sim delete [--ids]
                             [--name]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--resource-group]
                             [--sim-group-name]
                             [--subscription]
                             [--yes]

範例

刪除 sim

az mobile-network sim delete -g rg -n sim-name --sim-group-name sim-group-name -y

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--name --sim-name -n

SIM 的名稱。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--sim-group-name

SIM 群組的名稱。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az mobile-network sim list

列出 SIM 群組中的所有 SIM。

az mobile-network sim list --resource-group
                           --sim-group-name
                           [--max-items]
                           [--next-token]

範例

依資源群組列出 sims

az mobile-network sim list -g rg --sim-group-name sim-group-name

必要參數

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--sim-group-name

SIM 群組的名稱。

選擇性參數

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的自變數中 --next-token 提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az mobile-network sim show

取得指定 SIM 卡的相關信息。

az mobile-network sim show [--ids]
                           [--name]
                           [--resource-group]
                           [--sim-group-name]
                           [--subscription]

範例

顯示 sim

az mobile-network sim show -g rg -n sim-name --sim-group-name sim-group-name

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--name --sim-name -n

SIM 的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--sim-group-name

SIM 群組的名稱。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az mobile-network sim wait

將 CLI 置於等候狀態,直到符合條件為止。

az mobile-network sim wait [--created]
                           [--custom]
                           [--deleted]
                           [--exists]
                           [--ids]
                           [--interval]
                           [--name]
                           [--resource-group]
                           [--sim-group-name]
                           [--subscription]
                           [--timeout]
                           [--updated]

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

一或多個資源識別碼 (以空格分隔)。 它應該是完整資源識別碼,其中包含「資源標識碼」引數的所有資訊。 您應該提供 --ids 或其他「資源識別碼」引數。

--interval

輪詢間隔以秒為單位。

預設值: 30
--name --sim-name -n

SIM 的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--sim-group-name

SIM 群組的名稱。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。