1. Download config file from the Management Portal
Save the config file to the .kube folder under the user’s home directory %HOME%.kube .
For example: C:\Users{YourAccount}.kube .
2. Set up the system environment variable KUBECONFIG
Open System Properties . Click Environment Variables.
3. Under System Variables
If you don’t see any variable called KUBECONFIG , click New to create one. If you do have the variable, select the variable and click Edit .
4. Add or append the file path of the new config file.
Note that you need to enter the exact full path for the config. %HOME% will not work for this setting.
5. Verify the new config.
Type kubectl config view . You should see the new cluster name in the output.