az functionapp vnet-integration
列出、添加和删除 functionapp 中的虚拟网络集成的方法。
命令
| 名称 | 说明 | 类型 | Status | 
|---|---|---|---|
| az functionapp vnet-integration add | 将区域虚拟网络集成添加到 functionapp。 | Core | GA | 
| az functionapp vnet-integration list | 列出 functionapp 上的虚拟网络集成。 | Core | GA | 
| az functionapp vnet-integration remove | 从 functionapp 中删除区域虚拟网络集成。 | Core | GA | 
az functionapp vnet-integration add
将区域虚拟网络集成添加到 functionapp。
如果不同资源组中有多个同名的 vnet,请使用 vnet 资源 ID 来指定要使用的 vnet。 如果使用 vnet 名称,则默认使用与 functionapp 相同的资源组中的 vnet。
az functionapp vnet-integration add --name
                                    --resource-group
                                    --subnet
                                    --vnet
                                    [--skip-delegation-check {false, true}]
                                    [--slot]示例
将区域虚拟网络集成添加到 functionapp
az functionapp vnet-integration add -g MyResourceGroup -n MyFunctionapp --vnet MyVnetName --subnet MySubnetName -s [slot]使用 vnet 资源 ID 将区域虚拟网络集成添加到 functionapp
az functionapp vnet-integration add -g MyResourceGroup -n MyFunctionapp --vnet '/subscriptions/[sub id]/resourceGroups/[MyResourceGroup]/providers/Microsoft.Network/virtualNetworks/[MyVnetName]' --subnet MySubnetName -s [slot]使用子网资源 ID 将区域虚拟网络集成添加到 functionapp
az functionapp vnet-integration add -g MyResourceGroup -n MyFunctionapp --vnet MyVnetName --subnet '/subscriptions/[sub id]/resourceGroups/[MyResourceGroup]/providers/Microsoft.Network/virtualNetworks/[MyVnetName]/subnets/MySubnetName' -s [slot]必需参数
函数应用的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
子网的名称或资源 ID。
VNet 的名称或资源 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
跳过检查你是否没有权限,或者 VNet 是否在另一个订阅中。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
| 接受的值: | false, true | 
槽的名称。 如果未指定,则默认为生产槽。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | 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 functionapp vnet-integration list
列出 functionapp 上的虚拟网络集成。
az functionapp vnet-integration list --name
                                     --resource-group
                                     [--slot]示例
列出 functionapp 上的虚拟网络集成
az functionapp vnet-integration list -g MyResourceGroup -n MyFunctionapp -s [slot]必需参数
函数应用的名称。
资源组的名称。 可以使用 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.
槽的名称。 如果未指定,则默认为生产槽。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | 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 functionapp vnet-integration remove
从 functionapp 中删除区域虚拟网络集成。
az functionapp vnet-integration remove --name
                                       --resource-group
                                       [--slot]示例
从 functionapp 中删除区域虚拟网络集成
az functionapp vnet-integration remove -g MyResourceGroup -n MyFunctionapp -s [slot]必需参数
函数应用的名称。
资源组的名称。 可以使用 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.
槽的名称。 如果未指定,则默认为生产槽。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 | 
|---|---|
| 默认值: | False | 
输出格式。
| 属性 | 值 | 
|---|---|
| 默认值: | json | 
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc | 
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 | 
|---|---|
| 默认值: | False |