F5Networks / f5-bigip-runtime-init

Apache License 2.0
14 stars 15 forks source link

Azure REGION metadata is wrong #23

Closed JeffGiroux closed 2 years ago

JeffGiroux commented 3 years ago

The metadata parameters listed for REGION only list an example for AWS. The Azure cloud has a different endpoint URL for metadata.

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/instance-metadata-service

Using the curl example in the link above, you can find REGION by querying the following metadata link.

curl -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance/compute/location?api-version=2021-05-01&format=text"

westus2

As you can see, you receive "westus2" back. Please update docs to reflect REGION accurate example for Azure metadata.

JeffGiroux commented 3 years ago

The runtime yaml file block will look like this for Azure REGION (aka location) instance metatdata

  - name: REGION
    type: url
    value: http://169.254.169.254/metadata/instance/compute/location?api-version=2021-05-01&format=text
    headers:
      - name: Metadata
        value: true
shyawnkarim commented 2 years ago

Thanks for submitting this issue. We are now tracking it internally with ID ESECLDTPLT-2827.

shyawnkarim commented 2 years ago

Closing. This fix was included with Release 1.4.0.