az apr distro
Note
This reference is part of the apr extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an az apr distro command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage distributions that serve a repository's content.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az apr distro create |
Create a distribution. |
Extension | Preview |
| az apr distro delete |
Delete a distribution. |
Extension | Preview |
| az apr distro list |
List distributions. |
Extension | Preview |
| az apr distro show |
Show details for a distribution. |
Extension | Preview |
| az apr distro update |
Update a distribution. |
Extension | Preview |
az apr distro create
Command group 'apr distro' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a distribution.
az apr distro create --base-path
--name
--registry
--type {apt, file, yum}
[--acquire-policy-token]
[--change-reference]
[--hidden {false, true}]
[--no-wait]
[--publication]
[--repository]
[--resource-group]
Examples
Create an apt distribution serving a repository.
az apr distro create -g myrg -r myregistry -n mydistro --type apt --base-path dists/stable --repository myrepo
Required Parameters
Base path the distribution is served at.
Name or ID of the distribution.
Name of the parent APR registry.
Distribution type.
| Property | Value |
|---|---|
| Accepted values: | apt, file, yum |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Mark the distribution as hidden.
| Property | Value |
|---|---|
| Accepted values: | false, true |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
ID of a specific publication to serve as a fixed snapshot. Cannot be used with --repository.
Name or ID of the repository to serve. The distribution follows the repository's latest publication automatically. Cannot be used with --publication.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az apr distro delete
Command group 'apr distro' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a distribution.
az apr distro delete --name
--registry
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--resource-group]
[--yes]
Examples
Delete a distribution by name.
az apr distro delete -g myrg -r myregistry -n mydistro
Required Parameters
Name or ID of the distribution.
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az apr distro list
Command group 'apr distro' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List distributions.
az apr distro list --registry
[--limit]
[--repository]
[--resource-group]
Examples
List all distributions in a registry.
az apr distro list -g myrg -r myregistry
List distributions serving a given repository.
az apr distro list -g myrg -r myregistry --repository myrepo
Required Parameters
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Max number of distributions to return. Omit to return all.
Name or ID of a repository to filter distributions by.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az apr distro show
Command group 'apr distro' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show details for a distribution.
az apr distro show --name
--registry
[--resource-group]
Examples
Show a distribution by name.
az apr distro show -g myrg -r myregistry -n mydistro
Required Parameters
Name or ID of the distribution.
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az apr distro update
Command group 'apr distro' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a distribution.
az apr distro update --name
--registry
[--acquire-policy-token]
[--base-path]
[--change-reference]
[--hidden {false, true}]
[--no-wait]
[--publication]
[--repository]
[--resource-group]
Examples
Change the base path a distribution is served at.
az apr distro update -g myrg -r myregistry -n mydistro --base-path dists/next
Required Parameters
Name or ID of the distribution.
Name of the parent APR registry.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Base path the distribution is served at.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Mark the distribution as hidden.
| Property | Value |
|---|---|
| Accepted values: | false, true |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
ID of a specific publication to serve as a fixed snapshot. Cannot be used with --repository.
Name or ID of the repository to serve. The distribution follows the repository's latest publication automatically. Cannot be used with --publication.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |