Skip to content

Commit

Permalink
Remove Bicep examples
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-okerman-sonarsource committed May 15, 2023
1 parent fb00ce5 commit 35437d7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions rules/S6387/azureresourcemanager/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ include::../recommended.adoc[]

== Sensitive Code Example

[source,bicep,diff-id=1,diff-type=noncompliant]
----
targetScope = 'subscription' // Sensitive
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(subscription().id, 'exampleRoleAssignment')
}
----

[source,json,diff-id=2,diff-type=noncompliant]
----
{
Expand All @@ -32,15 +23,6 @@ resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {

== Compliant Solution

[source,bicep,diff-id=1,diff-type=compliant]
----
targetScope = 'resourceGroup'
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, 'exampleRoleAssignment')
}
----

[source,json,diff-id=2,diff-type=noncompliant]
----
{
Expand Down

0 comments on commit 35437d7

Please sign in to comment.