az afd origin
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage origins within the specified origin group.
Origins are the application servers where Front Door will route your client requests. Utilize any publicly accessible application server, including App Service, Traffic Manager, Private Link, and many others.
Commands
Name | Description | Type | Status |
---|---|---|---|
az afd origin create |
Create an AFD origin. |
Core | Preview |
az afd origin delete |
Deletes an existing origin within an origin group. |
Core | Preview |
az afd origin list |
Lists all of the existing origins within an origin group. |
Core | Preview |
az afd origin show |
Gets an existing origin within an origin group. |
Core | Preview |
az afd origin update |
Update the settings of the specified AFD origin. |
Core | Preview |
az afd origin create
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create an AFD origin.
az afd origin create --enabled-state {Disabled, Enabled}
--host-name
--origin-group-name
--origin-name
--profile-name
--resource-group
[--enable-private-link {false, true}]
[--enforce-certificate-name-check {false, true}]
[--http-port]
[--https-port]
[--origin-host-header]
[--priority]
[--private-link-location]
[--private-link-request-message]
[--private-link-resource]
[--private-link-sub-resource-type]
[--weight]
Examples
Create an regular origin
az afd origin create -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup --origin-name origin1 --origin-host-header example.contoso.com --priority 1 --weight 500 --enabled-state Enabled --http-port 80 --https-port 443
Create a private link origin
az afd origin create -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup --origin-name origin1 --origin-host-header example.contoso.com --priority 1 --weight 500 --enabled-state Enabled --http-port 80 --https-port 443 --private-link-resource /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group/providers/Microsoft.Storage/storageAccounts/plstest --private-link-location EastUS --private-link-request-message 'Please approve this request' --private-link-sub-resource-type table
Required Parameters
Whether to enable this origin.
The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in a origin group.
Name of the origin group which is unique within the endpoint.
Name of the origin.
Name of the CDN profile which is unique within the resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Indicates whether private link is enanbled on that origin.
"Whether to enable certificate name check at origin level.
The port used for http requests to the origin.
The port used for https requests to the origin.
The Host header to send for requests to this origin. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between 1 and 5.
The location of origin that will be connected to using the private link.
The message that is shown to the approver of the private link request.
The resource ID of the origin that will be connected to using the private link.
The sub-resource type of the origin that will be connected to using the private link.You can use "az network private-link-resource list" to obtain the supported sub-resource types.
Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az afd origin delete
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Deletes an existing origin within an origin group.
az afd origin delete [--ids]
[--origin-group-name]
[--origin-name]
[--profile-name]
[--resource-group]
[--subscription]
[--yes]
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the origin group which is unique within the endpoint.
Name of the origin.
Name of the CDN profile which is unique within the resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az afd origin list
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Lists all of the existing origins within an origin group.
az afd origin list --origin-group-name
--profile-name
--resource-group
Required Parameters
Name of the origin group which is unique within the endpoint.
Name of the CDN profile which is unique within the resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az afd origin show
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Gets an existing origin within an origin group.
az afd origin show [--ids]
[--origin-group-name]
[--origin-name]
[--profile-name]
[--resource-group]
[--subscription]
Optional Parameters
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the origin group which is unique within the endpoint.
Name of the origin.
Name of the CDN profile which is unique within the resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az afd origin update
Command group 'afd' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update the settings of the specified AFD origin.
az afd origin update [--enable-private-link {false, true}]
[--enabled-state {Disabled, Enabled}]
[--enforce-certificate-name-check {false, true}]
[--host-name]
[--http-port]
[--https-port]
[--ids]
[--origin-group-name]
[--origin-host-header]
[--origin-name]
[--priority]
[--private-link-location]
[--private-link-request-message]
[--private-link-resource]
[--private-link-sub-resource-type]
[--profile-name]
[--resource-group]
[--subscription]
[--weight]
Examples
Update the host header and priority of the specified origin.
az afd origin update -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup --origin-name origin1 --origin-host-header example.contoso.com --priority 3
Disable private link of the origin.
az afd origin update -g group --host-name example.contoso.com --profile-name profile --origin-group-name originGroup --origin-name origin1 --enable-private-link False
Optional Parameters
Indicates whether private link is enanbled on that origin.
Whether to enable this origin.
"Whether to enable certificate name check at origin level.
The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in a origin group.
The port used for http requests to the origin.
The port used for https requests to the origin.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of the origin group which is unique within the endpoint.
The Host header to send for requests to this origin. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
Name of the origin.
Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy. Must be between 1 and 5.
The location of origin that will be connected to using the private link.
The message that is shown to the approver of the private link request.
The resource ID of the origin that will be connected to using the private link.
The sub-resource type of the origin that will be connected to using the private link.You can use "az network private-link-resource list" to obtain the supported sub-resource types.
Name of the CDN profile which is unique within the resource group.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Weight of the origin in given origin group for load balancing. Must be between 1 and 1000.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Feedback
Submit and view feedback for