Skip to content

Commit 503aef6

Browse files
authored
Merge pull request #171608 from deanweis/patch-1
Guidance for testing using Cloud Shell
2 parents 529b73c + 5d6b124 commit 503aef6

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

articles/azure-netapp-files/azacsnap-troubleshoot.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,66 @@ When validating communication with Azure NetApp Files, communication might fail
5858
- (https://)management.azure.com:443
5959
- (https://)login.microsoftonline.com:443
6060

61+
### Testing communication using Cloud Shell
62+
63+
You can test the Service Principal is configured correctly by using Cloud Shell through your Azure Portal. This will test that the configuration is correct bypassing network controls within a VNet or virtual machine.
64+
65+
**Solution:**
66+
67+
1. Open a [Cloud Shell](/cloud-shell/overview.md) session in your Azure Portal.
68+
1. Make a test directory (e.g. `mkdir azacsnap`)
69+
1. cd to the azacsnap directory and download the latest version of azacsnap tool.
70+
71+
```bash
72+
wget https://aka.ms/azacsnapinstaller
73+
```
74+
75+
```output
76+
----<snip>----
77+
HTTP request sent, awaiting response... 200 OK
78+
Length: 24402411 (23M) [application/octet-stream]
79+
Saving to: ‘azacsnapinstaller’
80+
81+
azacsnapinstaller 100%[=================================================================================>] 23.27M 5.94MB/s in 5.3s
82+
83+
2021-09-02 23:46:18 (4.40 MB/s) - ‘azacsnapinstaller’ saved [24402411/24402411]
84+
```
85+
86+
1. Make the installer executable. (e.g. `chmod +x azacsnapinstaller`)
87+
1. Extract the binary for testing.
88+
89+
```bash
90+
./azacsnapinstaller -X -d .
91+
```
92+
93+
```output
94+
+-----------------------------------------------------------+
95+
| Azure Application Consistent Snapshot Tool Installer |
96+
+-----------------------------------------------------------+
97+
|-> Installer version '5.0.2_Build_20210827.19086'
98+
|-> Extracting commands into ..
99+
|-> Cleaning up .NET extract dir
100+
```
101+
102+
1. Using the Cloud Shell Upload/Download icon, upload the Service Principal file (e.g. `azureauth.json`) and the AzAcSnap configuration file for testing (e.g. `azacsnap.json`)
103+
1. Run the Storage test from the Azure Cloud Shell console.
104+
105+
> [!NOTE]
106+
> The test command can take about 90 seconds to complete.
107+
108+
```bash
109+
./azacsnap -c test --test storage
110+
```
111+
112+
```output
113+
BEGIN : Test process started for 'storage'
114+
BEGIN : Storage test snapshots on 'data' volumes
115+
BEGIN : 1 task(s) to Test Snapshots for Storage Volume Type 'data'
116+
PASSED: Task#1/1 Storage test successful for Volume
117+
END : Storage tests complete
118+
END : Test process complete for 'storage'
119+
```
120+
61121
## Problems with SAP HANA
62122

63123
### Running the test command fails

0 commit comments

Comments
 (0)