diff --git a/builder/azure/arm/config.go b/builder/azure/arm/config.go index 5f74f5f70..16c52c23b 100644 --- a/builder/azure/arm/config.go +++ b/builder/azure/arm/config.go @@ -183,19 +183,20 @@ type Config struct { // CLI example // `az vm image list --location westus --publisher Canonical --offer UbuntuServer --sku 16.04.0-LTS --all` ImageVersion string `mapstructure:"image_version" required:"false"` - // URL to a custom VHD to use for your base image. If this value is set, do - // not set image_publisher, image_offer, image_sku, or image_version. + // URL to a custom VHD to use for your base image. If this value is set, + // image_publisher, image_offer, image_sku, or image_version should not be set. ImageUrl string `mapstructure:"image_url" required:"true"` // Name of a custom managed image to use for your base image. If this value is set, do // not set image_publisher, image_offer, image_sku, or image_version. - // If this value is set, the value + // If this value is set, the option // `custom_managed_image_resource_group_name` must also be set. See // [documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images) // to learn more about managed images. CustomManagedImageName string `mapstructure:"custom_managed_image_name" required:"true"` // Name of a custom managed image's resource group to use for your base image. If this - // value is set, image_publisher, image_offer, image_sku, or image_version. + // value is set, image_publisher, image_offer, image_sku, or image_version should not be set. + // If this value is set, the option // `custom_managed_image_name` must also be set. See // [documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images) // to learn more about managed images. diff --git a/website/pages/partials/builder/azure/arm/Config-required.mdx b/website/pages/partials/builder/azure/arm/Config-required.mdx index fba192a62..edac35f5e 100644 --- a/website/pages/partials/builder/azure/arm/Config-required.mdx +++ b/website/pages/partials/builder/azure/arm/Config-required.mdx @@ -20,18 +20,19 @@ CLI example `az vm image list-skus --location westus --publisher Canonical --offer UbuntuServer` -- `image_url` (string) - URL to a custom VHD to use for your base image. If this value is set, do - not set image_publisher, image_offer, image_sku, or image_version. +- `image_url` (string) - URL to a custom VHD to use for your base image. If this value is set, + image_publisher, image_offer, image_sku, or image_version should not be set. - `custom_managed_image_name` (string) - Name of a custom managed image to use for your base image. If this value is set, do not set image_publisher, image_offer, image_sku, or image_version. - If this value is set, the value + If this value is set, the option `custom_managed_image_resource_group_name` must also be set. See [documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images) to learn more about managed images. - `custom_managed_image_resource_group_name` (string) - Name of a custom managed image's resource group to use for your base image. If this - value is set, image_publisher, image_offer, image_sku, or image_version. + value is set, image_publisher, image_offer, image_sku, or image_version should not be set. + If this value is set, the option `custom_managed_image_name` must also be set. See [documentation](https://docs.microsoft.com/en-us/azure/storage/storage-managed-disks-overview#images) to learn more about managed images.