-1

could you help me on how would we pass variable from azure datafactory to runbook.

for example i would pass the conatiner name for the run book to generate a sas key using the container name.

malcolm richard
  • 55
  • 3
  • 11

1 Answers1

0

To accomplish the requirement of generating an SAS token for an Azure storage container, you would have to use cmdlet New-AzureStorageContainerSASToken (that belongs to Azure.Storage module) / cmdlet New-AzStorageContainerSASToken (that belongs to Az.Storage module).

As instructed here, starting in December 2018, the Azure PowerShell Az module is in general release and is now the intended PowerShell module for interacting with Azure. So Az modules are latest recommended ones to use and AzureRM modules are the older ones. So AzureRM modules are the older ones and Az modules are latest recommended ones to use.

To make the cmdlet New-AzStorageContainerSASToken (that belongs to Az.Storage module) work in your runbook, make sure you have Az.Storage module imported / available in your Azure Automation account.

enter image description here

enter image description here

enter image description here

Similarly, if your other requirements are related to Azure DataFactory then leverage Az.DataFactory module cmdlets as appropriate. Note that, if necessary, you would have to import required Azure modules or update modules based on the cmdlets that you use.

KrishnaG
  • 3,340
  • 2
  • 6
  • 16