Skip to content
Permalink
Browse files

deploy

  • Loading branch information...
mbcrump committed Jun 14, 2019
1 parent 382d454 commit 785f1fa908a3ca51c8949ed60738c8cc5ad9a7d8
BIN +0 Bytes (100%) .DS_Store
Binary file not shown.
BIN +0 Bytes (100%) .vuepress/.DS_Store
Binary file not shown.
BIN +0 Bytes (100%) .vuepress/public/.DS_Store
Binary file not shown.
@@ -10,6 +10,8 @@ Welcome to Azure Tips and Tricks, this site is a special collection of over 180+
::: tip What's New?
:calendar: Check out the **Recently Added** item on the left sidebar :point_left:for the latest tips and tricks!

:fire: Checkout our new Azure Developer page at [azure.com/developer](https://azure.com/developer?WT.mc_id=azure-azuredevtips-micrum).

:punch: that :star: button on the official [GitHub repo](https://github.com/Microsoft/AzureTipsAndTricks/) to stay up to date.
:::

@@ -8,6 +8,9 @@ date: 2019-06-06
---

::: tip

:fire: Checkout our new Azure Developer page at [azure.com/developer](https://azure.com/developer?WT.mc_id=azure-azuredevtips-micrum).

:bulb: Learn more : [How to create custom VM images in Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/build-image-with-packer?WT.mc_id=docs-azuredevtips-micrum).
:::

@@ -156,7 +159,7 @@ ManagedImageLocation: eastus
```
It takes a few minutes for Packer to build the VM, run the provisioners, and finally to clean up the deployment.

### 6. Create a VM from the Custom Image
#### 6. Create a VM from the Custom Image

Now that our custom image is ready, we need to create a VM from the custom image with [az vm create](https://docs.microsoft.com/en-us/cli/azure/vm). Specify the image you created with the --image parameter. The following example creates a VM named myVM from myPackerImage and generates SSH keys if they do not already exist:

@@ -178,7 +181,7 @@ To allow web traffic to reach your VM, open port 80 from the Internet with
[az vm open-port](https://docs.microsoft.com/en-us/cli/azure/vm)
--resource-group myResourceGroup --name myVM --port 80

### 7. Test your VM and NGINX web server
#### 7. Test your VM and NGINX web server

Now point your web browser to the public IP address of your VM in the address bar. The default NGINX home page will be displayed as shown below:

0 comments on commit 785f1fa

Please sign in to comment.
You can’t perform that action at this time.