Use original code blocs

Open
#669 0 comments 0 reactions 1 assignee View on GitHub

@naman-msft is already working on this.

Since Mar 11, 2025.

Assessment

This issue has not been assessed yet.

Description

When converting an existing doc the agent should, unless it finds an error, use the same code block as in the original document. Failure to do this can result in a passing test, but incomplete configuration.

For example, from the original doc I had:

az aks create \
--resource-group ${RG_NAME} \
--name ${AKS_NAME} \
--location ${LOCATION} \
--tier standard \
--kubernetes-version ${K8S_VERSION} \
--os-sku AzureLinux \
--nodepool-name systempool \
--node-count 3 \
--zones 1 2 3 \
--load-balancer-sku standard \
--network-plugin azure \
--network-plugin-mode overlay \
--network-dataplane cilium \
--network-policy cilium \
--ssh-access disabled \
--enable-managed-identity \
--enable-acns \
--generate-ssh-keys

The generated doc gave me:

az aks create \
  --resource-group $RESOURCE_GROUP_NAME \
  --name $CLUSTER_NAME \
  --node-count 1 \
  --generate-ssh-keys \
  --enable-managed-identity \
  --enable-aad \
  --disable-local-accounts \
  --kubernetes-version $AKS_VERSION  

This created a valid AKS cluster but subsequent commands didn't work.

Dominant language
Python
Stars
13
Forks
26
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MicrosoftDocs/executable-docs

All issues in MicrosoftDocs/executable-docs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.