private async Task <bool> TopicExists(PatConfigCommand configCommand, string azureSubscriptionId, string resourceGroupName) { var path = ApiRouteBuilder.Build(azureSubscriptionId, resourceGroupName, configCommand.Namespace, configCommand.EffectiveTopicName); var result = await _azureHttpClient.GetStatusCode(new Uri(path, UriKind.Relative)); if (result == HttpStatusCode.OK) { return(true); } return(false); }