forked from Azure/acs-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
521 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,9 @@ Please follow these instructions before submitting a PR: | |
should deploy the relevant example cluster definitions to ensure you're not | ||
introducing any sort of regression. | ||
|
||
## Usage (Template Generation) | ||
## Usage | ||
|
||
### Generate Templates | ||
|
||
Usage is best demonstrated with an example: | ||
|
||
|
@@ -57,72 +59,6 @@ This produces a new directory inside `_output/` that contains an ARM template | |
for deploying Kubernetes into Azure. (In the case of Kubernetes, some additional | ||
needed assets are generated and placed in the output directory.) | ||
|
||
## Deployment Usage | ||
|
||
Generated templates can be deployed using | ||
[the Azure XPlat CLI (v0.10**.0** only)](https://github.com/Azure/azure-xplat-cli/releases/tag/v0.10.0-May2016), | ||
[the Azure CLI 2.0](https://github.com/Azure/azure-cli) or | ||
[Powershell](https://github.com/Azure/azure-powershell). | ||
|
||
### Deploying with Azure XPlat CLI | ||
|
||
**NOTE:** Some deployments will fail if certain versions of the Azure XPlat CLI are used. It's recommended that you use [Azure XPlat CLI 0.10**.0**](https://github.com/Azure/azure-xplat-cli/releases/tag/v0.10.0-May2016) until a new point release of `0.10.x` is available with the fix. | ||
|
||
```bash | ||
$ azure login | ||
|
||
$ azure account set "<SUBSCRIPTION NAME OR ID>" | ||
|
||
$ azure config mode arm | ||
|
||
$ azure group create \ | ||
--name="<RESOURCE_GROUP_NAME>" \ | ||
--location="<LOCATION>" | ||
|
||
$ azure group deployment create \ | ||
--name="<DEPLOYMENT NAME>" \ | ||
--resource-group="<RESOURCE_GROUP_NAME>" \ | ||
--template-file="./_output/<INSTANCE>/azuredeploy.json" \ | ||
--parameters-file="./_output/<INSTANCE>/azuredeploy.parameters.json" | ||
``` | ||
|
||
### Deploying with Azure CLI 2.0 | ||
Azure CLI 2.0 is actively improved, so please see [the Azure CLI 2.0 GitHub Repo](https://github.com/Azure/azure-cli) for the latest release and documentation. | ||
|
||
```bash | ||
$ az login | ||
|
||
$ az account set --subscription "<SUBSCRIPTION NAME OR ID>" | ||
|
||
$ az group create \ | ||
--name "<RESOURCE_GROUP_NAME>" \ | ||
--location "<LOCATION>" | ||
|
||
$ az group deployment create \ | ||
--name "<DEPLOYMENT NAME>" \ | ||
--resource-group "<RESOURCE_GROUP_NAME>" \ | ||
--template-file "./_output/<INSTANCE>/azuredeploy.json" \ | ||
--parameters "./_output/<INSTANCE>/azuredeploy.parameters.json" | ||
``` | ||
|
||
### Deploying with Powershell | ||
|
||
```powershell | ||
Add-AzureRmAccount | ||
Select-AzureRmSubscription -SubscriptionID <SUBSCRIPTION_ID> | ||
New-AzureRmResourceGroup ` | ||
-Name <RESOURCE_GROUP_NAME> ` | ||
-Location <LOCATION> | ||
New-AzureRmResourceGroupDeployment ` | ||
-Name <DEPLOYMENT_NAME> ` | ||
-ResourceGroupName <RESOURCE_GROUP_NAME> ` | ||
-TemplateFile _output\<INSTANCE>\azuredeploy.json ` | ||
-TemplateParameterFile _output\<INSTANCE>\azuredeploy.parameters.json | ||
``` | ||
|
||
## Code of conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.