i am running a powershell script via Azure Devops build agent and depending on the Tennant, i want to change the DisplayName that contains Dev to QA or Prod.
i have tried the following for testing however it fails:
The property 'displayname' cannot be found on this object. Verify that the property exists and can be set.At line:1 char:1+ $rules.analytics.displayname = "test"+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyAssignmentException