- Install Azure-cli - How to install azure-cli
- Run
az config set extension.use_dynamic_install=yes_without_prompt
to allow installing extensions without prompt. - Install terraform cli - How to install terraform-cli
- Run
az login
to authenticate (make sure you are on the right tenant) - Go to the
tf-environment
folder (on unix based systems, the command is:cd tf-environment
) - Create a file called
creds.tf
(the name is important because it's already included on the.gitignore
file so that it won't be transmited to the remote git provider)- Within the
creds.tf
file, paste the following code:/* NÃO MODIFIQUE O BLOCO DE COMENTÁRIOS. Vamos utilizar este bloco para declarar valores sensíveis em nossa demo (ele está incluso no .gitignore do repositório, então não será replicado para o ambiente remoto) Mais informações sobre variáveis no terraform podem ser encontradas aqui: https://www.terraform.io/language/values/variables Mais informações sobre os `locals` podem ser encontradas aqui: https://www.terraform.io/language/values/locals Altere o my_ip_range para refletir seu IP de acesso para o SQL Server fora da rede da Azure - no arquivo sql_server.tf você encontrará as definições de regra de firewall para fazer o bloqueio destes IPs do range nos recursos `azurerm_mssql_firewall_rule`, caso seja necessário apenas um range de liberaçao, basta eliminar a segunda regra (`mssql_firewall_rule_allow_my_ip_2`) **/ variable "my_ip_range" { type = list(any) default = ["192.168.0.1", "192.168.0.2", "192.168.0.3", "192.168.0.4"] description = "My IP Range - A list composed of 4 IPs that, when paired (0-1, 2-3) produce the range in which the SQL Server Database will be accessible outside the Azure Infrastructure if you want to access it from yourj local machine" } variable "my_username" { type = string default = "[email protected]" description = "Username for the demo owner and for the Databricks workspace admin" }
- Replace the variables above with your own
- Within the
- Run a
terraform init
to initialize terraform and install the required providers - Run a
terraform plan
on the folder tf-environment, make sure it works properly (i.e.: no authentication errors) - Run a
terraform apply
, the first apply will probably not work for the IOT device as it will have to install the library, but it should work perfectly on the second one - After the second
terraform apply
, the demo should be ready to roll - Go to Azure's IoT simulator and add the code in
scripts/iot_simulator_code/iot_simulator.js
- Get the IoT Connection string of your device and replace it on the code that you just pasted on the simulator on the previous step
- Access your DataFactory to get the data out of the SQL Server by running the pipeline called
historical_pipeline
once - After going through the previous step, you are now able to run the DLT demo or the separate notebooks for a classic demo.
- When you're done playing, DON'T FORGET to destroy your resources by running a
terraform destroy
-
Notifications
You must be signed in to change notification settings - Fork 0
License
flaviomalavazi/azure-databricks-demo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published