Beispiel #1
0
 /// <summary>
 /// Creates or updates a management lock at the subscription level.
 /// </summary>
 /// <remarks>
 /// When you apply a lock at a parent scope, all child resources inherit the
 /// same lock. To create management locks, you must have access to
 /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of
 /// the built-in roles, only Owner and User Access Administrator are granted
 /// those actions.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='lockName'>
 /// The name of lock. The lock name can be a maximum of 260 characters. It
 /// cannot contain &lt;, &gt; %, &amp;, :, \, ?, /, or any control characters.
 /// </param>
 /// <param name='parameters'>
 /// The management lock parameters.
 /// </param>
 public static ManagementLockObject CreateOrUpdateAtSubscriptionLevel(this IManagementLocksOperations operations, string lockName, ManagementLockObject parameters)
 {
     return(operations.CreateOrUpdateAtSubscriptionLevelAsync(lockName, parameters).GetAwaiter().GetResult());
 }