VM permission in WAP

Abishek Dhavala 1 Reputation point
2020-12-29T09:09:51.61+00:00

I have question on how can we restrict WAP Tenant users not to have an option to delete their VMs from WAP Tenant portal?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,147 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JoyDutt 821 Reputation points
    2020-12-29T11:52:27.883+00:00

    @Abishek Dhavala there are few ways like from RBAC, Azure Resource Locks , Azure Resource Manager Policies

    ARM Policy Sample

    $policy = New-AzureRmPolicyDefinition -Name regionPolicyDefinition -Description "Policy to allow resource creation only in certain regions" -Policy '{
    "if" : {
    "not" : {
    "field" : "Location",
    "in" : ["northeurope" , "westeurope"]
    }
    },
    "then" : {
    "effect" : "deny";
    }
    }'

    JSON :
    $policy = New-AzureRmPolicyDefinition -Name regionPolicyDefinition -Description "Policy to allow resource creation only in y in certain regions"-Policy <path-to-policy-json-on-disk>

    0 comments No comments

  2. Abishek Dhavala 1 Reputation point
    2020-12-31T08:41:22.863+00:00

    Is this solution for Azure right? Will the same solution applicable in Windows Azure pack