To export a container app config, you just pass --output yaml and redirect the output to a file, which in this case is app-config.yaml.
az containerapp show \
--name $CONTAINER_APP_NAME \
--resource-group $RESOURCE_GROUP \
--output yaml > app-config.yaml
WARNING: The behavior of this command has been altered by the following extension: containerapp
app.config.yaml
id: '[REDACTED]'
identity:
principalId: '[REDACTED]'
tenantId: '[REDACTED]'
type: SystemAssigned
location: '[REDACTED]'
name: '[REDACTED]'
properties:
configuration:
activeRevisionsMode: Single
dapr: null
identitySettings: []
ingress:
additionalPortMappings: null
allowInsecure: false
clientCertificateMode: null
corsPolicy: null
customDomains: null
exposedPort: 0
external: true
fqdn: '[REDACTED]'
ipSecurityRestrictions: null
stickySessions: null
targetPort: 8080
targetPortHttpScheme: null
traffic:
- latestRevision: true
weight: 100
transport: Auto
maxInactiveRevisions: null
registries:
- identity: system
passwordSecretRef: ''
server: '[REDACTED]'
username: ''
revisionTransitionThreshold: null
runtime: null
secrets: null
service: null
targetLabel: ''
customDomainVerificationId: '[REDACTED]'
delegatedIdentities: []
environmentId: '[REDACTED]'
eventStreamEndpoint: '[REDACTED]'
latestReadyRevisionName: '[REDACTED]'
latestRevisionFqdn: '[REDACTED]'
latestRevisionName: '[REDACTED]'
managedEnvironmentId: '[REDACTED]'
outboundIpAddresses:
- '[REDACTED]'
patchingMode: Automatic
provisioningState: Succeeded
runningStatus: Running
template:
containers:
- env:
- name: AGENT_DEFAULT_DELAY_MS
value: '500'
image: '[REDACTED]'
imageType: ContainerImage
name: '[REDACTED]'
resources:
cpu: 0.5
ephemeralStorage: 2Gi
memory: 1Gi
customMetricsSettings: null
initContainers: null
revisionSuffix: ''
scale:
cooldownPeriod: 300
maxReplicas: 1
minReplicas: 1
pollingInterval: 30
rules: null
serviceBinds: null
terminationGracePeriodSeconds: null
volumes: null
workloadProfileName: Consumption
resourceGroup: '[REDACTED]'
systemData:
createdAt: '[REDACTED]'
createdBy: '[REDACTED]'
createdByType: User
lastModifiedAt: '[REDACTED]'
lastModifiedBy: '[REDACTED]'
lastModifiedByType: User
type: Microsoft.App/containerApps