Skip to content

Commit 626538f

Browse files
committed
Replace git clone with curl downloads in README
Remove the full-repo git clone instruction and replace it with targeted curl commands that download only the three required files (policy/azurepolicy.json, scripts/deployment.ps1, scripts/start-remediation.ps1). This avoids cloning the entire sql-server-samples repository, reducing setup time and bandwidth for users who only need the Arc SQL license type policy. Changes: - Add optional mkdir/cd step for a clean local working directory - Add curl commands to fetch individual files into the expected policy/ and scripts/ folder structure - Add note about curl alias on Windows PowerShell 5.1 - Remove git clone and deep cd instructions No script changes required: deployment.ps1 resolves the policy JSON via Join-Path relative to PSScriptRoot, which is preserved by the new folder layout.
1 parent 6c6eba3 commit 626538f

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

  • samples/manage/azure-arc-enabled-sql-server/compliance/arc-sql-license-type-compliance

samples/manage/azure-arc-enabled-sql-server/compliance/arc-sql-license-type-compliance/README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,26 @@ Parameter reference:
2929

3030
Definition and assignment creation:
3131

32-
1. Clone the repo.
32+
1. Download the required files.
3333

3434
```powershell
35-
git clone https://github.com/microsoft/sql-server-samples.git
36-
cd sql-server-samples/samples/manage/azure-arc-enabled-sql-server/compliance/arc-sql-license-type-compliance
35+
# Optional: create and enter a local working directory
36+
mkdir sql-arc-lt-compliance
37+
cd sql-arc-lt-compliance
3738
```
3839

40+
```powershell
41+
$baseUrl = "https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/manage/azure-arc-enabled-sql-server/compliance/arc-sql-license-type-compliance"
42+
43+
New-Item -ItemType Directory -Path policy, scripts -Force | Out-Null
44+
45+
curl -sLo policy/azurepolicy.json "$baseUrl/policy/azurepolicy.json"
46+
curl -sLo scripts/deployment.ps1 "$baseUrl/scripts/deployment.ps1"
47+
curl -sLo scripts/start-remediation.ps1 "$baseUrl/scripts/start-remediation.ps1"
48+
```
49+
50+
> **Note:** On Windows PowerShell 5.1, `curl` is an alias for `Invoke-WebRequest`. Use `curl.exe` instead, or run the commands in PowerShell 7+.
51+
3952
2. Login to Azure.
4053

4154
```powershell

0 commit comments

Comments
 (0)