mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
M365

How to execute Microsoft Azure PowerShell commands on Azure Automation

As you know, Azure Automation is really great feature to automate your schedulable tasks both public cloud an on-premise. There are massive documents to describe how to do that including abstraction. I will introduce how to do that simply with screenshots. Create your Azure Automation Account At first, note when you create Azure Automation account. And you must create "Azure Run As account" like below, because it's mandatory to execute your Azure Automation scripts called as "Runbook". This probably need your Azure Active Directory privilege of App Registration. Create your Runbook Create a Runbook used to execute your scripts. Choose "Runbook" from left side of you Azure Automation account and click "Add a runbook" like below. And input your Runbook name and choose "PowerShell" as your Runbook type. Create your scripts into your Runbook Open your Runbook and click "Edit" to create your script. Update your script like below. $Conn = Get-AutomationConnection -Name AzureRunAsConnection Add-AzureRMAccount -ServicePrincipal -Tenant $Conn.TenantID -ApplicationId $Conn.ApplicationID -CertificateThumbprint $Conn.CertificateThumbprint get-azurermresourcegroup | ForEach-Object { $_.ResourceGroupName } The name of "AzureRunAsConnection" should be created in "'your Azure Automation account name'- Connections". Once again, this is mandatory to execute your script. Confirm it like below if you need. After updating the script, click "Test pane" to test your script. You can execute your script by clicking "Start" button, so you can take result like below. Now you can publish your script by clicking "Publish" button to schedule and collaborate with other Runbooks. After publishing that, confirm the status like below. Schedule your Runbook Go back to top of your Azure…

2020-03-15 0comments 113hotness 0likes mikebai Read all
M365

res://ieframe.dll/acr_error.htm 问题

IE浏览器的扩展组件问题 无法确定具体组件时,删除所有↓↓↓↓ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects 删除Browser Helper Objects下的所有子key

2020-03-15 0comments 117hotness 0likes mikebai Read all
M365

How to find your Office 365 tenant ID?

Your Office 365 tenant ID is a globally unique identifier (GUID) that is different than your tenant name or domain. On rare occasion, you might need this identifier, such as when configuring Windows group policy for OneDrive for Business. If you do need to find your Office 365 tenant ID, it’s pretty easy. Choose one of the following procedures. Use the Azure AD portal Office 365 uses Azure AD to manage user accounts. You can find your tenant ID in the Azure AD portal. You’ll need to be an Azure AD administrator. To find your Office 365 tenant ID in the Azure AD portal Log in to Microsoft Azure as an administrator. In the Microsoft Azure portal, click Azure Active Directory. Under Manage, click Properties. The tenant ID is shown in the Directory ID box. Use Windows PowerShell You can use Windows PowerShell to find the tenant ID. You’ll need the Microsoft Azure PowerShell module. Open a Microsoft Azure PowerShell command window and run the following script, entering your Office 365 credentials when prompted. Login-AzureRmAccount Your tenant ID is listed in the output.

2020-03-15 0comments 119hotness 0likes mikebai Read all
M365

Azure VNet介绍

Azure VNet的介绍 VNet是Azure云中逻辑隔离的虚拟网络。它包含两个含义: Azure的用户可以在VNet中创建自己的各种资源,感觉想自己的数据中心中一样; 在一个VNet中创建的资源和其它VNet创建的资源相互隔离,是Azure云中网络多租户的具体实现形式。 Azure的VNet可以提供如下图的三大类服务: VNet内部提供的网络服务,包括子网的划分、网络安全和路由等功能 前端接入,提供公网IP地址、DNS地址解析、Source/Destination NAT、负载均衡等等各种服务 后端连接,提供IPSec Site-Site/Point-Site VPN,以及专线接入等服务。 Azure的各种网络服务大多是围绕Azure的VNet的,所以VNet是Azure Networking的基础。下面将介绍如何创建Azure VNet。 Azure VNet的部署

2020-03-14 0comments 113hotness 0likes mikebai Read all
DotNET

C# 变量后面跟问号

表示该变量为null时,不执行该语句。 当val=null时 val?.ToLower();返回值=null 没有“?”时,显然要报错的。

2020-02-02 0comments 140hotness 0likes mikebai Read all
M365

DLP NOTE

