Share via

how to install arcnetworking extension in Azure arc enabled kubernetes cluster

Jaspreet Kaur 0 Reputation points
2024-07-16T21:39:45.3933333+00:00

Everytime I install arcnetworking extension, I fall into following error. If I provide the k8sRuntimeFpaObjectId argument then it says unrecognized arguments: --k8sRuntimeFpaObjectId

`(ExtensionOperationFailed) The extension operation failed with the following error: Error: [ InnerError: [Helm installation failed : Unable to render the Helm chart with the provided config settings and config protected settings : Recommendation Please check if the values provided to the config settings and the config protected settings are valid for this extension type : InnerError [execution error at (arcnetworking/templates/config.yaml:56:13): k8sRuntimeFpaObjectId parameter is required]]] occurred while doing the operation : [Create] on the config, For general troubleshooting visit: https://aka.ms/k8s-extensions-TSG, For more application specific troubleshooting visit: please reach out to Microsoft tech care if you need help with debugging the problems with your extension resource.

Code: ExtensionOperationFailed

Message: The extension operation failed with the following error: Error: [ InnerError: [Helm installation failed : Unable to render the Helm chart with the provided config settings and config protected settings : Recommendation Please check if the values provided to the config settings and the config protected settings are valid for this extension type : InnerError [execution error at (arcnetworking/templates/config.yaml:56:13): k8sRuntimeFpaObjectId parameter is required]]] occurred while doing the operation : [Create] on the config, For general troubleshooting visit: https://aka.ms/k8s-extensions-TSG, For more application specific troubleshooting visit: please reach out to Microsoft tech care if you need help with debugging the problems with your extension resource.`

Azure Arc
Azure Arc

A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 41,386 Reputation points MVP Volunteer Moderator
    2026-04-23T18:38:16.11+00:00

    Hello !

    Thank you for posting on MS Learn Q&A.

    The issue is that k8sRuntimeFpaObjectId is not a top-level Azure CLI argument. It must be passed as an extension config setting either through --config-file / --config-settings-file or as key=value via --config-settings. The az k8s-extension create command supports config settings files and if you look into the doc below k8sRuntimeFpaObjectId being supplied inside config.json not as --k8sRuntimeFpaObjectId.

    https://learn.microsoft.com/en-us/cli/azure/k8s-extension?view=azure-cli-latest

    You should do like below :

    az extension add --upgrade --name connectedk8s
    az extension add --upgrade --name k8s-extension
    

    I recommend that you use the latest Azure CLI with the latest connectedk8s and k8s-extension extensions before creating Arc Kubernetes extensions.

    Then get the object ID and place it in a config file:

    objID=$(az ad sp list --filter "appId eq '<app_id>'" --query "[].id" -o tsv)
    
    {
      "k8sRuntimeFpaObjectId": "<object-id>"
    }
    

    And install like this:

    az k8s-extension create \
      --cluster-name <clusterName> \
      --resource-group <rgName> \
      --cluster-type connectedClusters \
      --extension-type microsoft.arcnetworking \
      --name arcnetworking \
      --config-file config.json
    
    

    You can also pass it inline instead of using a file:

    az k8s-extension create \
      --cluster-name <clusterName> \
      --resource-group <rgName> \
      --cluster-type connectedClusters \
      --extension-type microsoft.arcnetworking \
      --name arcnetworking \
      --config-settings k8sRuntimeFpaObjectId=<object-id>
    

    The reason your 2nd attempt fails is that --k8sRuntimeFpaObjectId is not a recognized CLI parameter for az k8s-extension createthe command only accepts generic config inputs such as --config-settings and --config-file.

    0 comments No comments

Your answer

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