diff --git a/docs/server/source/production-deployment-template/template-kubernetes-azure.rst b/docs/server/source/production-deployment-template/template-kubernetes-azure.rst index e8a3970e..bd937612 100644 --- a/docs/server/source/production-deployment-template/template-kubernetes-azure.rst +++ b/docs/server/source/production-deployment-template/template-kubernetes-azure.rst @@ -111,26 +111,15 @@ Finally, you can deploy an ACS using something like: --debug --output json .. Note:: - Please refer to `Azure documentation `_ - for a comprehensive list of options available for `az acs create`. - Please tune the following parameters as per your requirement: + The `Azure documentation `_ + has a list of all ``az acs create`` options. + You might prefer a smaller agent VM size, for example. + You can also get a list of the options using: - * Master count. + .. code:: bash - * Agent count. + $ az acs create --help - * Agent VM size. - - * **Optional**: Master storage profile. - - * **Optional**: Agent storage profile. - - -There are more options. For help understanding all the options, use the built-in help: - -.. code:: bash - - $ az acs create --help It takes a few minutes for all the resources to deploy. You can watch the progress in the `Azure Portal @@ -140,6 +129,43 @@ and click on the one you created to see all the resources in it. +Trouble with the Service Principal? Then Read This! +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If the ``az acs create`` command fails with an error message including the text, +"The Service Principal in ServicePrincipalProfile could not be validated", +then we found you can prevent that by creating a Service Principal ahead of time +and telling ``az acs create`` to use that one. (It's supposed to create one, +but sometimes that fails, I guess.) + +Create a new resource group, even if you created one before. They're free anyway: + +.. code:: bash + + $ az login + $ az group create --name \ + --location + +Note the ``id`` in the output. It looks like +``"/subscriptions/369284be-0104-421a-8488-1aeac0caecbb/resourceGroups/examplerg"``. +It can be copied into the next command. +Create a Service Principal using: + +.. code:: bash + + $ az ad sp create-for-rbac --role="Contributor" \ + --scopes= + +Note the ``appId`` and ``password``. +Put those in a new ``az acs create`` command like above, with two new options added: + +.. code:: bash + + $ az acs create ... \ + --service-principal \ + --client-secret + + .. _ssh-to-your-new-kubernetes-cluster-nodes: Optional: SSH to Your New Kubernetes Cluster Nodes