1)https://www.varonis.com/blog/what-is-data-loss-prevention-dlp/ Q: What is the difference between DLP and “DLP Endpoint?” A: When you hear “DLP Endpoint,” it means that there is an agent running on a computer that is managing some aspects of DLP for that computer. 2)各キーワード概念 The many ways to prevent data leakage in Microsoft 365 https://www.itpromentor.com/dlp-buffet/

2020-01-08 0comments 109hotness 0likes mikebai Read all
M365

github笔记

1) bin以下を無視したいけど、無視したくないファイルも含んでいる、そんなときは次のように書くのが正しいです。 .gitignore bin/* !Resource bin/の後に*を追加しました。あくまでディレクトリを無視したのではなく、ディレクトリ内のファイルを無視しましたので、Resourceの否定が効くようになります。 2) git 拉取(pull)和获取(fetch)的区别 git  pull     从远程拉取最新版本 到本地  自动合并 merge            git pull origin master git  fetch   从远程获取最新版本 到本地   不会自动合并 merge    git fetch  origin master      实际使用中  使用git fetch 更安全   在merge之前可以看清楚 更新情况  再决定是否合并

2019-12-30 0comments 109hotness 0likes mikebai Read all
dev

change db userprefix schema to dbo

1)run  SELECT 'ALTER SCHEMA dbo TRANSFER ' + TABLE_SCHEMA + '.' + TABLE_NAME  FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'your current schema name' 2)copy query result , paste to query window and run

2019-12-29 0comments 115hotness 0likes mikebai Read all
DotNET

windows server管理之IIS7 FTP 出现 "530 Valid Hostname is expected"的解决办法

今日在IIS7.5上加了一个FTP站点,创建完ftp用户后,用这个用户在远程登录发现  出现 "530 Valid Hostname is expected" 解决办法: 1.若是你的ftp绑定的域名是ftp.abc.com,用户名为user 则登录时需要用 ftp.abc.com|user; 注意中间用"|"分隔 2.把绑定删除,直接用用户名登录也可以 ———————————————— 版权声明:本文为CSDN博主「ChenZhuYu」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/chenzhuyu/article/details/50363824

2019-12-27 0comments 146hotness 0likes mikebai Read all
M365

ADMX-files

1)  Installing GPO ADMX Templates for Google Chrome  http://woshub.com/how-to-configure-google-chrome-via-group-policies/  2)  Deep dive ingesting third-party ADMX-files  https://www.petervanderwoude.nl/post/deep-dive-ingesting-third-party-admx-files/     3)  https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-configuration-service-provider  ADMX files that have been installed by using ConfigOperations/ADMXInstall can later be deleted by using the URI delete operation.  Deleting an ADMX file will delete the ADMX file from disk, remove the metadata from the ADMXdefault registry hive,   and delete all the policies that were set from the file.   The MDM server can also delete all ADMX policies that are tied   to a particular app by calling delete on the URI, ./Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/{AppName}.     4)  Set Chrome Browser policies on managed PCs  https://support.google.com/chrome/a/answer/9102677?hl=en      ./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome~Startup/ShowHomeButton  check chrome policy     chrome://policy/     ./Device/Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/Chrome/Policy/ChromeADMX  ./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome/SitePerProcess  ./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome~Startup/ShowHomeButton  新しいタブ ページ  Chrome – ADMX – HomepageIsNewTabPage  ./Device/Vendor/MSFT/Policy/Config/Chrome~Policy~googlechrome~Startup/HomepageIsNewTabPage  <disabled/>  5) MMAT tool  6) ADMX Backed Policies — Quick(ish) Reference Guide https://medium.com/365uc/admx-backed-policies-quick-ish-reference-guide-69ddb3ee39b2 7) Policy Tree https://gpsearch.azurewebsites.net/  

2019-12-09 0comments 119hotness 0likes mikebai Read all
1…910111213…62

Recent Posts

  • c# winform适配高dpi
  • com.microsoft.sqlserver.jdbc.SQLServerException “trustServerCertificate”属性设置为“false”,但驱动程序无法使用安全套接字层 (SSL) 加密与 SQL Server建立安全连接
  • java -cp 用法介绍
  • HTML 容器元素
  • MVC的cshtml的介绍

Recent Comments

No comments to show.

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang