az apr remote
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 remote command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage upstream remotes that repositories sync from.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az apr remote create |
Create a remote. |
Extension | Preview |
| az apr remote delete |
Delete a remote. |
Extension | Preview |
| az apr remote list |
List remotes. |
Extension | Preview |
| az apr remote show |
Show details for a remote. |
Extension | Preview |
| az apr remote update |
Update a remote. |
Extension | Preview |
az apr remote create
Command group 'apr remote' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a remote.
az apr remote create --name
--registry
--type {apt, yum}
--url
[--acquire-policy-token]
[--architectures]
[--change-reference]
[--components]
[--no-wait]
[--policy {immediate, on-demand, streamed}]
[--releases]
[--resource-group]
Examples
Create an apt remote syncing selected distributions and components.
az apr remote create -g myrg -r myregistry -n myremote --type apt --url http://archive.ubuntu.com/ubuntu --releases jammy,focal --components main,universe
Create a yum remote.
az apr remote create -g myrg -r myregistry -n myremote --type yum --url https://packages.microsoft.com/rhel/9/prod --policy on-demand
Required Parameters
Name or ID of the remote.
Name of the parent APR registry.
Remote type.
| Property | Value |
|---|---|
| Accepted values: | apt, yum |
Upstream URL to sync from.
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 |
Comma-separated architectures to sync (apt remotes only).
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated components to sync (apt remotes only).
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
How packages are fetched from upstream. immediate downloads packages during sync; on-demand downloads and stores each package when first requested; streamed fetches each package on every request without storing it.
| Property | Value |
|---|---|
| Accepted values: | immediate, on-demand, streamed |
Comma-separated upstream releases to sync (apt remotes only).
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 remote delete
Command group 'apr remote' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a remote.
az apr remote delete --name
--registry
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--resource-group]
[--yes]
Examples
Delete a remote by name.
az apr remote delete -g myrg -r myregistry -n myremote
Required Parameters
Name or ID of the remote.
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 remote list
Command group 'apr remote' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List remotes.
az apr remote list --registry
[--limit]
[--resource-group]
Examples
List all remotes in a registry.
az apr remote list -g myrg -r myregistry
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 remotes to return. Omit to return all.
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 remote show
Command group 'apr remote' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show details for a remote.
az apr remote show --name
--registry
[--resource-group]
Examples
Show a remote by name.
az apr remote show -g myrg -r myregistry -n myremote
Required Parameters
Name or ID of the remote.
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 remote update
Command group 'apr remote' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a remote.
az apr remote update --name
--registry
[--acquire-policy-token]
[--architectures]
[--change-reference]
[--components]
[--no-wait]
[--policy {immediate, on-demand, streamed}]
[--releases]
[--resource-group]
[--url]
Examples
Change the upstream URL a remote syncs from.
az apr remote update -g myrg -r myregistry -n myremote --url http://archive.ubuntu.com/ubuntu
Download packages only when clients request them.
az apr remote update -g myrg -r myregistry -n myremote --policy on-demand
Required Parameters
Name or ID of the remote.
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 |
Comma-separated architectures to sync (apt remotes only).
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated components to sync (apt remotes only).
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
How packages are fetched from upstream. immediate downloads packages during sync; on-demand downloads and stores each package when first requested; streamed fetches each package on every request without storing it.
| Property | Value |
|---|---|
| Accepted values: | immediate, on-demand, streamed |
Comma-separated upstream releases to sync (apt remotes only).
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Upstream URL to sync from.
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 |