In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Azure policies are an excellent tool for managing standard policies in Azure subscriptions. Can be used to create, assign, and manage policies. These policies will enforce different rules and effects across resources so that these resources comply with corporate standards and service-level agreements. Azure Policy meets this requirement by evaluating whether the resource conforms to the specified policy. For example, you can set a policy to allow only virtual machines of a specific SKU size in the environment. When this strategy is implemented, the compliance of new and existing resources is evaluated. By using the correct policy type, you can ensure the compliance of existing resources.
Let's take a look at how to use a very simple policy definition to restrict all Azure Service Manager (ASM, aka Classic) resources at the subscription level.
Define the JSON file:
{
"if": {
"field": "type"
"like": "Microsoft.Classic*"
}
"then": {
"effect": "Deny"
}
}
Apply policies:
Define policies:
$definition = New-AzureRmPolicyDefinition-Name "restrict-all-asm-resources"-DisplayName "Restrict All ASM Resources"-description "This policy enables you to restrict ALL Azure Service Manager (ASM, aka Classic) resources."-Policy'.\ Restrict-ALL-ASM-Resources.json'-Mode All
Apply policies:
$assignment = New-AzureRMPolicyAssignment-Name 'Restrict All ASM Resources'-PolicyDefinition $definition-Scope "/ subscriptions/$subscriptionId"
After the policy was applied, when I tried to create a classic VNet, I failed the validation:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.