Add an Azure public image to Cloud Provisioning and Governance
You can make any Azure image selectable in an OS profile.
Before you begin
Role required: sn_cmp.cloud_admin
Procedure
In the Azure command-line interface (CLI), make note of the values of the Offer, Publisher, Sku, and Version.
On the command line, you can search by offer or by publisher or by both, as shown in the example. Each line item is an image of a particular version of CentOS from OpenLogic.
You can use the following sample command on the CLI -
az vm image list -f Windows --output tableto fetch the values.
Command-line interface
On the instance, enter
cmdb_ci_os_template.listin the Filter navigator text box to open the Images [cmdb_ci_os_template] table and then click New.Configure the form layout to show Offer, Serial number, Version, and Vendor.
On the Image form, enter the following values:
| Field | Value |
|---|---|
| Object ID | Enter `/publisher/offer/sku/version`. You can get these values from the Azure CLI. As an example, `/OpenLogic/CentOS/6.5/6.5.201501`. |
| Name | Meaningful name that represents the version of the OS. `CentOS 6.5` in the example. |
| Guest OS | Operating system. |
| Offer | Offer value from Azure. |
| Serial Number | Sku value from Azure. |
| Version | Version value from Azure. |
| Vendor |
|
On the Credentials field, click the magnifying glass and then click New on the Credentials page.
In the list, click Basic Auth Credentials.
On the Basic Auth Credentials form, enter a meaningful Name for the credential.
Enter a User name and Password to use for instances that are provisioned from this image.
Click Submit to close the Basic Auth Credentials form.
Right-click in the header and select Save to save the current configuration of the new image record.
In the Related Items list, you can see that the image is associated with the specified datacenter.
Click Update to make the public image selectable in an OS profile.
This step also creates a relationship between the public image and the logical datacenter (LDC) in the CMDB.
Parent Topic:Resource Profiles