pub:tmp:azure100

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pub:tmp:azure100 [2021/03/22 18:24] – ↷ Page name changed from pub:tmp:azure to pub:tmp:azure100 mmuzepub:tmp:azure100 [2022/04/06 20:35] (current) mmuze
Line 1: Line 1:
-====== Azure ======+====== Azure 100======
 <code> <code>
 cd 'C:\Program Files\Microsoft Monitoring Agent\Agent'  cd 'C:\Program Files\Microsoft Monitoring Agent\Agent' 
Line 36: Line 36:
 cd 'C:\Program Files\Microsoft Monitoring Agent\Agent\Troubleshooter' cd 'C:\Program Files\Microsoft Monitoring Agent\Agent\Troubleshooter'
 .\GetAgentInfo.ps1 .\GetAgentInfo.ps1
 +</code>
 +
 +
 +<code powershell>
 +# Testing...
 +Publish-AzWebApp -ResourceGroupName "ANI-Testing" -Name "ani-tasu-webapp" -Slot "webapp1-testing" -ArchivePath "c:\users\public\Desktop\webapp1\webapp1.zip"
 +</code>
 +
 +<code powershell>
 +$exclude = @("*.log", "*.tmp", "log*.txt")
 +$files = ls -File -Recurse -Exclude $exclude
 +Compress-Archive -Path $files -DestinationPath $home\desktop\webagent.zip
 +</code>
 +
 +<code powershell>
 +# Establish an authenticated session with Azure
 +Connect-AzAccount 
 +Publish-AzWebApp -ResourceGroupName "rg-tasu" -Name "app-scus-webagent" -ArchivePath $home\desktop\webagent.zip
 +</code>
 +
 +<code powershell>
 +(curl ifconfig.me).Content
 </code> </code>
  • pub/tmp/azure100.1616437457.txt.gz
  • Last modified: 2021/03/22 18:24
  • by mmuze