az apr publication

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

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

View and delete publications.

Commands

Name Description Type Status
az apr publication delete

Delete a publication.

Extension Preview
az apr publication list

List publications.

Extension Preview
az apr publication show

Show details for a publication.

Extension Preview

az apr publication delete

Preview

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

Delete a publication.

az apr publication delete --id
                          --registry
                          [--acquire-policy-token]
                          [--change-reference]
                          [--no-wait]
                          [--resource-group]
                          [--yes]

Examples

Delete a publication by id.

az apr publication delete -g myrg -r myregistry --id mypublicationid

Required Parameters

--id

Publication id.

--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
--no-wait

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

Property Value
Default value: False
--resource-group -g

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

--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
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

az apr publication list

Preview

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

List publications.

az apr publication list --registry
                        [--limit]
                        [--repository]
                        [--resource-group]

Examples

List all publications in a registry.

az apr publication list -g myrg -r myregistry

List publications for a given repository.

az apr publication list -g myrg -r myregistry --repository myrepo

Required Parameters

--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.

--limit

Max number of publications to return. Omit to return all.

--repository

Filter publications by repository (Name or ID).

--resource-group -g

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

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

az apr publication show

Preview

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

Show details for a publication.

az apr publication show --id
                        --registry
                        [--resource-group]

Examples

Show a publication by id.

az apr publication show -g myrg -r myregistry --id mypublicationid

Required Parameters

--id

Publication id.

--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.

--resource-group -g

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

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