Changing the Windows License Type of an Instance
When working with a Windows instance, you must select the type of license to use.
Selecting Windows Licensing Type
For Windows Server images there are two licensing options:
- Microsoft bring your own license: You provide your own Windows Server license for an instance.
- OCI provided: You use OCI provided Windows licenses. See the Oracle Cloud Price List: Operating Systems for prices.
For both types of license, you must agree to the Oracle and Microsoft license terms of use for the selected Windows version.
Edit the license type using one of the following options.
After the change is saved, the instance immediately reboots.
- If an instance changed to Microsoft bring your own license, once the instance starts you are no longer charged for the Windows Server license.
- If the instance changed to OCI Provided, once the instance starts you are charged for the Windows Server license. See the Oracle Cloud Price List: Operating Systems for prices.
- Open the navigation menu and click Compute. Under Compute, click Instances.
- Click the instance that you're interested in.
- On the instance details page, locate the Instance Details section.
- Locate the License type field.
- Click Edit. The Edit license type dialog appears.
- Select one of the Windows license type options:
- Microsoft bring your own license: You provide your own Windows Server license for an instance.
- OCI provided: You use OCI provided Windows Server licenses. See the Oracle Cloud Price List: Operating Systems for prices.
If you are changing from one type to the other, check the check box to agree to the Oracle and Microsoft license terms of use.
- To save the changes, click Save Changes.
Use the update instance command and required parameters to update an instance:
oci compute instance update --from-json <file://path/to/file.json>
<file://path/to/file.json> is the path to a JSON file that defines the instance details. For information about how to generate an example of the JSON file, see Advanced JSON Options.
For a complete list of flags and variable options for the Compute Service CLI commands, see the command line reference for Compute.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
Use this API operation to update an instance: