az sf cluster
管理 Azure Service Fabric 叢集。
命令
az sf cluster create
建立新的 Azure Service Fabric 叢集。
az sf cluster create --resource-group
[--cert-out-folder --certificate-output-folder]
[--cert-subject-name --certificate-subject-name]
[--certificate-file]
[--certificate-password]
[--cluster-name]
[--cluster-size]
[--location]
[--os --vm-os {UbuntuServer1604, WindowsServer1709, WindowsServer1709withContainers, WindowsServer1803withContainers, WindowsServer1809withContainers, WindowsServer2012R2Datacenter, WindowsServer2016Datacenter, WindowsServer2016DatacenterwithContainers, WindowsServer2019Datacenter, WindowsServer2019DatacenterwithContainers}]
[--parameter-file]
[--secret-identifier]
[--template-file]
[--vault-name]
[--vault-rg]
[--vm-password]
[--vm-sku]
[--vm-user-name]
範例
使用本機下載的指定大小和自我簽署憑證建立叢集。
az sf cluster create -g group-name -c cluster1 -l westus --cluster-size 4 --vm-password Password#1234 --certificate-output-folder MyCertificates --certificate-subject-name cluster1
使用keyvault憑證和自定義範本來部署叢集。
az sf cluster create -g group-name -c cluster1 -l westus --template-file template.json \
--parameter-file parameter.json --secret-identifier https://{KeyVault}.vault.azure.net:443/secrets/{MyCertificate}
必要參數
指定資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
要建立之新憑證檔案的資料夾。
要建立之憑證的主體名稱。
主要叢集憑證的現有憑證檔案路徑。
憑證檔案的密碼。
如果未指定,請指定叢集的名稱會與資源組名相同。
叢集中的節點數目。 預設值為5個節點。
Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。
組成叢集之 VM 的作系統。
| 屬性 | 值 |
|---|---|
| 預設值: | WindowsServer2016Datacenter |
| 接受的值: | UbuntuServer1604, WindowsServer1709, WindowsServer1709withContainers, WindowsServer1803withContainers, WindowsServer1809withContainers, WindowsServer2012R2Datacenter, WindowsServer2016Datacenter, WindowsServer2016DatacenterwithContainers, WindowsServer2019Datacenter, WindowsServer2019DatacenterwithContainers |
範本參數檔案的路徑。
現有的 Azure 金鑰保存庫秘密 URL。
範本檔案的路徑。
Azure key Vault 名稱,如果沒有給出,它將是叢集資源群組名稱。
如果未指定金鑰保存庫資源組名,則為叢集資源組名。
Vm 的密碼。
VM Sku。
用於登入 Vm 的用戶名稱。 預設值為 adminuser。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az sf cluster list
列出叢集資源。
az sf cluster list [--resource-group]
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
資源組名。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az sf cluster show
取得 Service Fabric 叢集資源。
取得在指定資源群組中建立或正在建立的 Service Fabric 叢集資源。
az sf cluster show --cluster-name
--resource-group
必要參數
如果未指定,請指定叢集的名稱會與資源組名相同。
指定資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |