Using Azure management Libraries for deploying a service. Error: "The given path's format is not supported." <p>Here is the code which I am using for deploying a service in Azure, </p> <pre><code> internal async static Task DeployCloudService(this SubscriptionCloudCredentials credentials) { try { using (var _computeManagementClient = new ComputeManagementClient(credentials)) { Console.WriteLine("Deploying a service..."); var storageConnectionString = await GetStorageAccountConnectionString(credentials); var account = CloudStorageAccount.Parse(storageConnectionString); var blobs = account.CreateCloudBlobClient(); var container = blobs.GetContainerReference(ConfigurationManager.AppSettings["containerName"]); if (!container.Exists()) { Console.WriteLine("Container not found"); }; await container.SetPermissionsAsync( new BlobContainerPermissions() { PublicAccess = BlobContainerPublicAccessType.Container }); var blob = container.GetBlockBlobReference( Path.GetFileName(ConfigurationManager.AppSettings["packageFilePath"])); var blob1 = container.GetBlockBlobReference( Path.GetFileName(ConfigurationManager.AppSettings["configFilePath"])); await _computeManagementClient.Deployments.CreateAsync(ConfigurationManager.AppSettings["serviceName"], DeploymentSlot.Production, new DeploymentCreateParameters { Label = ConfigurationManager.AppSettings["label"], Name = ConfigurationManager.AppSettings["serviceName"], PackageUri = blob.Uri, Configuration = File.ReadAllText((blob1.Uri).ToString()), StartDeployment = true }); Console.WriteLine("Deployment Done!!!"); } } catch (Exception e) { throw; } } </code></pre> <p>The Idea is that package and config file is already there in blobs within some container and I can deploy my service when I am using <code>Configuration = File.ReadAllText(ConfigurationManager.AppSettings["configFilePath"])</code>(which takes the file from the local path and working fine as expected), but since I don't wanna do that I am trying to use the config file from Azure blobs, but <code>File.ReadAllText</code>is not taking the Uri of my file which I checked is fine and giving <code>System.SystemException {System.NotSupportedException}</code> with<code>base {"The given path's format is not supported."}</code>.(as its looking for string parameter)</p> <blockquote> <p>My Question is that how can we use the config file (.cscfg) from the server</p> </blockquote>