protected void SetActiveSubscription() { NodeJSAgent nodeAgent = (NodeJSAgent)CommandAgent; string subscriptionID = Test.Data.Get("AzureSubscriptionID"); if (!string.IsNullOrEmpty(subscriptionID)) { nodeAgent.SetActiveSubscription(subscriptionID); } else { string subscriptionName = Test.Data.Get("AzureSubscriptionName"); if (!string.IsNullOrEmpty(subscriptionName)) { nodeAgent.SetActiveSubscription(subscriptionName); } } }