Run cmd as administrator and run following command and you are done 🙂
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2
Category Archives: Uncategorized
Azure delete VM and all associated resources
If doing manually, Delete in following order:
VM, Network Interface, NSG, Public IP, Disk, boot diagnostics disk storage, Virtual Network if no there VM is on that.
For script:
https://4sysops.com/archives/delete-an-azure-vm-with-objects-using-powershell/
Register Azure subscription to enable managed resources move
Login to selected subscription using PowerShell.
run following command to register:
Register-AzureRmProviderFeature -FeatureName ManagedResourcesMove -ProviderNamespace Microsoft.Compute
to get register status:
Get-AzureRmProviderFeature -FeatureName ManagedResourcesMove -ProviderNamespace Microsoft.Compute
would take a while, afterwards register MS Compute resource provider:
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute
How to debug VSTS Pipeline?
Add a pipeline variable: System.Debug and set its value to true.
This will give additional logs that would help troubleshoot the issue.
Additionally, if you are deploying web app, you can add a app settings SCM_DO_BUILD_DURING_DEPLOYMENT=true and re-run deployment.
DevOps Security
Secured VSTS/ Octopus deployments
Azure AD
RBAC Groups & Permissions
Service Principal
Key Vaults
SSL Certificates, TLS
PowerShell versus ARM Templates
Azure Powershell: Manage SQL Azure dbs
Single Db->Elastic Pool:
New-AzureRmSqlDatabaseCopy -ResourceGroupName “SourceResourceGroupName” -ServerName “SourceServerName” -DatabaseName “SourceDBName” -CopyResourceGroupName “TargetResourceGroupName” -CopyServerName “TargetServerName” -ElasticPoolName “TargetElasticPool” -CopyDatabaseName “NewDatabaseName”
Remove-AzureRmSqlDatabase -ResourceGroupName “RG_GSDb1” -ServerName “gsdbserverpool” -DatabaseName newdeltest2
Cmdlet | Description |
New-AzureRmSqlElasticPool | Creates an elastic database pool on a logical SQL server. |
Get-AzureRmSqlElasticPool | Gets elastic pools and their property values on a logical SQL server. |
Set-AzureRmSqlElasticPool | Modifies properties of an elastic database pool on a logical SQL server. For example, use the StorageMB property to modify the max storage of an elastic pool. |
Remove-AzureRmSqlElasticPool | Deletes an elastic database pool on a logical SQL server. |
Get-AzureRmSqlElasticPoolActivity | Gets the status of operations on an elastic pool on a logical SQL server. |
New-AzureRmSqlDatabase | Creates a new database in an existing pool or as a single database. |
Get-AzureRmSqlDatabase | Gets one or more databases. |
Set-AzureRmSqlDatabase | Sets properties for a database, or moves an existing database into, out of, or between elastic pools. |
Remove-AzureRmSqlDatabase | Removes a database. |
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-pool
Why migrate to Cloud?
Benefits, Risks
Cloud Service Models:
• IaaS
• PaaS
• SaaS
Cloud Type:
• Public
• Private
• Hybrid
Assessing Applications for a Cloud Migration
• Application design complexity
• Integration complexity
• The host operating system
• The application database
• Network
Cost Comparison
• Pricing Estimation
Proof of Concept
• Performance comparisons with your existing application
• Complexity levels involved in migrating the application
• Network challenges that need to be worked out
• Reliability
• Cloud provider support evaluation
https://cloudacademy.com/blog/cloud-migration-benefits-risks/
Azure Cosmos DB
Azure Cosmos DB is Microsoft’s globally distributed, multi-model database. Azure Cosmos DB was built from the ground up with global distribution and horizontal scale at its core. It offers turnkey global distribution across any number of Azure regions by transparently scaling and replicating your data wherever your users are. You can elastically scale throughput and storage worldwide, and only pay for the throughput and storage you need.
Managing Cosmos DB account using PowerShell
https://docs.microsoft.com/en-us/azure/cosmos-db/manage-account-with-powershell
What is Azure Logic Apps?
Logic Apps helps you build, schedule, and automate processes as workflows so you can integrate apps, data, systems, and services across enterprises or organizations. Logic Apps simplifies how you design and create scalable solutions for app integration, data integration, system integration, enterprise application integration (EAI), and business-to-business (B2B) communication, whether in the cloud, on premises, or both.
For example, here are just a few workloads that you can automate with logic apps:
- Process and route orders across on-premises systems and cloud services.
- Move uploaded files from an FTP server to Azure Storage.
- Monitor tweets for a specific subject, analyze the sentiment, and create alerts or tasks for items that need review.
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-overview