Error of "AKS_CLUSTER_NAME=$(az deployment group show --resource-group rg-shipping-dronedelivery-eastus -n cluster-stamp --query properties.outputs.aksClusterName.value -o tsv)"

lili zhang 0 Reputation points
2025-08-10T23:51:08.9+00:00

Dear Sir/Madam,

I have cloned and am testing the MS reference implementation of "aks-fabrikam-dronedelivery".

According to the "05-aks-cluster.md" "Deploy the AKS Cluster"

......

  1. Deploy the cluster bicep from azure cli (option 1)

I ran the following:

"az deployment group create --resource-group rg-shipping-dronedelivery-eastus --template-file cluster-stamp.bicep --parameters ......"

then the command was consumed with the following warnings:

"cluster-stamp.bicep(430,5), (442,5), (454,5): warning bcp037: the property "eTag" is not allowed on objects of type "SavedSearchProperties" ......

cluster-stamp.bicep(656,5): warning bcp073: the property "maxAgentPools" is read-only. Expressions cannot be assigned to read-only properties. ......

Then I went to next section "06-gitops.md" "Place the cluster under GitOps management".

......

I ran from azure cli the following command:

"AKS_CLUSTER_NAME=$(az deployment group show --resource-group rg-shipping-dronedelivery-eastus -n cluster-stamp --query properties.outputs.aksClusterName.value -o tsv)"

and got the error message as the following:

ERROR: (DeploymentNotFound) Deployment 'cluster-stamp' could not be found.

Code: DeploymentNotFound

message: Deployment 'cluster-stamp' could not be found.

Please help me out with the problems!

Thanks!

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.