az apr package

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 package command. Learn more about extensions.

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Upload and inspect packages.

Commands

Name Description Type Status
az apr package deb

Manage deb packages.

Extension Preview
az apr package deb list

List deb packages.

Extension Preview
az apr package deb show

Show details for a package.

Extension Preview
az apr package debsrc

Manage deb source packages.

Extension Preview
az apr package debsrc list

List deb source packages.

Extension Preview
az apr package debsrc show

Show details for a package.

Extension Preview
az apr package file

Manage file packages.

Extension Preview
az apr package file list

List file packages.

Extension Preview
az apr package file show

Show details for a package.

Extension Preview
az apr package rpm

Manage rpm packages.

Extension Preview
az apr package rpm list

List rpm packages.

Extension Preview
az apr package rpm show

Show details for a package.

Extension Preview
az apr package upload

Upload a package.

Extension Preview

az apr package upload

Preview

Command group 'apr package' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Upload a package.

az apr package upload --file
                      --registry
                      [--acquire-policy-token]
                      [--change-reference]
                      [--component]
                      [--no-wait]
                      [--relative-path]
                      [--release]
                      [--repository]
                      [--resource-group]
                      [--type {deb, file, rpm}]

Examples

Upload a package without adding it to a repository.

az apr package upload -g myrg -r myregistry --file ./my-package.deb

Upload a deb package to a repository.

az apr package upload -g myrg -r myregistry --repository myrepo         --release jammy --file ./my-package.deb

Upload a deb package to a component of an apt repository.

az apr package upload -g myrg -r myregistry --repository myrepo         --release jammy --component contrib --file ./my-package.deb

Upload an RPM package to a repository.

az apr package upload -g myrg -r myregistry --repository myrepo         --file ./my-package.rpm

Upload a file package.

az apr package upload -g myrg -r myregistry --repository myrepo         --file ./settings --type file

Required Parameters

--file

Path to the package file to upload.

--registry -r

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--component

Release component for a deb package added to an apt repository.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--relative-path

Path to store a file package at.

--release

Release name or ID for a deb package added to an apt repository.

--repository

Name or ID of the target repository. Omit to upload without adding it to a repository.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--type -t

Package type. Omit for .deb and .rpm files. Use --type file for arbitrary files.

Property Value
Accepted values: deb, file, rpm
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False