/// <summary> /// Get the endpoint for the file service for the given storage account in this environment /// </summary> /// <param name="environment">The environment containing the storage account</param> /// <param name="storageAccountName">The name of the storage account</param> /// <param name="useHttps">True if https should be use din communicating with the storage service, otherwise false</param> /// <returns>The Uri of the file service for the given service in the given environment</returns> public static Uri GetStorageFileEndpoint(this IAzureEnvironment environment, string storageAccountName, bool useHttps = true) { return(new Uri(string.Format(environment.StorageFileEndpointFormat(), useHttps ? "https" : "http", storageAccountName))); }