c7n-azure-0.7.9
توضیحات
Cloud Custodian - Azure Support
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | c7n-azure-0.7.9 |
| نام | c7n-azure |
| نسخه کتابخانه | 0.7.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cloud Custodian Project |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://cloudcustodian.io |
| آدرس اینترنتی | https://pypi.org/project/c7n-azure/ |
| مجوز | Apache-2.0 |
# Cloud Custodian - Azure Support
This a plugin to Cloud Custodian that adds Azure support.
## Install Cloud Custodian and Azure Plugin
The Azure provider must be installed as a separate package in addition to c7n.
$ git clone https://github.com/cloud-custodian/cloud-custodian.git
$ virtualenv custodian
$ source custodian/bin/activate
(custodian) $ pip install -e cloud-custodian/.
(custodian) $ pip install -e cloud-custodian/tools/c7n_azure/.
## Write your first policy
A policy specifies the following items:
- The type of resource to run the policy against
- Filters to narrow down the set of resources
- Actions to take on the filtered set of resources
For this tutorial we will add a tag to all virtual machines with the name "Hello" and the value "World".
Create a file named ``custodian.yml`` with this content:
policies:
- name: my-first-policy
description: |
Adds a tag to all virtual machines
resource: azure.vm
actions:
- type: tag
tag: Hello
value: World
## Run your policy
First, choose one of the supported authentication mechanisms and either log in to Azure CLI or set
environment variables as documented in [Authentication](https://cloudcustodian.io/docs/azure/authentication.html#azure-authentication).
custodian run --output-dir=. custodian.yml
If successful, you should see output similar to the following on the command line
2016-12-20 08:35:06,133: custodian.policy:INFO Running policy my-first-policy resource: azure.vm
2016-12-20 08:35:07,514: custodian.policy:INFO policy: my-first-policy resource:azure.vm has count:1 time:1.38
2016-12-20 08:35:08,188: custodian.policy:INFO policy: my-first-policy action: tag: 1 execution_time: 0.67
You should also find a new ``my-first-policy`` directory with a log and other
files (subsequent runs will append to the log by default rather than
overwriting it).
## Links
- [Getting Started](https://cloudcustodian.io/docs/azure/gettingstarted.html)
- [Example Scenarios](https://cloudcustodian.io/docs/azure/examples/index.html)
- [Example Policies](https://cloudcustodian.io/docs/azure/policy/index.html)
نیازمندی
| مقدار | نام |
|---|---|
| ==0.9.26 | c7n |
| ==1.26.109 | boto3 |
| ==4.17.3 | jsonschema |
| ==3.0.5 | argcomplete |
| ==2.8.2 | python-dateutil |
| ==6.0 | pyyaml |
| ==0.9.0 | tabulate |
| ==5.2.0 | importlib-metadata |
| ==0.18.1 | docutils |
| ==1.29.109 | botocore |
| ==1.0.1 | jmespath |
| ==0.6.0 | s3transfer |
| ==22.2.0 | attrs |
| ==5.12.0 | importlib-resources |
| ==1.3.10 | pkgutil-resolve-name |
| ==0.19.3 | pyrsistent |
| ==4.5.0 | typing-extensions |
| ==1.16.0 | six |
| ==3.15.0 | zipp |
| ==1.26.15 | urllib3 |
| ==1.0.0 | azure-mgmt-authorization |
| ==9.0.0 | azure-mgmt-advisor |
| ==1.0.0 | azure-mgmt-apimanagement |
| ==1.0.0 | azure-mgmt-applicationinsights |
| ==15.0.0 | azure-mgmt-batch |
| ==11.0.0 | azure-mgmt-cognitiveservices |
| ==6.4.0 | azure-mgmt-cosmosdb |
| ==1.0.0 | azure-mgmt-costmanagement |
| ==7.0.0 | azure-mgmt-containerinstance |
| ==19.0.0 | azure-mgmt-compute |
| ==10.0.0 | azure-mgmt-cdn |
| ==8.0.0b1 | azure-mgmt-containerregistry |
| ==15.1.0 | azure-mgmt-containerservice |
| ==1.0.0b1 | azure-mgmt-databricks |
| ==0.5.0 | azure-mgmt-datalake-store |
| ==1.1.0 | azure-mgmt-datafactory |
| ==8.0.0b1 | azure-mgmt-dns |
| ==8.0.0 | azure-mgmt-eventgrid |
| ==8.0.0 | azure-mgmt-eventhub |
| ==7.0.0 | azure-mgmt-hdinsight |
| ==1.0.0 | azure-mgmt-iothub |
| ==8.0.0 | azure-mgmt-keyvault |
| ==1.0.0b1 | azure-mgmt-managementgroups |
| ==17.1.0 | azure-mgmt-network |
| ==7.0.0 | azure-mgmt-resourcegraph |
| ==16.1.0 | azure-mgmt-resource |
| ==8.1.0 | azure-mgmt-rdbms |
| ==8.0.0 | azure-mgmt-search |
| ==1.0.0 | azure-mgmt-sql |
| ==17.1.0 | azure-mgmt-storage |
| ==1.0.0 | azure-mgmt-subscription |
| ==2.0.0 | azure-mgmt-web |
| ==9.0.0 | azure-mgmt-logic |
| ==12.15.0 | azure-storage-blob |
| ==12.6.0 | azure-storage-queue |
| ==1.0.6 | azure-cosmosdb-table |
| ==0.11.10 | applicationinsights |
| ==3.10.1 | apscheduler |
| ==0.3.6 | distlib |
| ==2.6.0 | pyjwt |
| ==1.2.7 | adal |
| ==2.28.2 | requests |
| ==1.13.3 | azure-functions |
| ==0.61.1 | azure-graphrbac |
| ==0.7.20 | netaddr |
| ==2.1.0 | azure-storage-file |
| ==1.0.0 | azure-mgmt-policyinsights |
| ==2.0.0 | azure-mgmt-monitor |
| ==8.1.3 | click |
| ==3.2.0 | azure-cosmos |
| ==12.0.0 | azure-mgmt-redis |
| ==4.7.0 | azure-keyvault-secrets |
| ==4.8.0 | azure-keyvault-keys |
| ==4.7.0 | azure-keyvault-certificates |
| ==1.12.0 | azure-identity |
| ==4.2.0 | azure-keyvault |
| ==12.11.1 | azure-storage-file-share |
| ==40.0.1 | cryptography |
| ==1.0.0 | azure-mgmt-msi |
| ==1.0.0 | azure-mgmt-servicefabric |
| ==0.51.0 | azure-mgmt-trafficmanager |
| ==1.0.1 | azure-mgmt-frontdoor |
| ==1.0.0 | azure-mgmt-security |
| ==1.1.28 | azure-common |
| ==1.4.0 | azure-mgmt-core |
| ==0.7.1 | msrest |
| ==3.0.1 | azure-mgmt-datalake-nspkg |
| ==0.6.4 | msrestazure |
| ==1.26.4 | azure-core |
| ==0.6.1 | isodate |
| ==2.0.2 | azure-cosmosdb-nspkg |
| ==2023.3 | pytz |
| ==67.6.1 | setuptools |
| ==4.3 | tzlocal |
| ==2022.12.7 | certifi |
| ==3.1.0 | charset-normalizer |
| ==3.4 | idna |
| ==2.1.0 | azure-storage-common |
| ==0.4.6 | colorama |
| ==1.21.0 | msal |
| ==1.0.0 | msal-extensions |
| ==1.15.1 | cffi |
| ==1.3.1 | requests-oauthlib |
| ==3.0.2 | azure-mgmt-nspkg |
| ==3.0.2 | azure-nspkg |
| ==0.2.1 | backports-zoneinfo |
| ==0.1.0.post0 | pytz-deprecation-shim |
| ==2023.3 | tzdata |
| ==2.7.0 | portalocker |
| ==2.21 | pycparser |
| ==3.2.2 | oauthlib |
| ==306 | pywin32 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl c7n-azure-0.7.9:
pip install c7n-azure-0.7.9.whl
نصب پکیج tar.gz c7n-azure-0.7.9:
pip install c7n-azure-0.7.9.tar.gz