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>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
要创建的新证书文件的文件夹。
要创建的证书的使用者名称。
主群集证书的现有证书文件路径。
证书文件的密码。
指定群集的名称(如果未指定),则与资源组名称相同。
群集中的节点数。 默认值为 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/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az sf cluster list
列出群集资源。
az sf cluster list [--resource-group]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 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/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |