MS Office license not applied in Azure VM

Mohanaselvam J 1 Reputation point
2022-12-05T15:30:22.2+00:00

Hi,

Got inspired on Azure really and now I am planning to use MS office in Azure VM in pipeline approach. Below is my flow

1.I have configured devops pipeline with Azure VM (VMSS). It contains VM image definition on below configuration
a. OS: Windows Server 2022
b. Location : East US
c. OS State: Generalized

  1. I have installed MS office 2019 in VM like this approach https://learn.microsoft.com/en-us/deployoffice/office2019/deploy and created VM image for pipeline works.
  2. Now, trying to use MS office (word or excel or anything) for some automation process. But, it is not activated with license key.

Tried Appium to pick UI element and enter license key through pipeline:

  1. I have tried Appium APIs to pick the current window, buttons and text. Then, decide to click the button based on that. (OpenQA.Selenium.Appium.FindElementByXPath(string xpath))
  2. I am facing privacy option window open again and again. (I figure out this by using printing the list of available text using Appium). Below is the text.
    “Thanks for using Office! We've made some updates to the privacy settings to give you more control.
    Your organization's admin allows you to use several cloud-backed services. You get to decide whether you use these services.
    To adjust these privacy settings, go to
    File > Options > Trust Center > Trust Center Settings > Privacy Options
    These optional cloud-backed services are provided to you under the Microsoft Services Agreement.”
  3. Even I have tried to click close button, it clicked then again and again same window (Privacy option) opening.

The end requirement is, any possibility to apply license for MS office in VM image (created from Azure VM). Because, while creating VM the Appdata things (license, user data) are deleted.
MS office 2019 or office 365 any suggestion is okay for me.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,827 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,587 Reputation points Microsoft Employee
    2022-12-06T01:50:04.893+00:00

    Hi @Mohanaselvam J
    Currently, Azure DevOps is not supported on Microsoft Q&A. Please check this supported products list here (more to be added later on).
    However, Azure DevOps team and community are active and answering questions on https://developercommunity.visualstudio.com/spaces/21/index.html
    Please post your question there and experts will guide you.

    You can also ask for help on Stack overflow: https://stackoverflow.com/questions/tagged/azure-devops
    or request for support here : https://azure.microsoft.com/en-us/support/devops/

    215816-image.png

    ----------

    If this answers your query, do click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread.
    And, if you have any further query, do let me know in the comments.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.