Skip to content

Commit 9fd431e

Browse files
(AzureCXP) Fix Asterik issue in cmdlet
Fix Asterik issue to in $JitPolicy text used for cmdlet Set-AzJitNetworkAccessPolicy under https://docs.microsoft.com/en-us/azure/security-center/security-center-just-in-time#jit-vm-access-via-powershell ------- cc: @memildin
1 parent abeb0f6 commit 9fd431e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/security-center/security-center-just-in-time.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,13 @@ Run the following in PowerShell to accomplish this:
211211
id="/subscriptions/SUBSCRIPTIONID/resourceGroups/RESOURCEGROUP/providers/Microsoft.Compute/virtualMachines/VMNAME"
212212
ports=(@{
213213
number=22;
214-
protocol="*";
215-
allowedSourceAddressPrefix=@("*");
214+
protocol="\*";
215+
allowedSourceAddressPrefix=@("\*");
216216
maxRequestAccessDuration="PT3H"},
217217
@{
218218
number=3389;
219-
protocol="*";
220-
allowedSourceAddressPrefix=@("*");
219+
protocol="\*";
220+
allowedSourceAddressPrefix=@("\*");
221221
maxRequestAccessDuration="PT3H"})})
222222

223223
2. Insert the VM just-in-time VM access policy to an array:
@@ -270,4 +270,4 @@ To learn more about Security Center, see the following:
270270
- The Microsoft Learn module [Protect your servers and VMs from brute-force and malware attacks with Azure Security Center](https://docs.microsoft.com/learn/modules/secure-vms-with-azure-security-center/)
271271
- [Setting security policies](tutorial-security-policy.md) — Learn how to configure security policies for your Azure subscriptions and resource groups.
272272
- [Managing security recommendations](security-center-recommendations.md) — Learn how recommendations help you protect your Azure resources.
273-
- [Security health monitoring](security-center-monitoring.md) — Learn how to monitor the health of your Azure resources.
273+
- [Security health monitoring](security-center-monitoring.md) — Learn how to monitor the health of your Azure resources.

0 commit comments

Comments
 (0)