Home > OS >  Azure resource manager template for python2Packages
Azure resource manager template for python2Packages

Time:03-16

May I ask what is contentHash? How to have it? enter image description here

CodePudding user response:

For automation download and add python package in Azure Automation Account:

Step 1: You have to create Azure Run As Account.

Step 2: Create Runbook and you can import a Python 3 package and its dependencies by importing the following Python script into a Python 3 runbook, and then running it

Step 3: Start runbook You have to add following argument for runbook:

subscription_id (-s) - Subscription id of the Automation account
resource_group (-g) - Resource group name of the Automation account
automation_account (-a) - Automation account name
module_name (-m) - Name of module to import from pypi.org

More information: Manage python2, Manage python3

CodePudding user response:

ContentHash

In order to allow API apps to verify uploaded contents or compare remote files to local files without downloading them, the FileMetadata object contains a hash of the file contents in the content_hash property. https://www.dropbox.com/developers/reference/content-hash#:~:text=In order to allow API,contents in the content_hash property.

ContentHash will be generated only if you made any changes in the particular file and each file will be having the unique has number.

In most circumstances, ContentHash will be used for production.

You may implement long-term caching in browsers with the help of contenthash. As long as the hash remains the same, the browser will deliver the cached file.

For further Reference1, Reference2.

  • Related