Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Commands/afd/security-policy/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Create a new security policy within the specified profile.

#### examples

- Creates a security policy to apply the specified WAF policy to an endpoint's default domain and a custom domain.
- SecurityPolicies_Create
```bash
afd security-policy create -g group --profile-name profile --security-policy-name sp1 --domains /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1 /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/customDomains/customDomain1 --waf-policy /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/waf1
afd security-policy create --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2025-09-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2025-09-01-preview.xml) **Stable**
Expand All @@ -58,3 +58,14 @@ Create a new security policy within the specified profile.
```bash
afd security-policy create --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2026-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2026-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2026-04-01-preview -->

#### examples

- SecurityPolicies_Create
```bash
afd security-policy create --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```
18 changes: 18 additions & 0 deletions Commands/afd/security-policy/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ Delete an existing security policy within profile.

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2025-06-01 -->

#### examples

- SecurityPolicies_Delete
```bash
afd security-policy delete --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2025-09-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2025-09-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2025-09-01-preview -->
Expand All @@ -30,3 +37,14 @@ Delete an existing security policy within profile.
```bash
afd security-policy delete --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2026-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2026-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2026-04-01-preview -->

#### examples

- SecurityPolicies_Delete
```bash
afd security-policy delete --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```
18 changes: 18 additions & 0 deletions Commands/afd/security-policy/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ List security policies associated with the profile

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies 2025-06-01 -->

#### examples

- SecurityPolicies_ListByProfile
```bash
afd security-policy list --resource-group RG --profile-name profile1
```

### [2025-09-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcw==/2025-09-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies 2025-09-01-preview -->
Expand All @@ -30,3 +37,14 @@ List security policies associated with the profile
```bash
afd security-policy list --resource-group RG --profile-name profile1
```

### [2026-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcw==/2026-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies 2026-04-01-preview -->

#### examples

- SecurityPolicies_ListByProfile
```bash
afd security-policy list --resource-group RG --profile-name profile1
```
18 changes: 18 additions & 0 deletions Commands/afd/security-policy/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ Get an existing security policy within a profile.

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2025-06-01 -->

#### examples

- SecurityPolicies_Get
```bash
afd security-policy show --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2025-09-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2025-09-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2025-09-01-preview -->
Expand All @@ -30,3 +37,14 @@ Get an existing security policy within a profile.
```bash
afd security-policy show --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2026-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2026-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2026-04-01-preview -->

#### examples

- SecurityPolicies_Get
```bash
afd security-policy show --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```
15 changes: 13 additions & 2 deletions Commands/afd/security-policy/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Update a new security policy within the specified profile.

#### examples

- Update the specified security policy's domain list.
- SecurityPolicies_Create
```bash
afd security-policy update -g group --security-policy-name sp1 --profile-name profile --domains /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Cdn/profiles/profile1/customDomains/customDomain1
afd security-policy update --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2025-09-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2025-09-01-preview.xml) **Stable**
Expand All @@ -58,3 +58,14 @@ Update a new security policy within the specified profile.
```bash
afd security-policy update --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```

### [2026-04-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jZG4vcHJvZmlsZXMve30vc2VjdXJpdHlwb2xpY2llcy97fQ==/2026-04-01-preview.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies/{} 2026-04-01-preview -->

#### examples

- SecurityPolicies_Create
```bash
afd security-policy update --resource-group RG --profile-name profile1 --security-policy-name securityPolicy1
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies", "version": "2026-04-01-preview", "swagger": "mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vc2VjdXJpdHlQb2xpY2llcw==/V/MjAyNi0wNC0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "afd security-policy", "commands": [{"name": "list", "version": "2026-04-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.cdn/profiles/{}/securitypolicies", "version": "2026-04-01-preview", "swagger": "mgmt-plane/cdn/ResourceProviders/Microsoft.Cdn/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2RuL3Byb2ZpbGVzL3twcm9maWxlTmFtZX0vc2VjdXJpdHlQb2xpY2llcw==/V/MjAyNi0wNC0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.profileName", "options": ["profile-name"], "required": true, "idPart": "name", "help": {"short": "Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group."}, "format": {"pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", "maxLength": 260, "minLength": 1}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "SecurityPolicies_ListByProfile", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "profileName", "arg": "$Path.profileName", "required": true, "format": {"pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", "maxLength": 260, "minLength": 1}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Cdn/profiles/{}/securityPolicies/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "deploymentStatus", "enum": {"items": [{"value": "Failed"}, {"value": "InProgress"}, {"value": "NotStarted"}, {"value": "Succeeded"}]}}, {"type": "object", "name": "parameters", "props": [{"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "WebApplicationFirewall"}]}}], "discriminators": [{"property": "type", "value": "WebApplicationFirewall", "props": [{"type": "array<object>", "name": "associations", "item": {"type": "object", "props": [{"type": "array<object>", "name": "domains", "item": {"type": "object", "props": [{"type": "string", "name": "id"}, {"readOnly": true, "type": "boolean", "name": "isActive"}]}}, {"type": "array<string>", "name": "patternsToMatch", "item": {"type": "string"}}, {"type": "array<@ResourceReference_read>", "name": "routes", "item": {"type": "@ResourceReference_read"}}]}}, {"type": "boolean", "name": "isProfileLevel"}, {"type": "object", "name": "wafPolicy", "props": [{"type": "string", "name": "id"}], "cls": "ResourceReference_read"}]}]}, {"readOnly": true, "type": "string", "name": "profileName"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]}
Loading
Loading