254 questions
0
votes
3
answers
222
views
Formatting output of PowerShell
I have a variable $Shares which stores the output of the command net view \\COMPUTERNAME /all 2>&1. The output looks like as below
Shared resources at \\COMPUTERNAME
Share name Type Used as ...
0
votes
0
answers
47
views
Removing users/groups from fileshare ACL with Powershell (Not Responding)
I have a PowerShell script designed to update Access Control Lists (ACLs) for a large directory structure based on a CSV input file. The script works fine for a small number of folders and files but ...
1
vote
2
answers
334
views
Azure Container App mounted volume - permission denied
My c# .net core 5 application running in azure container environment as azure container app with azure file mounted as a persistent volume suddenly started to throw UnauthorizedAccessException (see ...
0
votes
1
answer
81
views
Fileshare service for application
I need a filshare, SMB, quorum service for my applications, applications are both windows and linux based.
I tried using AWS FSx Windows cluster but they do not provide auto failover for linux clients,...
2
votes
1
answer
778
views
How can I copy one file from one folder to another within an Azure Fileshare using C#?
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Excel = ...
0
votes
1
answer
611
views
Correct way to read and write files in Azure file share
I'm using Linux, I mounted a Azure file share named fileshare01.
Then I wrote a program to create a file in the fileshare01 using C++
Here is my code
`
#include <iostream>
#include <fstream&...
0
votes
0
answers
481
views
How to make All Folders, Sub-Folders & Files Read-Only EXCEPT for 4 Sub-Folders in a File Share?
I need some help!
Heres the scenerio;
I need to make all Files & Folders on one of our File Shares Read-Only except for 4 Sub-Folders accross many different folders on the share. All Level 1 Sub-...
2
votes
1
answer
617
views
PowerShell New-PSDrive doesn't persist
Scenario:
I have created a scheduled task that executes the following PowerShell script with the intention of automating mapping a network drive (I have substituted sensitive values in some parts):
...
0
votes
1
answer
890
views
STATUS_ACCESS_DENIED (0xc0000022): Could not connect to - Azure Netapps File Share (Network Drive) access with smbj JAVA library
Trying to read files from Azure Netapps (Network Drive). We successfully mount and read files with Window File Explorer.
With the same credentials, we are trying with JAVA smbj library.
While ...
3
votes
3
answers
7k
views
How to copy files from azure Devops to Azure file share storage account
I have a build pipeline which builds *.p12 files and been published a artifacts in the build pipeline
How to copy files from azure Devops pipeline workspace or from published artifacts to Azure ...
1
vote
1
answer
3k
views
Databricks: No module named azure.storage
I was following the answer in this question Load file from Azure Files to Azure Databricks to create the SAS token with the following code
# Create a client of Azure File Service as same as yours
from ...
0
votes
1
answer
447
views
SharefileClient's UploadRangeAsync overrides with blank spaces previous content when adding more text to a file (C#)
I'm creating a method to append new text to an existing file in an Azure File Share. This is the code:
public async Task AppendAllTextAsync(string path, string text)
{
var ...
1
vote
1
answer
807
views
Check the existance of path with .zip in the path
Is there any possible solutions for C# how to check if the file exists even if the file is located in the .zip directory?
A possible path would be: "\\127.0.0.1\ZIP-Bug-Study\TestResultMap\...
0
votes
0
answers
750
views
Fileshare server throwing the error `The specified path is invalid` at the root of the network drive
I have a fileshare server \\fileshareserver.abc.net and am accessing data in it using C#.
I'm calling the Directory.EnumerateFiles method to enumerate all the file under a directory.
When I call a ...
0
votes
1
answer
664
views
Uploading Files more than 30 MB to Azure fileshare locaton from FTP using an console application(.net-C#)
I'm using a C# (.net core) console program to upload a large file (.CSV) (limit 30 MB) to an Azure Fileshare location from an FTP site. In some cases, I'm getting incomplete writes in the Azure ...
0
votes
1
answer
346
views
Why my program is not executing beyond await UploadAsync?
I am trying to upload a file through stream to azure file share. This is my function :
public static async Task UploadFile(string shareName, Stream content, string fileName, string dirName)
{
...
1
vote
1
answer
3k
views
Cannot connect file share from azure to windows laptop, port 445 is blocked
When I tried to connect file share to my windows laptop, it said that port 445 is blocking.
Please help me to solve this problem.
Thank you for your kind help.
Error:
if ($connectTestResult....
0
votes
1
answer
6k
views
Test-NetConnection: The term 'Test-NetConnection' is not recognized as a name of a cmdlet, function, script file, or executable program
I would like to connect to a file share from the azure portal to my windows laptop. However, the related error is shown below.
$connectTestResult = Test-NetConnection -ComputerName storagetestmy3.file....
-1
votes
1
answer
6k
views
Xcopy /O /X throwing access denied error on command prompt
I'm using below command to create new folder by copying contents of the existing folder and command prompt throws Access Denied error.
Command:
C:\Users\Kundur.Rudresh>Xcopy C:\test D:\test /O /X /...
0
votes
1
answer
997
views
File Shares Azure AD without Azure AD DS
Im, looking to move on premise file servers into Azure as File Share but need to maintain the ability to mount them as network drives for the users. we want granular control and would like to use ...
0
votes
1
answer
181
views
Reading an on premise file share from Java based azure web app
I have a java based azure web app which is trying to connect to an on premise file share and read a file from there. If I try locally its connecting with my ID. but when I am hosting it in the server ...
0
votes
1
answer
2k
views
asp.net core blazor: Images / files on network share work for 1 minute, then stop working
My app stores and retrieves photo images from a network share. My dev machine is Windows 2018 running Visual Studio 2019 on VMWare.
Images serve great when the app first opens. Then after around 1 ...
0
votes
0
answers
2k
views
NFS Share Access Problem from Azure Data Factory
Want to connect a NFS Share to Data Factory. After inserting our share hostname, user and password, when we click to test connection, we receive the following error:
Error occurred when trying to ...
0
votes
1
answer
178
views
How to create a leader board in repl.it python
I'm trying to make a game with a leaderboard, and I have the code that writes the high scores in a file, but when multiple people play the game, they have separate leaderboards. so basically, i'm ...
1
vote
1
answer
2k
views
AKS File Share Persistent Mounting with Managed Identity - Having issue after key Rotation
Mounted Azure File shares in AKS deployments using Cluster UAMI with Reader & Storage account key operator service role. It was successfully mounted in all the POD replicas and able to create the ...