question

AbishekDhavala-6216 avatar image
0 Votes"
AbishekDhavala-6216 asked JoydeepDutt-2506 commented

VM permission in WAP

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

windows-azure-pack
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoydeepDutt-2506 avatar image
0 Votes"
JoydeepDutt-2506 answered

@AbishekDhavala-6216 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>


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AbishekDhavala-6216 avatar image
0 Votes"
AbishekDhavala-6216 answered JoydeepDutt-2506 commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.